Prev Previous Post   Next Post Next
Old 12th January 2007, 20:28   #4
jweinraub
Senior Member
 
Join Date: Jan 2004
Posts: 197
Send a message via AIM to jweinraub
update to my question

The way I was tackling this was all wrong.
I still rather deny all OS's but allow a few easily.

I like to do soemthing like this

GetVersion::WindowsName
Pop $R0
StrCmp $R0 "XP" allow
StrCmp $R0 "2000" allow
StrCmp $R0 "Server 2003" allow
...
else deny

i dont see any ways like how i would do it in C to get this done.

the problem is, my prior code seemed not work work.

;${If} ${IsWinXP}
; # use afrow's plug-in here
; GetVersion::WindowsType
; Pop $R0
; StrCmp $R0 "Home" xp_home_error go_away
;${EndIf}

;xp_home_error:
; MessageBox MB_OK|MB_ICONSTOP "Windows XP Home Edition is not supported" IDOK
; Quit

;${If} ${IsWin95}
; MessageBox MB_OK|MB_ICONSTOP "Windows 95 is not supported" IDOK
; Quit
;${EndIf}

;${If} ${IsWin98}
; MessageBox MB_OK|MB_ICONSTOP "Windows 98 is not supported" IDOK
; Quit
;${EndIf}

;${If} ${IsWinMe}
; MessageBox MB_OK|MB_ICONSTOP "Windows Millennium Edition is not supported" IDOK
; Quit
;${EndIf}

;${If} ${IsWinNT4}
; MessageBox MB_OK|MB_ICONSTOP "Windows NT is not supported" IDOK
; Quit
;${EndIf}

;go_away:

and go away simply went with the rest of the prog.

what is happening is, win2k it seems is being detected as XP Home so it gets the error and quits.

i thought it would be easier to deny all but allow a few so some weird versions of windows cant slip through.

any ideas how to improve/change this?? i know ive asked this in hte past but i really am desperate in getting help right now onm htis! thanks so much!
jweinraub is offline   Reply With Quote
 
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