Peter350
Posts: 30
Joined: Sat Oct 17, 2009 1:56 pm

Creating folders other than Key resources?

I decided to manually implement the control of Shortcuts during installation so that I can flexibly control these from command line arguments.

I have manually implemented Shortcut checkboxes which set properties, these properties control Features under which are Components containing Start Menu and Desktop shortcuts.

I am attempting to likewise manually control the Start Menu folder which the shortcuts are created under.

Under Files & Folders, StartMenu->Programs, I have created a shortcut named [|ProductName]

This works, however, the new folder is always created under Common component, as a Key Resource, and I am unable to move it to another component.

How would I create such a folder so that I can drag it's Resource to another component?
Peter350
Posts: 30
Joined: Sat Oct 17, 2009 1:56 pm

Re: Creating folders other than Key resources?

Also, I have not used the Application ShortCut Folder because I am manually switching-out the shortcut creation by their features, and this would lead to the Application ShortCut Folder being created regardless.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Creating folders other than Key resources?

Hello,

Your shortcut is a shortcut to an installed file. This type of shortcuts can not have their resources moved around. Simply create a shortcut to external file so it can be moved within the Organization menu page.
Here is a tutorial that refers to another issue but can guide you to create the shortcut to the external file.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Peter350
Posts: 30
Joined: Sat Oct 17, 2009 1:56 pm

Re: Creating folders other than Key resources?

Sorry I made a typo. Should have read

Under Files & Folders, StartMenu->Programs, I have created a FOLDER named [|ProductName]

It is the creation of this folder that is the issue.

I need to know how to create a FOLDER and move it to another component, so I can assign it under a conditional Feature.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Creating folders other than Key resources?

Hello,
I need to know how to create a FOLDER and move it to another component, so I can assign it under a conditional Feature.
To do this, you will need to go to the folder's properties from its context menu and check the "Create folder on target machine" component option. Then, from the Organization page, you can move the folder's component(drag and drop) in the conditional feature.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Peter350
Posts: 30
Joined: Sat Oct 17, 2009 1:56 pm

Re: Creating folders other than Key resources?

"Create folder on target machine" is already selected but the Folder shows under a Component of the same name, and is the Key Feature.

Therefore it cannot be moved to another Component?
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Creating folders other than Key resources?

Hi,
Therefore it cannot be moved to another Component?
Please note that Mihai recommended that you move the component to a new feature, not another component.

You cannot include a component in another component. Only a feature can be a parent for a set of components.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”