Hello,
I've got a rather complicated situation that I am trying to figure out how to accomplish. Hopefully, I can explain this properly.
* I have a feature-based prereq for MSSQL 2012 to upgrade existing MSSQL 2005 instances if they are detected (using registry entries in the prereq Install Conditions tab)
* I have another feature-based prereq for MSSQL 2012 to install on new machines (if MSSQL does not exist OR our MSSQL instance is not installed, again using the prereq Install Conditions)
These are separate prereqs because the command lines need to be different for install and upgrade.
These each work individually just fine. However, if I include both prereqs and run the install on a machine that already has our instance of MSSQL 2005 installed, both prereqs execute when only the Upgrade prereq should run. I thought that the install prereq wouldn't execute because the condition on that one checks to see if the MSSQL 2012 registry entry exists, which it should after the Upgrade prereq runs.
My guess is that the Install Conditions are checked and set before ANY of the prereqs are executed, so both get scheduled to run. Is this the case? If so, how can I condition the Install prereq to check its conditions AFTER the upgrade prereq executes?
Thanks!
FOLLOW US
Get the latest news in Application Packaging