Old 26th August 2009, 07:29   #1
niobe
Junior Member
 
Join Date: Aug 2009
Posts: 6
Determining windows version at runtime

Sorry if this is a simple question, I am totally new to Windows programming

I am packaging an installer which only requires a reboot if the Windows version is XP.

I can't see an inbuilt constant for Windows version in NSIS, what's the easiest way to get this from the system? Some arcane registry key?

thanks,

N
niobe is offline   Reply With Quote
Old 26th August 2009, 08:14   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Inlcude WinVer.nsh and use ${If} ${AtLeastWinXP} and friends.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 27th August 2009, 03:08   #3
niobe
Junior Member
 
Join Date: Aug 2009
Posts: 6
Too easy, thanks.
niobe is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump