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: Custom actions on Vista
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 07, 2008
06:15 PM
Custom actions on Vista
I have a simple custom action written as a VBScript. What kind of conditional expression must I use while setting up this custom action to ensure that it runs **only** on Windows Vista?
thanks!
thanks!
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 08, 2008
02:07 AM
That MSDN page only addresses the VersionNT property which is the same (600) for both Windows Vista and Windows Server 2008. If you want Vista and not Server 2008, try the condition
(VersionNT = 600) And (MsiNTProductType = 1)
(VersionNT = 600) And (MsiNTProductType = 1)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 08, 2008
06:31 AM
I run Server 2008 Standard tweaked to make it more workstation like for my primary development machine. I would hope that a software package wouldn't arbitrarily restrict itself to Vista and not Server 2008. I could see Server 2008 only if it had a dependency that was only sound in Server 2008, but the other way around is generally not a good idea.
Below is a really cool tool for anyone interested in rolling the way I do. I know many developers that are going down this road not only for performance but because when you write nTier software it makes sense to be developing on the platform you are developing for.
http://www.win2008workstation.com/wordpress/2008/07/17/windows-server-2008-workstation-converter/
Below is a really cool tool for anyone interested in rolling the way I do. I know many developers that are going down this road not only for performance but because when you write nTier software it makes sense to be developing on the platform you are developing for.
http://www.win2008workstation.com/wordpress/2008/07/17/windows-server-2008-workstation-converter/
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 08, 2008
10:25 AM
Thanks to both of you for responding! Dan Gallender is right. I needed to run this package only on Windows Vista (this package will never be deployed on Windows Server 2008, so I guess VersionNT = 600 is probably sufficient for my purposes). Dan's solution is kinda future-proof 🙂
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 08, 2008
12:42 PM
Future proof or future resistant?
Make sure you put "or Installed" as part of that. Otherwise if they upgrade to another OS and try to perform an uninstall you'll be stuck.
Make sure you put "or Installed" as part of that. Otherwise if they upgrade to another OS and try to perform an uninstall you'll be stuck.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)