Windows Installer, Java Installer, Freeware Installer
Home|Contact|Site Map|TOC|Search
Download  Features   Java  Licensing  Purchase  Testimonials  Support  Forums

How do I add a dialog after "SetupTypeDlg"?

Answer

ImportantThis can be done only in an Enterprise project and it is guaranteed to work only in Advanced Installer 6.3 or higher (older Advanced Installer version may not support this).

This How-to explains how to add the "ShortcutsDlg" dialog after "SetupTypeDlg" (or after "CustomizeDlg" in case of a custom installation). In order to accomplish this you can follow these steps:

  • go to the Dialogs page and add the "SetupTypeDlg" and "ShortcutsDlg" dialogs
  • select the [ Typical ] button on "SetupTypeDlg" and double-click the "NewDialog" control event in the Published Events tab
  • set the Argument field to "ShortcutsDlg" (this will make the button show the "ShortcutsDlg" dialog)
  • do the same for the [ Complete ] button
  • select the [ Back ] button on "VerifyReadyDlg" and remove the published events
  • make sure that it has only this published event:
NewDialog        ShortcutsDlg        AI_INSTALL
  • remove the "ShortcutsDlg" dialog between "WelcomeDlg" and "SetupTypeDlg" (it has another instance under "SetupTypeDlg")
  • click the plus ("+") sign next to "SetupTypeDlg" to show the dialogs which come after it
  • select the [ Back ] button on "ShortcutsDlg" and make sure it has only these control events:
NewDialog        CustomizeDlg        1 AND InstallMode=InstallModeCustom
NewDialog        SetupTypeDlg        1 AND InstallMode<>InstallModeCustom
  • select the [ Next ] button on "ShortcutsDlg" and make sure it has only this control event:
NewDialog        VerifyReadyDlg      1
  • select the [ Next ] button on "CustomizeDlg" and make sure it has this published control event:
NewDialog        ShortcutsDlg        (NOT Installed) OR (InstallMode = "Change")

After building the project the "ShortcutsDlg" dialog will be placed between "SetupTypeDlg" and "VerifyReadyDlg". If you also want to allow the user to select the Start menu folder which will contain the shortcuts you can see How to Conditionally show the "StartMenuShortcutsDlg" dialog.

Download and unzip the sample project to better understand how to configure your own project. An Enterprise version of Advanced Installer (version 6.3 or greater) is required in order to build and run the project.

Privacy Policy | Windows Installer | Search Engine Ranking | Link Analyzer