added vista

this should be replaced with a call to GetVersion and IntCmp with defines
the way it is now, users are tempted to use StrCmp and get installers not working with newer versions of windows


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4760 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-09-29 15:39:24 +00:00
parent 585ba20704
commit 3589fb5737

View file

@ -166,7 +166,7 @@
\c ;
\c ; Returns on top of stack
\c ;
\c ; Windows Version (95, 98, ME, NT x.x, 2000, XP, 2003)
\c ; Windows Version (95, 98, ME, NT x.x, 2000, XP, 2003, Vista)
\c ; or
\c ; '' (Unknown Windows Version)
\c ;
@ -223,6 +223,7 @@
\c StrCmp $R1 '5.0' lbl_winnt_2000
\c StrCmp $R1 '5.1' lbl_winnt_XP
\c StrCmp $R1 '5.2' lbl_winnt_2003 lbl_error
\c StrCmp $R1 '6.0' lbl_winnt_vista lbl_error
\c
\c lbl_winnt_x:
\c StrCpy $R0 "NT $R0" 6
@ -240,6 +241,10 @@
\c Strcpy $R0 '2003'
\c Goto lbl_done
\c
\c lbl_winnt_vista:
\c Strcpy $R0 'Vista'
\c Goto lbl_done
\c
\c lbl_error:
\c Strcpy $R0 ''
\c lbl_done: