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: How to run code before prerequisites starts?
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
‎May 03, 2010
04:32 PM
How to run code before prerequisites starts?
Hi All
I have a few redistributables that run as prerequisites (one being the installing of SQLExpress 2005 SP3). I’d like the check to OS and other target system characteristics before these redistributables run and abort the installation if the things like service pack requirements and other things are not satisfied. So far I haven’t found a way to do this. Any suggestions?
Project type is InstallScript MSI.
I have a few redistributables that run as prerequisites (one being the installing of SQLExpress 2005 SP3). I’d like the check to OS and other target system characteristics before these redistributables run and abort the installation if the things like service pack requirements and other things are not satisfied. So far I haven’t found a way to do this. Any suggestions?
Project type is InstallScript MSI.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 04, 2010
03:05 PM
Generally I would recommend setting the requirements of the prerequisites themselves to check for these things. Then in your main installation, check for the prerequisites to have been installed, or make similar OS checks there as well. Does that not do what you need?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 04, 2010
04:28 PM
Hi Michael
The problem I'm having is that I need to test both the OS as well as the service pack installed on the target system. There is an issue with SQLExpress 2005 SP3 that can cause the blue screen of death when it tries to upgrade older versions SQLExpress when on XP SP2 or lower. Who knows when this could be fixed by Microsoft.
With prerequisite conditions I haven't as yet found one registry key or file that allows me to effectively test both the OS and service pack version installed. Because of this I would need to use 2 prerequisite conditions, one to test to OS and one to test the service pack installed. But if condition1 is OS >= XP and condition2 is SP >= 3 this works for XP but will fail with Windows 7.
So far the only reliable solution I've come up with is to check if any version SQLExpress is installed and if so, don't install SQLExpress. This then forces any required clean-up/upgrade of SQLExpress to be something the end user must do manually before continuing the installation. When I find myself heading towards solutions like this, I usually think I must be missing something.
Thanks for any suggestions.
As a side note, how can I put in an enhancement request to add nested prerequisite conditions to prerequisites?
The problem I'm having is that I need to test both the OS as well as the service pack installed on the target system. There is an issue with SQLExpress 2005 SP3 that can cause the blue screen of death when it tries to upgrade older versions SQLExpress when on XP SP2 or lower. Who knows when this could be fixed by Microsoft.
With prerequisite conditions I haven't as yet found one registry key or file that allows me to effectively test both the OS and service pack version installed. Because of this I would need to use 2 prerequisite conditions, one to test to OS and one to test the service pack installed. But if condition1 is OS >= XP and condition2 is SP >= 3 this works for XP but will fail with Windows 7.
So far the only reliable solution I've come up with is to check if any version SQLExpress is installed and if so, don't install SQLExpress. This then forces any required clean-up/upgrade of SQLExpress to be something the end user must do manually before continuing the installation. When I find myself heading towards solutions like this, I usually think I must be missing something.
Thanks for any suggestions.
As a side note, how can I put in an enhancement request to add nested prerequisite conditions to prerequisites?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 04, 2010
05:10 PM
I'd just set the minimum/maximum service pack on the relevant OS condition. For example:
Conditions > Add > Setup is running on a specified platform
Select Windows XP
Replace (No Minimum) with 3.
Conditions > Add > Setup is running on a specified platform
Select Windows XP
Replace (No Minimum) with 3.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 06, 2010
01:58 PM
Prefect! Thanks very much!
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)