Conditionally create shortcuts? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rprussell
Posts: 38
Joined: Tue Feb 24, 2009 5:34 pm

Conditionally create shortcuts?

Hi all -

I'd like to create a shortcut in the installed folder only if it's on a network drive. I've already done the legwork to determine whether this is the case, but I can't find where/how to set a property condition on the creation of shortcuts.

Is this possible?

Rob
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Conditionally create shortcuts?

Hi Rob,

A shortcut is created only if it's component is installed. Also, only shortcuts to external files can be moved to other components. For your project you can try this approach:
- create a shortcut to an external file
- in the Organization page move the shortcut to a component which is installed only if the folder is a network drive (if don't have one, you can create a registry value for it)
- condition the component

Another approach is to create the shortcut through a custom action. In this case the custom action can be conditioned to run only if the folder is a network drive.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rprussell
Posts: 38
Joined: Tue Feb 24, 2009 5:34 pm

Re: Conditionally create shortcuts?

cosmin wrote: - create a shortcut to an external file
- in the Organization page move the shortcut to a component which is installed only if the folder is a network drive (if don't have one, you can create a registry value for it)
- condition the component
Thanks, Cosmin - I will try that.

Return to “Common Problems”