Prev Previous Post   Next Post Next
Old 1st December 2006, 14:30   #1
jweinraub
Senior Member
 
Join Date: Jan 2004
Posts: 197
Send a message via AIM to jweinraub
deny all operating systems except for a few

Hello,

I recently wrote asking how do I deny OS's. However, after talking with a few people and more scenarios occurred to us. All these what-ifs.

So I would like the installer to FAIL for EVERY OS, but ALLOW a few...

my pseudo code is as follows: (this is be rather phpish/crap)

Function .onInit

switch ($operatingSystem)
{
case "Windows 2000"; // all editions
goto success;
break;

case "Windows XP" // only pro version
GetVersion::WindowsType
if $R0 == "Home"
goto failure;
else;
goto success;
break;
case "Windows 2003"; // all editions
goto success;
break;
default:
goto failure;

...

function failure
msgbox "your $os is not supported. please call 1-800-555-5555 for additional support."

... pretty much 95,98,me should fail...so should vista all editions, and i dont know but XP 64-bit should fail too.

thanks for any help you can offer me :-)
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