estern
Posts: 19
Joined: Wed May 13, 2009 5:37 pm

Use dialog checkbox to manage shortcut to startup folder

On the finish dialog I'd like to give the user the option to add one shortcut to the startup folder. The installer creates 4 shortcuts and only 1 needs to go in the startup folder, the shortcutsdlg appears to apply to all shortcuts.

Is there a custom action I can use to add the shortcut to the startup group based on a condition? Is there another way to do this?

thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Use dialog checkbox to manage shortcut to startup folder

Hi,

I'm afraid that a condition for creating a shortcut cannot be placed on the "ExitDialog", that condition should be placed before the "ProgressDlg" dialog, before the installation/creation of the files. You can only create your own custom action if you want to have the condition on the "ExitDialog".

However, you can still use the "ShortcutDlg" dialog through which you can achieve what you want. Please keep in mind that, as mentioned in the Optional Install Dialogs article: These shortcuts must be created in the Files and Folders page in order to be installed. This dialog doesn't create the shortcuts automatically, it simply conditions their creation.

So, if you want to install only one shortcut in the "Startup" folder, then you can go in the Files and Folders page and create only the shortcut you want in that folder. Then, the "ShortcutDlg" dialog will condition the installation of that shortcut.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”