.NET Installer Class Action - Execution Stage Condition - Advanced Installer Community

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!

chriswatson
Posts: 7
Joined: Thu Nov 10, 2011 2:18 pm

.NET Installer Class Action - Execution Stage Condition

I created an installer back in 2010 and used some .NET Installer Class Actions to install some Windows Event Log sources. I need to add a similar action for a new installer I'm currently putting together, so I'm looking back at this older installer for how to do it.

In 2010, the UI in Advanced Installer for editing these custom actions looked different from how it does now. I seem to have four custom actions for each .NET installer class - one each for the Commit, Install, Rollback and Uninstall transactions. The custom action for the Install transaction has a custom condition under Execution Stage Condition:

Code: Select all

NOT Installed OR (Installed AND NOT REMOVE)
If I'm understanding that correctly, that means the action will run during installation (NOT Installed) or during a repair operation (Installed AND NOT REMOVE). Immediately above the text box for the the custom condition are three checkboxes that I don't think used to be present (I'm currently running v11.4.1); they are Install, Uninstall and Maintenance.

Could I remove the custom condition and achieve the same effect by checking Install and Maintenance, and unchecking Uninstall (in this old installer project all three are ticked)?
Attachments
Screenshot of Execution Stage Condition.
Screenshot of Execution Stage Condition.
2014-09-25 16_31_37-Advantage EurotaxGlass Libraries - EurotaxGlass.Libraries.aip (English GB) - Adv.png (4.33 KiB) Viewed 2800 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: .NET Installer Class Action - Execution Stage Condition

Hello,

You can also set the Execution Stage Condition of your custom action from the Show upgrade options where you have multiple choices. Here's a print screen for your reference:
ExecutionStageCondition.png
ExecutionStageCondition.png (5.65 KiB) Viewed 2797 times
In the Condition field you can type a boolean expression which must be true for the Custom Action to be executed.

Please note that the First Time Install, Upgrade, Regular uninstall and Replaced by a new version options may not displayed by default, you should use the Show upgrade options link to display them.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chriswatson
Posts: 7
Joined: Thu Nov 10, 2011 2:18 pm

Re: .NET Installer Class Action - Execution Stage Condition

Hi Dan,

Thanks for that, I didn't know those extra options existed.

I'd still like to clarify whether this (see attachment) is equivalent to the screenshot in my first post?
Attachments
Screenshot of Execution Stage Condition (2).
Screenshot of Execution Stage Condition (2).
2014-09-26 11_21_12-Advantage.BankAccountValidation Client 1.0.0 - Advantage.BankAccountValidation-C.png (4.96 KiB) Viewed 2795 times

Return to “Building Installers”