Zsolt Kollarits
Posts: 342
Joined: Fri May 29, 2015 10:36 am

Creating a custom dialog with Ok-Cancel buttons instead of Back-Next-Cancel

Dear Advanced Installer Support Team,

We´d like to add an Ok-Cancel dialog to our product, is it possible somehow? Our goal is extending one of our existing dialog by an "Advanced" button, which should open up a dialog with Ok an Cancel buttons. On that dialog the default "Back", "Next" and "Cancel" buttons make no sense at all, but I cannot remove them. Adding dialogs at Dialogs tab by the "New Dialog" or "New Dialog In Sequence" context menu buttons is not a problem for me, but I don´t understand why I can´t customize its UI (buttons) as I wish?

Could you please advise me? Thanks in advance!

Best regards,
Zsolt
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Creating a custom dialog with Ok-Cancel buttons instead of Back-Next-Cancel

Hi Zsolt,

To achieve this you can follow the steps below:
- select your "Advanced" button and use the "New" button from the "Published Event" tab
- in the dialog that appears select the "Display a specific child dialog" event and choose the "<NewDialog>" argument for it, then press OK
- in the dialogs tree, under the dialog that contains the "Advanced" button a new "SpawnDialog" will be added, so you can customize that dialog as you need
- in case a button cannot be removed, you can hide it by setting its "Visible" attribute to "False" in the "Properties" pane

Let me know if this helped, otherwise give me more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 342
Joined: Fri May 29, 2015 10:36 am

Re: Creating a custom dialog with Ok-Cancel buttons instead of Back-Next-Cancel

Hi Eusebiu,

Thanks for the quick response, your proposal worked perfectly fine!

Best regards,
Zsolt
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Creating a custom dialog with Ok-Cancel buttons instead of Back-Next-Cancel

You're always welcome Zsolt. I'm glad this worked.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”