![]() |
How to get MS Office version using JScript in TestComplete? - Printable Version +- 0Day Forums (https://0day.red) +-- Forum: Coding (https://0day.red/Forum-Coding) +--- Forum: JScript (https://0day.red/Forum-JScript) +--- Thread: How to get MS Office version using JScript in TestComplete? (/Thread-How-to-get-MS-Office-version-using-JScript-in-TestComplete) |
How to get MS Office version using JScript in TestComplete? - cosmopolite553515 - 07-24-2023 In TestComplete, how can we get Microsoft Office version (not Excel or Word) using JScript without looking into registry? I tried this (using the `Shell.Application` to get the Program files path) but it doesn't work: var ProgramFiles = aqEnvironment.GetEnvironmentVariable("ProgramFiles", true); var MSOffFilePath = ProgramFiles +"\\Microsoft Office\\Office14\\"; var Officeversion = aqFileSystem.GetFileInfo(MSOffFilePath).VersionInfo.FileMajorVersion; Log.Message(Officeversion); |