Shared folder between 2 Features, but unique Shortcut - 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!

cbono
Posts: 42
Joined: Thu Aug 14, 2008 10:11 pm

Shared folder between 2 Features, but unique Shortcut

Hello all,

I'm working through setting up configurable Features for the first time (all previous installers have just used the 1 "MainFeature"). The basic idea is that I want to allow users to choose to install all the files locally, which allows them to run from their PC, or run from the installation CD. I am setting these up as 2 Features in the Organization page.

In the "local" scenario, I want a shortcut to the Executable that's installed in the AppDir (easy enough, that's no problem). In the "CD" scenario, I want a shortcut to the Executable on the CD. Regardless of which option they install, I want the shortcut created in the Application Shortcut Folder, as defined on the Install Parameters page.

According to the Organization page, the shortcut directory is a separate component (called SHORTCUTDIR). I understand how to share this component between both Features. The problem I run into is getting the "CD" shortcut to only show up in the "CD" feature.

In Files and Folders, I defined an Installed File Shortcut under the Application Shortcut folder, which covers the "local" option. I then created a new Shortcut to External File in the same directory, with a different name and pointing to the CD folder. Now under Organization, the "CD" shortcut shows up as a resource under both copies of the SHORTCUTDIR component (i.e. will be installed for both features, not just 1).

I see that there is an option to move a resource to a new component, but this option is grayed out when I right-click on the shortcut resource. It seems I'm stuck. How do I get this shortcut assigned to just the one feature?

Thanks in advance,
Chris
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Shared folder between 2 Features, but unique Shortcut

Hi Chris,
Now under Organization, the "CD" shortcut shows up as a resource under both copies of the SHORTCUTDIR component (i.e. will be installed for both features, not just 1).
I see that there is an option to move a resource to a new component, but this option is grayed out when I right-click on the shortcut resource. It seems I'm stuck. How do I get this shortcut assigned to just the one feature?
By default the shortcuts are added in the component of "Application Shortcut Folder" (SHORTCUTDIR). However, they can easily be moved to other components by drag and drop in the "Organization" page. Basically, you can move the installed file shortcut to a component in one feature and the external shortcut to a component in the other feature. After the shortcuts are moved, the SHORTCUTDIR component can be shared between features.

Please note that shortcuts cannot have a component of their own, they can be placed only in an existing component.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”