Checking the Version of Windows Installer

Brian McCann wants to know a better way to Check the Version of Windows Installer.


According to Windows Installer Team blog, “If you want to check the version of the Windows Installer on your system, check the version of MSI.DLL in the Windows\System32 folder. If the version is 3.1.4000.2435, you have the latest version.


One common point of confusion is that even if you have the latest version of Windows Installer 3.1 on your system and you type in msiexec.exe /? from a command-window, you will still be told that you are on version 3.1.4000.1823 or 3.1.4000.1830. This is because msiexec.exe /? will only give you the version of msiexec on the system — not the other Windows Installer-related dll’s. (The version of msiexec was not updated to 3.1.4000.2435 with the (v2) redistributable, just msi.dll was updated.)”


Luckily, I found a neat .vbs browser hosted script by Michael Harris \(MVP Scripting\). Save the following code as .htm


<html>
<head>
<script language=”vbscript”>
sub document_onclick()
set installer = createobject(“windowsinstaller.installer”)
msgbox installer.version
end sub
</script>
</head>
<body>
Click me for Windows Installer version…
</body>
</html>


and you are done:-). Note that the “windowsinstaller.installer” object is not marked safe for scripting in IE browser hosted script… Double click the saved htm file and then you need to click the information bar to allow the blocked ActiveX control in IE


If the machine is configured for automatic updates using WSUS then it will update the installer automatically as mandatory WSUS update :-).

3 thoughts on “Checking the Version of Windows Installer

Leave a Reply

Your email address will not be published. Required fields are marked *