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

How do I conditionally show the "StartMenuShortcutsDlg" dialog?

Answer

ImportantThis can be done only in an Enterprise project.

When you use the "ShortcutsDlg" dialog it is also a good idea to let the user choose the folder in which he wants to install the Start menu shortcuts. For this you can use the "StartMenuShortcutsDlg" dialog. However, it should not be shown if the user doesn't want to create a Start menu shortcut. For this you can use control events:

  • go to the Dialogs page and add the "ShortcutsDlg" and "StartMenuShortcutsDlg" dialogs
  • make sure that "ShortcutsDlg" is above the "StartMenuShortcutsDlg" dialog and both dialogs are under "FolderDlg"
  • select the [ Next ] button on the "ShortcutsDlg" dialog
  • you can double-click the "NewDialog" control event in the "Published Events" tab in order to modify it
  • make sure you set these control events:
        NewDialog      VerifyReadyDlg             AI_INSTALL AND NOT AI_STARTMENU_SH
        NewDialog      StartMenuShortcutsDlg      AI_INSTALL AND AI_STARTMENU_SH
  • select the [ Back ] button on the "VerifyReadyDlg" dialog
  • you can double-click the "NewDialog" Published control event in order to modify it
  • make sure you set these control events:
        NewDialog      ShortcutsDlg             AI_INSTALL AND NOT AI_STARTMENU_SH
        NewDialog      StartMenuShortcutsDlg    AI_INSTALL AND AI_STARTMENU_SH

This way the "StartMenuShortcutsDlg" dialog is shown only if the "Start Menu Programs folder" option is checked on the "ShortcutsDlg" dialog.

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