Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a production server and need to know what version of the windows installer is running, what's a quick way to find this out without running the 4.5 installer on the server?

share|improve this question

3 Answers 3

up vote 8 down vote accepted

From a command prompt:

msiexec /?

It displays the version on the first line. EG: Windows ® Installer. V 3.01.4000.1823

share|improve this answer
    
Brilliant! thankyou SCORE: ServerFault:1 Google/Bing:0 –  Nick Kavadias Jul 14 '09 at 3:57
    
Thanks Nick. Glad I could be of assistance. –  user10270 Jul 14 '09 at 4:05

You need to get the version of MSI.dll.

=== EDIT: For some reason I read this as you needing to do this in a scriptable way. msiexec /? is of course a faster way to do it if you just need to check it manually. ===

You can do this with VBScript.

Create a file like this called VersionInfo.vbs:

set args = WScript.Arguments
Set fso = CreateObject("Scripting.FileSystemObject")
WScript.Echo fso.GetFileVersion(args(0))
Wscript.Quit

Then call it like:

cscript //nologo VersionInfo.vbs %windir%\system32\msi.dll

NOTE: the script was pulled from here.

share|improve this answer
1  
You're better off just doing this in a VBS: set installer = createobject("windowsinstaller.installer") msgbox installer.version –  Izzy Jul 14 '09 at 4:01
    
@Izzy: thx. I guess if you are incorporating it into a script, you would just do wscript.echo installer.version at the end. –  Adam Brand Jul 14 '09 at 4:20
    
if it was scripting i would have asked on stackoverflow, good to know if i ever need to do a mass deployment :) –  Nick Kavadias Jul 14 '09 at 4:47
  • Check the version of MSI.DLL (%windir%\System32)
  • OR run the following: msiexec /?

Or, if you want to get clever, make a .VBS file, paste the following into it, and double click it:

set installer = createobject("windowsinstaller.installer") 
msgbox installer.version
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.