Conditionally create folder - 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!

gnidde
Posts: 3
Joined: Wed Oct 27, 2010 2:57 pm

Conditionally create folder

Hi,

I'm new to Advanced Installer and have a simple question:

If I crate a folder structure under the application folder (in the Files and Folders section), e.g., Application Folder -> Developer tools -> Tool1.
The Tool1 folder contains a .exe file which I add under a Feature that should only be installed if the user selects to install the feature. It works fine, e.g., the .exe file is not installed if the user opts to not install the feature but the folder Developer tools will be created anyway. The Tool1 folder is not created. How can I prevent the Developer tool folder from being created if the feature is not installed?

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

Re: Conditionally create folder

Hi,

You can try this:
- right-click on "Developer tools" folder in "Files and Folders" page
- select "Properties" menu
- uncheck Create folder on target machine option
- click OK and rebuild your project

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

Return to “Common Problems”