jaimie
11th January 2007 09:20 UTC
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.
Red Wine
11th January 2007 09:32 UTC
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.
kichik
11th January 2007 21:13 UTC
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.
jaimie
17th January 2007 06:30 UTC
Thanks for your response. It helps. : )