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!

noontz
Posts: 1
Joined: Mon Jun 10, 2013 7:26 am

Add-in install

Hi.. I´m new to all this so please bare with me ;)

I´m trying to make a conditional install of a feature under organization, depending on the existence of some specific folders on the target machine.

I have made some Property search folders mapping the specific folders, but I can´t figure out the "best practice". It seem´s as if they work "out of the box" e.g. if the folder doesn't exist on the target machine it doesn´t install, but I would assume a conditional install like !MY_PROPERTY=3 would be more correct ( where MY_PROPERTY is the search folder ), even though for some reason this evaluates false even if MY_PROPERTY (folder) is existent on the target computer?

Also : Is there a way to evaluate a condition? I can only find the validation.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Add-in install

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In the component “condition” field you can set your property (e.g MY_PROPERTY).
If your folder has been found in your search then in your property is stored the path of that folder which make this condition true.
If your searched folder do not exist on the machine then the property won't have any value. So, the condition is false and that files from the related component will not be installed.

You can also have a property based folder and in that folder you add your files that will be installed only if the property exist.
Also : Is there a way to evaluate a condition? I can only find the validation.
Unfortunately, this option is not available for a condition on a component but you can test your search result from the “Search” page using the [Test Search] toolbar button.
In case of your search success the property used will be set with a string which represents the value stored in the search property.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”