How to Customize a SetupTypeDlg - Advanced Installer Community
ctw_lty
Posts: 13
Joined: Mon Apr 17, 2017 9:40 am

How to Customize a SetupTypeDlg

hello, I was using SetupTypeDlg predefined in advanced installer and find it powerful.
But when I want to extend it, like adding more option, using the condition defined by myself rather than the InstallMode , some problems appear. when I using the newDialog action published by the setupTypeDlg option to open the newDialog, I find that the newdialog appear itself rather than using the same newDialog which was show only if meeting the requirement. what's more, the Automatically appear newDialog and the VerifyReadyDlg loop contain each other.
what should I do to Customize a SetupTypeDlg?
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How to Customize a SetupTypeDlg

I'm not sure what you are trying to implement. Could you please give me a detailed scenario regarding the behaviour you would like to implement?
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ctw_lty
Posts: 13
Joined: Mon Apr 17, 2017 9:40 am

Re: How to Customize a SetupTypeDlg

sorry,I didn't make it clear.
I have several product in my install package which may be several option for user to choose. Therefore, I would like to make a dialog like SetupTypeDlg to show my product. There were two thing I would like to change from SetupTypeDlg.
One of that is the number of option, it maybe more than three option in my dialog.
The second is the "show, only if" condition, In the setupTypeDlg, the condition is InstallMode = InstallModeCustom and so on, but I would change the condition to be like InstallProduct=Product1,InstallPorduct=Product2...based on the number of the options.

I've done several several thing, but met some problem and do not get a well performance package.
①I could't delete the option button in the SetupTypeDlg
②I add a new sub dialog understand SetupTypeDlg and edit the "show,only if conditon", the condition is InstallProduct=Product1 mentioned above.
③I edit public event,NewDialog, to open the newDialog created before in the setupTypedialog. when this step was done , the newDialog created before was appering again as a sub dialog of setupTypedialog but not under the "show only if" condition.Therefore, there were the same two sub dialog understand SetupTypeDlg, one is under "show only if" condition, another is not which Automatically appearing.
I would like to know how to Customize a new SetupTypeDlg or just create a new one
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How to Customize a SetupTypeDlg

Hello,
I could't delete the option button in the SetupTypeDlg
Indeed, this button can't be deleted. You could hide it by setting its "Visible" attribute to false from the Properties pane.
However we do not recommend modifying this dialog. Instead you could create a new dialog and customize it to your needs.
I add a new sub dialog understand SetupTypeDlg and edit the "show,only if conditon", the condition is InstallProduct=Product1 mentioned above.
We recommend using "Display dialog" publish events placed for navigating through dialogs.
I edit public event,NewDialog, to open the newDialog created before in the setupTypedialog. when this step was done , the newDialog created before was appering again as a sub dialog of setupTypedialog but not under the "show only if" condition.Therefore, there were the same two sub dialog understand SetupTypeDlg, one is under "show only if" condition, another is not which Automatically appearing.
The "Display a specific dialog" and "Display a specific child dialog" published events which have true conditions are executed from bottom to the top of the list. Thus, the dialog contained by the first show dialog published event with a true condition will be displayed and the rest of the publish events of this kind are ignored.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”