|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] 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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Aug 2009
Posts: 6
|
Too easy, thanks.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|