In that case, you might have to mark the features as hidden and provide an additional dialog box with a check box for each feature. When the user clicks 'next' on that form you call AddLocal or Remove based on the checkbox states. Showing the dialog and the features is conditioned on your product key properties. I'm not sure if it's the best way, but it's at least a suggestion if nothing else turns up.
Rob Bjørndahl wrote: > Sorry Rob, but that doesn’t work. > > I have tried that with no result. > > The feature tree is already built when the user interface kicks in.. and > the levels don’t seem to be editable at that point > > > > .thomas > > > > > > *Re: [WiX-users] Show/hide (or disable) feature based on product key* > > From: Rob Hamflett <[EMAIL PROTECTED]> - 2008-02-28 10:51 > > I think setting the feature's level to 0 might be what you want to do. > > Rob > > Bjørndahl wrote: >> Hi. >> >> >> >> I’m struggling with an issue in WIX. >> >> I have used a external dll (c++) to validate a product key. >> >> This is called using the DoAction event calling PIDKEYValidation. >> >> >> >> This works fine… >> >> But now I want to disable or remove the features where a specific >> parameter has a empty string value. >> >> The events AddLocal / Remove will only select or deselect the features. >> >> >> >> This is my WIX code: >> >> >> >> <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" >> Height="17" Default="yes" Text="Next"> >> >> <Publish Event="DoAction" Value="PIDKEYValidation">1</Publish> >> >> <Publish Event="AddLocal" >> Value="AppServerFeature"><![CDATA[INSTALL_FEATURE_APP_SERVER <> >> ""]]></Publish> >> >> <Publish Event="Remove" >> Value="AppServerFeature"><![CDATA[INSTALL_FEATURE_APP_SERVER = >> ""]]></Publish> >> >> <Publish Event="AddLocal" >> Value="ExtentionsFeature"><![CDATA[INSTALL_FEATURE_EXTENTIONS <> >> ""]]></Publish> >> >> <Publish Event="Remove" Value=" ExtentionsFeature >> "><![CDATA[INSTALL_FEATURE_ EXTENTIONS = ""]]></Publish> >> >> </Control> >> >> >> >> I hope anyone can help me… >> >> Thomas Bjørndahl >> Senior Systems Engineer >> >> >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> WiX-users mailing list >> [EMAIL PROTECTED] >> https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users