Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20755

How to get MS Office version installed on the machine

$
0
0

Hi Team ,

 

How to get MS Office version (Not excel or word) installed on the machine  using Jscript?

 

var ProgramFiles = aqEnvironment.GetEnvironmentVariable("ProgramFiles", true);
var MSOffFilePath = ProgramFiles +"\\Microsoft Office\\Office14\\EXCEL.EXE"; 
var Officeversion = aqFileSystem.GetFileInfo(MSOffFilePath).VersionInfo.FileMajorVersion;
Log.Message(Officeversion);


Viewing all articles
Browse latest Browse all 20755

Trending Articles