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: Installing components based on VersionNT: test for the one I want or the ones I don't
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
Dec 02, 2009
12:42 PM
Installing components based on VersionNT: test for the one I want or the ones I don't
I have an installer that installs stuff to both xp & vista (and win7 pretty soon). For the pieces that are different between platforms I have a FooXP and FooVista component, and set an install condition based on the value of VersionNT. I forget exactly where I cribbed an example from, but my XP components say:
(Not VersionNT=500) And (Not VersionNT=502) And (Not VersionNT=600) And (Not VersionNT=601)
and my Vista components say:
(Not VersionNT=500) And (Not VersionNT=501) And (Not VersionNT=502) And (Not (VersionNT=600 And Not (MsiNTProductType=1))) And (Not VersionNT=601)
Looking at it today I'm wondering why I don't just test for VersionNT=501 for XP and =600 for Vista.
Which is better ? Test for the one you want, or make sure it's not all the ones you don't want ? Is there any reason why the former wouldn't work ?
Thanks
(Not VersionNT=500) And (Not VersionNT=502) And (Not VersionNT=600) And (Not VersionNT=601)
and my Vista components say:
(Not VersionNT=500) And (Not VersionNT=501) And (Not VersionNT=502) And (Not (VersionNT=600 And Not (MsiNTProductType=1))) And (Not VersionNT=601)
Looking at it today I'm wondering why I don't just test for VersionNT=501 for XP and =600 for Vista.
Which is better ? Test for the one you want, or make sure it's not all the ones you don't want ? Is there any reason why the former wouldn't work ?
Thanks
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 02, 2009
06:54 PM
A non-answer, but it really depends on the situation---do you want to exit on an unknown future Windows version, or assume forward compatibility? A problem with the first condition is that it misses VersionNT=400 (someone trying to install on Windows NT 4); sometimes a condition like VersionNT>600 is appropriate...
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)