cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ChiDev
Level 2

Testing for XP SP3 or Windows 7

Hi

I am trying to test if Windows XP SP 3 or Windows 7 is being used. Under "Installation Requirements" in the project assitant I rule out all but 7 and XP. I then would like to use a Custom Software Condition to test for SP3 if XP is used. I have set up the Condition but don't know how to specify just for XP. Since W7 is not SP3 it will fail.

I may well be going at this the wrong way. I am new to Installshield and am having some trouble figuring out where to put logic etc. any guidance would be great.
Labels (1)
0 Kudos
(1) Reply
DLee65
Level 13

I am assuming that you are creating a Basic MSI project.

In the Install Condition include the following:

(VersionNT=501 And ServicePackLevel>=3) OR (VersionNT>600)

VersionNT > 600 should be Vista and Windows 7.
You should never do an exclusive test like ServicePackLevel=3 because if there is ever a ServicePackLevel=4 then the test would fail when you really do not want that.

See the section labeled: Building Conditional Statements in the InstallShield Help file for more specific information or variations on this structure.

You also should look at Operating System Property Values for more information about OS versions.

Hopefully this helps get you on your way.
0 Kudos