We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ubaldc
Posts: 1
Joined: Tue Feb 07, 2017 7:47 pm

custom action execution based on pre-installation execution?

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?

Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: custom action execution based on pre-installation execution?

Hi and welcome to our forums.

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.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”