mheckmann
Posts: 74
Joined: Wed Apr 20, 2011 6:24 pm

How would I go about bypassing the ShortcutsDlg

Hi,

I added in a advanced options section to my installer placing File Associations into there. But now I would like to also bypass the ShortcutsDlg and go straight from InstallDlg to ProgressDlg if advanced options is not selected. Is there a tutorial somewhere that would explain what I have to do - some help on how to get the install btn right onto the InstallDlg
I'm using the surface theme.

thx
Markus
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How would I go about bypassing the ShortcutsDlg

Hello Markus,

In order to achieve what you want you can proceed like this:
- Go to "Dialogs" page and add a new dialog (e.g. MyDialog) in the "First Time Install" tree node.
- Delete the "MyDialog" dialog from "First Time Install" tree node.
- On "InstallDlg" dialog add a new button control with the following control conditions:
  • Condition: AGREE_CHECKBOX
    Action: Enable

    Condition: NOT AGREE_CHECKBOX
    Action: Disable
- On the above button add the following published events:
  • Name: [Advanced]
    Argument: 1

    Name: Display a specific dialog
    Argument: MyDialog
    Show entire condition -checked
    Condition: AI_INSTALL AND Advanced
- Select the "InstallDlg -> Advanced -> MyDialog" and on the [Back] button add the following published events:
  • Name: Display a specific dialog
    Argument: InstallDlg
- Drag and drop the "ShortcutsDlg" and "FileAssociationsDlg" dialogs under "InstallDlg -> Advanced" subchain dialogs.
- Dlete the "MyDialog" dialog from "InstallDlg -> Advanced" subchain dialogs.
- Build and run your project.

Also, you can use a check box control instead of a button control to achieve this. Here are the steps to proceed:
- Add a check box control on "InstallDlg" like this:
  • Property Name: Advanced
    Value: checked
- Add a new dialog (MyDialog) and using its "Show only if..." context menu option add the following condition:
  • Advanced = "checked"
- Drag and drop the "ShortcutsDlg" and "FileAssociationsDlg" dialogs under "InstallDlg -> Advanced="checked"" subchain dialogs.
- Dlete the "MyDialog" dialog from "InstallDlg -> Advanced" subchain dialogs.
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mheckmann
Posts: 74
Joined: Wed Apr 20, 2011 6:24 pm

Re: How would I go about bypassing the ShortcutsDlg

Thanks for the help. Works beautifully. I almost had it but missed the part about moving the Shortcuts Dialog into the advanced section.

Thx again
Markus
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How would I go about bypassing the ShortcutsDlg

You're welcome. Glad to help.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”