Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Custom action in dialog

HI AI Support,

Is is possible to display a message (thru Custom Action > VBScript inline > MsgBox) AFTER the SetupTypeDlg is displayed.

I tried to do it by adding a DoAction in Init Events of SetupTypeDlg : the message is displayed but BEFORE the dialog is displayed.

Thanks in advance,

Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Custom action in dialog

Hi Phil,

What you need can be done by using a DoAction Published event for the "Next" button on the "SetupTypeDlg" dialog. This way the custom action will run when the installation proceeds to the next dialog.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Re: Custom action in dialog

Hi Cosmin,

I don't want to display the message when I click on the "Next" button : this is too late unfortunately.

As I wrote before, if I put the message in the Init Events, the dialog SetupTypeDlg is not yet displayed.

Is it possible to display the message when the dialog is already displayed but before the user can do any action ?

TIA,

Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Custom action in dialog

Hi Phil,

You can try setting the custom action to use the "Asynchronous execution, do not wait for return" option in the Custom Action Properties page. If the custom action is then set as a DoAction Init event the message box should be shown when "SetupTypeDlg" appears.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Re: Custom action in dialog

Hi Cosmin,

The "Asynchronous execution, do not wait for return" option didn't change the behavior : the message is displayed before the SetupTypeDlg appears.

Did I miss something else ?

Regards,

Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Custom action in dialog

Hi,

The Asynchronous custom action should run at the same time as the "SetupTypeDlg" dialog. I'm not sure why for your project it is shown before the dialog. Can you please send us the AIP you are using to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Re: Custom action in dialog

Hi,

AIP File sent.

Regards,

Phil

Return to “Common Problems”