Force Customised Install - 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!

mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

Force Customised Install

I would like to enforce that the installer 'skips' the SetupType dialog that displays "Typical, Custom and Full", and proceeds as if the user had selected Custom.

At the moment I achieved this with some fiddling around by referencing the CustomDlg by name in the Next button event for the previous dialog, so I'm not using the SetupType dialog at all. Although it works, this seems kind of clumsy and I would have thought this might have been a common enough requirement that it should be possible without having to muck around editing the dialogs?

It is also confusing that the SetupType dialog seems to "own" the CustomDlg in some way, as the latter cannot be added directly to the dialog tree with the Add Dialog menu command.

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

Re: Force Customised Install

Hi,
I would like to enforce that the installer 'skips' the SetupType dialog that displays "Typical, Custom and Full", and proceeds as if the user had selected Custom.
This can be done by manipulating the NewDialog published control events for the "Back" and "Next" buttons. Note that the User Guide contains the Add a dialog after "SetupTypeDlg", Conditionally show "StartMenuShortcutsDlg" and Conditionally show the "UpgradeDlg" dialog how-to's which may help you.
I would have thought this might have been a common enough requirement that it should be possible without having to muck around editing the dialogs?
Windows Installer uses NewDialog control events to determine what dialog will be shown when a button is pressed. Therefore, the only way to control the dialogs is through these control events. Also, Microsoft has some recommendations regarding the installation dialogs (for example "CustomizeDlg" should come after "SetupTypeDlg"). Since you are trying to override these recommendations, it takes some work to change the dialog sequence.
It is also confusing that the SetupType dialog seems to "own" the CustomDlg in some way, as the latter cannot be added directly to the dialog tree with the Add Dialog menu command.
This is because the "CustomizeDlg" dialog is supposed to be shown only after the "SetupTypeDlg" dialog. Since you need to create a custom dialog sequence, you need to override the recommended one.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

Re: Force Customised Install

OK Thanks....it seems to be working OK.

Return to “Common Problems”