This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Testing for XP SP3 or Windows 7
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 21, 2010
01:45 PM
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.
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 21, 2010
03:15 PM
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.
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.