vesselin.denev
Posts: 7
Joined: Tue Feb 03, 2015 8:17 pm

Feature folder

Hi All,

I need some help with getting something done in advanced installer.
I have two features in my installer. Under Files and Folders -> Application Folder I have several subfolders. All but one of those are associated with FeatureA. FeatureB has one of those folders assigned to it.
When I install with both features enabled, in my installation folder I get all the structure that is under Application Folder. And that is fine.
What I am trying to achieve is when FeatureA is disabled (not being installed) the files form FeatureB to be installed under APPDIR. Instead at the moment they are installed under APPDIR/foldername, where folder name is the folder that I have under Application folders and is assigned to featureB.

Does anyone have any ideas?
Probably I need to use a property based folder for featureB, but so far I've been unable to make it work.

Thanks in advance.

Kind Regards,
Vesselin Denev
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Feature folder

Hi Vesselin,

Please enable the Install folder content into the parent folder option from the Properties tab of the Edit Folder dialog.
When this option is enabled, the folder content will be installed into its parent folder.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vesselin.denev
Posts: 7
Joined: Tue Feb 03, 2015 8:17 pm

Re: Feature folder

Hi Dan,

Thank you for the reply.
I can't seem to get this working with your suggestion.
FeatureB should always be installed (it is a mandatory one). Only the folder changes.
If FeatureA is marked for installation FeatureB should be installed in APPDIR/subfolder.
If FeatureA is not being installed FeatureB should be installed in APPDIR.
Do you know how to get this one done?

Kind Regards,
Vesselin Denev
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Feature folder

Hi Vesselin,

In this case, you can create two folders with the same content for feature B. One folder will have the Install folder content into the parent folder option enabled, the other one will not have it.

Then, in the Organization view, create a new subfeature and assign each folder from the previous created ones with a subfeature.

Condition the subfeature installation based on the feature A state. If the feature A will be installed, then install the subfeature of B that has assign the folder that doesn't have the Install folder content into the parent folder option enabled. When feature A is not scheduled to be installed, then install subfeature of B which has assign the folder that has the Install folder content into the parent folder option enabled.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vesselin.denev
Posts: 7
Joined: Tue Feb 03, 2015 8:17 pm

Re: Feature folder

Hi Dan,

Thanks again.
This is exactly what I needed.

Kind Regards,
Vesselin Denev
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Feature folder

You're welcome Vesselin,

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
narsingani
Posts: 23
Joined: Thu Sep 12, 2013 4:59 am

Re: Feature folder

Hi,

Can someone explain what are these under Feature folder? Ho can I remove these?

Thanks!
Upendra
Attachments
Advanced Installer.jpg
Advanced Installer.jpg (16.78 KiB) Viewed 5540 times
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Feature folder

Hello Upendra,

The related items are the components contained by the feature. A component is automatically removed when all its contained resource files are moved into another component.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”