fabien
Posts: 9
Joined: Fri Jul 06, 2012 10:48 am

Feature : Install Based Condition

Hi,

I try to install my components with a trigger on an installer Property, which is set on my validation dll.

But it doesn't work ... the components are never installed, whether the property's value.

Here is my dll, where I set my property to True or False
Image

And the usage on Advanced Installer :
Image

My properties are create on Advanced Installer on Install Parameters
Image



PS. I try with condition : IsDefined or IsNotDefined with the same properties... and the component are or aren't installer as desired.
PS2. I use professional version

Thanks for helping,
Fabien
Daniel
Posts: 8279
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Feature : Install Based Condition

Hello Fabien and welcome to Advanced Installer forums,

This behavior may occur if your dll custom action is scheduled after "CostFinalize" standard action, when are evaluated the feature installation conditions.

In order to achieve what you want you can schedule the "UpdateFeaturesInstallStates" custom action after your dll custom action. This custom action updates all features states by re-evaluating their installation conditions. Also, please keep in mind that this custom action is available only in version 9.3 of Advanced Installer.

If you are using a lower version of Advanced Installer, then you can use a custom action which will set the features states accordingly with your properties values. Also, this custom action should be scheduled after your dll custom action. Please take a look on our "Show a custom feature selection dialog" article.

Let us know if this helps, otherwise give us more details about the scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fabien
Posts: 9
Joined: Fri Jul 06, 2012 10:48 am

Re: Feature : Install Based Condition

Thank you, it works :)

But, now... my component arent't correctly installed, I think it's because my Property isn't set to TRUE...

So, I modify my condition with following :
Image


Maybe my CustomAction to update is not correctly set to update features install state during uninstall...
Image


Thanks for helping !
Daniel
Posts: 8279
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Feature : Install Based Condition

Hello Fabien,
But, now... my component arent't correctly installed, I think it's because my Property isn't set to TRUE...

I'm afraid I don't fully understand what you mean. Can you please give us more details about your scenario (maybe exemplify)?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fabien
Posts: 9
Joined: Fri Jul 06, 2012 10:48 am

Re: Feature : Install Based Condition

I finally resolve my problem by myself :)

Return to “Common Problems”