Archive: Determine Windows Version patch


Hello all

I found it very useful to know on what version of Windows the installer is running on.
Therefore I made a small patch that implements this functionality.

In you installation script you can do something like this:

.....
WindowsVersion Win32 WinNT
Win32:
File Warning.txt
File readme-win95.txt
ExecWait '"$WINDIR\notepad.exe" "$INSTDIR\Warning.txt"
WinNT:
blabla
......

The first jumptarget is taken if it's Windows 9x/ME, the second if it's WinNT/Win2000

If you're interested in this patch, please write me. I will send you the patch or the final executable.

Regards

James
http://www.ractive.ch


Doh! This has already been done in function form, but there is no official link to the page yet.

http://www.firehose.net/free/nsis/functions.html