Noahenett
Posts: 2
Joined: Wed Feb 12, 2025 3:23 am

Looking for guidance on implementing custom actions in Advanced Installer

Hello,

I'm in the process of enhancing my installation package using Advanced Installer and I need help implementing custom actions. My goal is to execute specific scripts during the installation process to configure the environment based on user input.

I'm particularly interested in the following:
What are the best practices for creating custom actions in Advanced Installer? I want to make sure they run smoothly and don't impact the installation flow.
How can I condition these custom actions to ensure they only execute when certain criteria are met (e.g. specific user selection or system configuration)?
What strategies can I use to handle potential errors that may arise while performing these custom actions? I want to make sure the errors are handled without affecting the entire installation.
snow road
Any tips on how to effectively test and debug custom actions in the Advanced Installer environment would be greatly appreciated.

Thanks for your support!
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Looking for guidance on implementing custom actions in Advanced Installer

Hello,
What are the best practices for creating custom actions in Advanced Installer? I want to make sure they run smoothly and don't impact the installation flow.
This greatly depends on what you want to achieve exactly.

It's recommended you use our predefined support for Custom Actions (such as .NET, PowerShell, etc.).
How can I condition these custom actions to ensure they only execute when certain criteria are met (e.g. specific user selection or system configuration)?
For this, you can use the "Condition" field from the "Custom Actions" page --> your custom action.
Screenshot_32.png
Screenshot_32.png (3.12 KiB) Viewed 1162 times
What strategies can I use to handle potential errors that may arise while performing these custom actions? I want to make sure the errors are handled without affecting the entire installation.
Usually, if a custom action fails, it fails the entire installation.

To avoid that, you can uncheck the "Fail installation if custom action returns an error" option from the "Custom Actions" page --> your custom action.

Hope this helps and please let me know if you have any other questions.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”