View Full Version : Custom Setup -- Feature State

04-13-2006, 04:06 PM
I have a basic MSI Project. I have a custom setup option to uncheck a feature. The feature that I would like to be optional is in the tree view like
CETP Database

When the user deselects this feature I want to send them to a different dialog.
I am trying this right now--
In the Behavior of the Next Button of the CustomSetup Dialog I added a new row with the following parameters

Event = NewDialog
Argument = SQLLogin
Condition = (&CETP Database\\MSDE2000 <> 1) AND OutOfNoRbDiskSpace <> 1

But this is not working.

04-26-2006, 06:00 AM
Can you please explain what you intended to happen in the last line of the condition? what does

(&CETP Database\\MSDE2000 <> 1)


04-26-2006, 08:02 AM
For the &FeatureName condition, you don't need the parent feature name or backslashes; &MSDE2000 should suffice. (As an aside, internal feature names cannot contain spaces, so "&CETP Database" probably wouldn't work...)

05-05-2006, 07:25 AM
You need to put the event into the tree control events not the next button events.

The event should use the feature name of the sub feature e.g.
NewDialog, SQLLogin, (&MSDE2000=2) AND (OutOfNoRbDiskSpace <> 1)

The best way to diagnose events problems is to start with the condition set to 1 and add complexity until you get the behaviour you want