Archive: Windows Installer check


Windows Installer check
Hi, I am writing a script to check 2 things.
<1> Check if the OS is Windows 2000.
<2> If it is W2K, I want to check if the Windows Installer 3.0 is installed in W2K.
How can I get the information about Windows in the script?
Thanks for your help in advance.


There are several plugins and functions posted at wiki http://nsis.sf.net about OS detection.
You should be able to retrieve info from the registry about Windows installer v3.0
Also you may retrieve the version info from $SYSDIR\msiexec.exe to determine if a required version is installed.


Use the new Include\WinVer.nsh for OS detection.

I can't find the exact thread, but as I recall, $SYSDIR\msi.dll is the file to check for MSI version.


Thanks for your response. It helps. : )