Repeating Custom Action between Dialogs - Advanced Installer Community
becktech
Posts: 1
Joined: Fri Feb 21, 2014 7:18 pm

Repeating Custom Action between Dialogs

I'm not understanding how to control flow between dialogs and custom actions. Here's the scenario:

1. Show a dialog where the user will select a certain path to be used for a special purpose.
2. Run a custom action VBScript to determine whether enough space is available on that drive.
3. Conditionally show a "Not enough free space" dialog based on properties set in the custom action.
4. On "Back" in this dialog, go back to step (1) and let the user select a different path.

This much works fine, but I don't understand how to make it re-execute the custom action (2) to see if there's enough space in the new path and show dialog (3) if not.

Note that I am trying to do this in the Wizard stage, not Installation. I have seen that you can add a published event to a Next button that is for a custom action, but the list of custom actions is empty. All of my custom actions are under the Wizard stage.

I'm less interested in how to check for free space and more interested in understanding flow control. I'm evaluating the product.
Thanks,
Chris
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Repeating Custom Action between Dialogs

Hi Chris and welcome to Advanced Installer forums,

Thank you for taking the time to evaluate Advanced Installer.

Basically custom actions can be executed with or without sequence. Read "Add Custom Actions Tab" section > "Operations" in the "Custom Actions" page user guide article for UI guidance and clarification. The same article is available when pressing F1 in the "Custom Actions" page in Advanced Installer.

As mentioned, if you need to execute a custom action on a button push you should add it without sequence. The steps are listed in the "How do I execute a custom action when a button is pushed?" how-to.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”