"Init Events" controls disabled - 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!

ash_microsec
Posts: 38
Joined: Thu Dec 16, 2010 9:35 am
Location: Emsworth

"Init Events" controls disabled

I have a custom dialog that I have created. I have a script that needs to be run whenever the dialog is displayed. The dialog's "Init Events" looks like the perfect place to put a "DoAction" event for my script, but all the controls on the "Init Events" tab are disabled, no matter what dialog/control is selected. This looks like a bug (I'm running 8.0.2 build 13861). How do I get my script to run whenever the dialog is displayed?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: "Init Events" controls disabled

Hi,

Indeed, the InitEvents section is where you need to call the custom action. To add an init event you need to select the dialog and the button "New" should be active, allowing you to add the event.

If this is not true please send us the aip file and tell us on what dialog do you wish to add the event, so we can investigate this.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ash_microsec
Posts: 38
Joined: Thu Dec 16, 2010 9:35 am
Location: Emsworth

Re: "Init Events" controls disabled

Bogdan wrote:Hi,

To add an init event you need to select the dialog and the button "New" should be active, allowing you to add the event.
Nope, the New button does not become active. I'll email the AIP to you so you can have a look.
ash_microsec
Posts: 38
Joined: Thu Dec 16, 2010 9:35 am
Location: Emsworth

Re: "Init Events" controls disabled

AIP file emailed to you a few minutes ago.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: "Init Events" controls disabled

Hi Ash,

I received the e-mail, the aip file from the mail allows you to add init events on the dialogs LicenseAgreementDlg, SetupTypeDlg and VerifyReadyDlg. The other dialogs do not allow you
because it is not possible to add an event on them, this is not a bug.

Can you please tell us on what dialog you wish to add the event?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ash_microsec
Posts: 38
Joined: Thu Dec 16, 2010 9:35 am
Location: Emsworth

Re: "Init Events" controls disabled

Sent by email.
ash_microsec
Posts: 38
Joined: Thu Dec 16, 2010 9:35 am
Location: Emsworth

Re: "Init Events" controls disabled

Bogdan wrote:the aip file from the mail allows you to add init events on the dialogs LicenseAgreementDlg, SetupTypeDlg and VerifyReadyDlg. The other dialogs do not allow you
because it is not possible to add an event on them, this is not a bug.
Are you saying "Init Events" can only be created on the above 3 dialogs?! If so, this makes the "Init Events" feature of Advanced Installer of limited use, and IMO needs to be changed.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: "Init Events" controls disabled

Hi Ash,
Are you saying "Init Events" can only be created on the above 3 dialogs?!
No, as I said in my last e-mail the Init Events can be added only to dialogs from an installation chain. Using our new feature "Condition by property" you can create new sub-chains, this way being able to
add init events on these dialogs too.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”