PDA

View Full Version : how to check the version of the windows scripting library?



shaqz1
02-07-2002, 04:09 PM
Hi,

My installer uses VBScript code, so it needs to check if the windows
scripting libraries are installed or not. It also needs to check the library
version, since FileSystemObject doesn't seem to be supported in versions
prior to 5.5.

Currently, I do this by looking for vbscript.dll, and then check the file
version. I'm not sure this is the best way, however, since Microsoft may get
rid of, or rename, this file in future versions of the library.

The alternative was to call WScript.Version to get the file version.
However, the WScript object doesn't seem accessible from InstallShield VB
scripts (the script dies when calling WScript.Version).

Does anyone know of a better or "standard" way for checking the version of
the windows scripting libraries?

Thanks!

Tom

cabelas
01-22-2008, 05:26 AM
you can check wscript.exe file version