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


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.


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...


D'oh!

I was staring at NSIS docs all day and I missed the functions.htm docs...thanks!