Skip to content
⌘ NSIS Forum Archive

Windows Version Dectection!!!!

4 posts

VegetaSan#

Windows Version Dectection!!!!

I want this thing >>> The Installer detects the version of windows if it is XP then he must download from this URL :



And if it is ME/98/95 then he must download from this URL:



PLEASE HELP !!!!! PLEASE DONT SAY > Go to search and
BLA.dll PLEASE

Thank you very much
kichik#
There is a function called GetWindowsVersion in the documentation. It returns a string specifying the user's OS. That string can be compared to whatnot using StrCmp which can jump to the appropriate code which will call NSISdl with the appropriate URL.
Spatacoli#
Here's the link to the Get Windows Version function:




As it says in the comments, it'll return the version (95, 98, Me, NT x.x, 2000, XP, 2003 or blank if error)