|
|
#4 |
|
Senior Member
|
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! |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|