PDA

View Full Version : Determining windows version at runtime


niobe
26th August 2009, 07:29
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

kichik
26th August 2009, 08:14
Inlcude WinVer.nsh and use ${If} ${AtLeastWinXP} and friends.

niobe
27th August 2009, 03:08
Too easy, thanks.