I'd like to run a custom action based on whether the pre-installation event has occurred. In my case, if I install SQL Server, I want to execute a script to update the database.
Can someone possibly point me in the right direction on this one?
In the "Setup Files" tab of each pre-install prerequisite exists the "Save return value in this property" field. You can write a custom property into that field, so that when the prerequisite is installed, the return value of that prerequisite is stored into that property.
If that prerequisite is not checked for installation, the property will remain empty. So, you can use that property to condition the execution of your script.
Let me know if this helped, otherwise give me more details about your scenario.
FOLLOW US
Get the latest news in Application Packaging