Conditional folder install? - 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!

bnaylor
Posts: 3
Joined: Tue Jun 19, 2007 1:23 pm

Conditional folder install?

I'm sure there is a simple way to do this, but so far I haven't been able to get it to work. Here's what I want to do: I have my main application and an optional feature to install another folder under APPDIR. So it should look like this:

APPDIR
APPDIR\OptionalDIR // installed only for a 'complete' install


I only want the folder to be installed for a complete install, not a typical install. I put the folder under its own feature, which has an install level of 4, but it gets installed under APPDIR regardless of whether a 'typical' or 'complete' install is chosen. Please explain how I can get this to work.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This is a bug of Advanced Installer which will be fixed in a future release. When you change the view, the modification on the install level is not saved.

As a workaround select the main feature (or any other feature) after you set the feature's install level to 4 (that is change the selection in the tree control).
Now that feature is installed only for complete install.

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bnaylor
Posts: 3
Joined: Tue Jun 19, 2007 1:23 pm

Hi,

This workaround doesn't work for me. I set the install level to 4 on the optional feature, then clicked back on the main feature, then saved the project. The optional folder is still installed in all cases, so I may be doing something else incorrectly. Can you please outline for me the correct proceedure for specifying a feature that installs an optional folder underneath APPDIR? For example, should the optional folder be added as a property based folder with the value set in a custom action, etc.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please send the .aip file to support at advancedinstaller dot com and we shall modify it for you!

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

Return to “Common Problems”