views:

1249

answers:

4

I've figured out a way to tell which version of the .NET framework is installed by reading previous SO posts, but I've not found anything about the Windows Installer.

Is there a registry key or anything similar that I could verify that Windows Installer 3.01+ is installed?

A: 

You can just include the redistributable version of Windows Installer and not have to worry about it.

http://www.microsoft.com/downloads/details.aspx?FamilyID=889482FC-5F56-4A38-B838-DE776FD4138C&displaylang=en

McWafflestix
Well I'm using the WPkg project to do installation of a product and its prerequisites automatically, so I need to be able to tell the program when to install it or if its already present.
samoz
+1  A: 

May be a duplicate question.

See

http://stackoverflow.com/questions/315717/how-do-i-check-if-windows-installer-3-1-or-higher-is-installed

Maestro1024
Didn't see that actually before searching.
samoz
+2  A: 

"If you want to check the version of the Windows Installer on your system, check the version of MSI.DLL in the Windows\System 32 folder"

http://blogs.msdn.com/windows_installer_team/archive/2005/08/05/448386.aspx

Stuart Dunkeld
Thanks! [15 characters]
samoz
A: 

Check the file version of %SYS32%\msi.dll. On XP, it's in c:\windows\system32.

C-Pound Guru