hsc
Posts: 101
Joined: Wed Mar 02, 2016 2:55 pm

Conditionally creating a shortcut

Hi,

there are lots of articles about how to create a desktop shortcut to the installed application, and this works fine. However, how do I make the creation of the shortcut depend on the user's decision?

I added a checkbox with label "Create desktop icon" to the VerifyReadyDlg and linked it to the CREATE_DESKTOP_ICON property. How do I define the condition for the shortcut?

I saw hints that made me assume I must move the shortcut to a separate new component. When I right-click the shortcut in the Organization page, "Move to New Component" is disabled (grey).

What now?

Thanks, Hans
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Conditionally creating a shortcut

Hello Hans,
Please take a look at the
Conditionally create shortcut based on the user selection
forum sample, that describes how this can be achieved.

Let me know if you need any help.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hsc
Posts: 101
Joined: Wed Mar 02, 2016 2:55 pm

Re: Conditionally creating a shortcut

Thanks Liviu! Works like a charm... once I know it!
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Conditionally creating a shortcut

You are always welcome, Hans!

Glad we were able to assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”