Mike@Nestor
Posts: 7
Joined: Fri Mar 22, 2024 2:45 pm

Create custom dialog

Hi!

Big headache for creating a custom dialog.
I am working with the latest AI with Enterprise licence.
I add a new dialog in the "first time install" group.
From this dialog I can't remove any control.
To be able to remove a control (such as a button), I have to duplicate this dialog. After that I can customize it as I want. This duplicated dialog appears in the "Project dialogs" group.
But the big problem that follow is that I can't add this dialog to my sequence, it never appears in the dialog choices.
And I can't move this dialog to the repository either.

???!!
I worked several years ago on advanced installer and don't remember of these kinds of problems !
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Create custom dialog

Hello Mike,

I am not quite sure why this is happening.

In order for me to further investigate this, could you please let me know what theme you are using and a test-case (e.g. the steps you are taking in order to reproduce this)?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mike@Nestor
Posts: 7
Joined: Fri Mar 22, 2024 2:45 pm

Re: Create custom dialog

Hello Catalin,

I am using the classic aero theme.
These are the steps to reproduce the problem :

- Open AI (21.5.1 for me)
- Add a new dialog in the "First Time Install" group (New dialog in sequence)
- Edit the new dialog and try to delete the Back button, you can't !
I can delete all the controls except the buttons. I tried to remove the events from each button but still can't remove these buttons. I understand I have to let at least one button with event to close the dialog.

regards,
Mike
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Create custom dialog

Hello Mike,

Thank you for your followup on this and for the shared steps.

This is happening due to some internal logic that is going on behind the scenes.

What you can do, if you want to hide those buttons, is to select it and then create a Control Condition that will hide/disable it.
Screenshot_134.png
Screenshot_134.png (22.18 KiB) Viewed 5139 times

This way, the button will be hidden at install time.

Hope this helps!

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

Return to “Common Problems”