seppork
Posts: 15
Joined: Tue Jul 03, 2007 8:12 pm

Prevent custom action running if a feature is not installed

Hello!
Beeing a newbie here I may be asking a self evident question... however I cannot figure out this:

I have three optional features in my installation
If user de-selects one of the features, one of the custom actions should not run either.

How to accomplish this?

Regards
Seppo RK
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

See following forum thread for a similar approach:
http://www.advancedinstaller.com/forums ... php?t=1830

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
seppork
Posts: 15
Joined: Tue Jul 03, 2007 8:12 pm

Thanks for your quick answer !
I checked the thread.

As I am a total newbie with the program - please tell me where to put the

Code:
&MainFeature = 3

and do I have to make modifications somewhere else in the setup?


Seppo RK
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Seppo,

Select your custom action in the "Custom Actions" page and add this condition in the "Execution Condition" field.
and do I have to make modifications somewhere else in the setup?
Note that MainFeature is the feature identifier from "Organization" page in my case. You need to change this to fit your needs.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”