Skip to content
⌘ NSIS Forum Archive

How to differentiate between Win 9.x and NT/2000/XP

3 posts

Zaraza#

How to differentiate between Win 9.x and NT/2000/XP

Can someone tell me what is the best recommended way to differentiate whether an app is getting installed on a 9.x or NT/2000/XP machine?

There's so many differences between the two (win.ini vs environment variables, setting up shortcuts for current user vs. setting up shortcuts for all users under NT/2000), that I'd like to know what the best minds of NSIS recommend...

Thanks.
0mar#
There's a funtion that comes with NSIS that checks Windows versions.

In your NSIS directory, look for "functions.htm" - in that file, examine the 'GetWindowsVersion' function. You can use it as is or modify it to suit your needs...