slipgrid
Posts: 3
Joined: Tue Oct 12, 2010 1:37 pm

How To Create Conditional Shortcut

I want to create a shortcut or link to a program only if the software is installed on a Windows x64 system.

How do I create conditional shortcuts? Does this software support that?

Thanks for your help!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How To Create Conditional Shortcut

Hello,

This can be done by conditioning the components of the two shortcuts with the VersionNT64 property. For more details about this please see the Install resources based on the OS version how-to in the User Guide.

A shortcut to an installed file cannot have its own component and it is added automatically to the component of its target. Therefore you first need to create shortcuts to an external file instead of shortcuts to an installed file. This type of shortcuts can be moved to any component in the Organization page.

Since an external shortcut cannot have a component of its own, you can create two dummy components by using registry values in the Registry. For example, you can use one registry value for one shortcut and another value for the other shortcut. The components of these values can be conditioned with the "VersionNT64" property and they can contain the two shortcuts.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aps_brar
Posts: 8
Joined: Wed Jul 29, 2009 6:42 am

Re: How To Create Conditional Shortcut

can someone please explain how to "you can create two dummy components by using registry values in the Registry"
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How To Create Conditional Shortcut

Hello,

The "Create a shortcut only if a feature is installed" section of this user guide article explains the process in more detail.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”