Windows 2000 Service Pack 4 as a requirement

Got a problem you cannot solve? Try here.
Post Reply
srowe
Posts: 10
Joined: Thu Jul 21, 2005 12:48 pm

Windows 2000 Service Pack 4 as a requirement

Post by srowe »

How would I go about making Win2K SP4 a requirement. I can see where I can set the OS requirement to Win2K, but we want to narrow the requirement more than that. Is this possible?
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Sure, just use the Get System Settings command to obtain the service pack level - this will take just a little bit of custom scripting.
srowe
Posts: 10
Joined: Thu Jul 21, 2005 12:48 pm

Example of how to check for Service Pack 4 if user has Win2K

Post by srowe »

I am not having any luck finding how to write the code to check whether a user has Service Pack 4 if they are running my InstallAware installer on Windows 2000.

Any pointers would be appreciated.

Thanks,

- Steve Rowe
PhotoWorks, Inc.
K-ballo
Posts: 15
Joined: Mon Oct 10, 2005 7:45 pm

Post by K-ballo »

All you have to do is change to Code View, and at the beggining of the file and change it to look exactly like this:

// Check setup pre-requisites
Get System Setting Windows 2000 into CHECKSYSTEM
If Variable CHECKSYSTEM not Equals TRUE
MessageBox: $TITLE$ Setup Error, This product requires at least Windows 2000.$NEWLINE$$NEWLINE$Setup cannot continue.
Terminate Installation
end

Get System Settings Service Pack 4 into CHECKSP
If Variable CHECKSP not Equals TRUE
MessageBox: $TITLE$ Setup Error, This product requires at least Service Pack 4.$NEWLINE$$NEWLINE$Setup cannot continue.
Terminate Installation
end
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Actually, this needs an additional check for Windows XP, so the SP check is performed only if Windows XP returns false.
wolbrink
Posts: 76
Joined: Wed Nov 17, 2004 3:00 pm

Post by wolbrink »

sinan wrote:Sure, just use the Get System Settings command to obtain the service pack level - this will take just a little bit of custom scripting.
For some reason I first thought these "service pack" levels were NT4 specific. But apparently the service pack levels are specific to the runtime flavor of Windows.

--Troy
Post Reply