QUERY: detect MS Installer or any exe file Version Number?

  • Thread starter Thread starter Dhruba Bandopadhyay
  • Start date Start date
D

Dhruba Bandopadhyay

I liked the VBS detect scripts to detect whether .NET is installed and which
version.

Does anyone know if it's possible to detect whether Microsoft Installer 3.1
(KB893803) or later?

Also, does anyone know if it's possible to read file version number of an
executable?
 
How Can I Determine the Version Number of a File?
http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr05/hey0418.mspx

or

Set WshShell = CreateObject("Wscript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
strfile = WshShell.expandenvironmentstrings("%Windir%") & _
"\system32\msiexec.exe"
Wscript.Echo objFSO.GetFileVersion(strfile)


--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


I liked the VBS detect scripts to detect whether .NET is installed and which
version.

Does anyone know if it's possible to detect whether Microsoft Installer 3.1
(KB893803) or later?

Also, does anyone know if it's possible to read file version number of an
executable?
 
You may check for version info for MSI.DLL for even more accurate info
(major version/build/rev no.)

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


How Can I Determine the Version Number of a File?
http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr05/hey0418.mspx

or

Set WshShell = CreateObject("Wscript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
strfile = WshShell.expandenvironmentstrings("%Windir%") & _
"\system32\msiexec.exe"
Wscript.Echo objFSO.GetFileVersion(strfile)


--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


I liked the VBS detect scripts to detect whether .NET is installed and which
version.

Does anyone know if it's possible to detect whether Microsoft Installer 3.1
(KB893803) or later?

Also, does anyone know if it's possible to read file version number of an
executable?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top