|
From: Riko E. <ri...@ko...> - 2004-11-23 09:10:21
|
Hi I am of the "stick-to-MSI-rules-because-they're-good-for-you" orientation, and generally when you get to the point where you have to resort to a "really icky solution" it might just suit you better if you rethink the way your install works. In this case, I would agree with Jason, who suggested you rather use the AddLocal/AddSource/Remove/SetInstallLevel actions from UI controls instead of trying to toggle the feature conditions after CostFinalize. Basically, MSI works like this: * decide what features you want to present to the user (before CostFinalize) * the user chooses the features he wants to install (after CostFinalize) * you install the features the user selected So if you have to do something which you shouldn't be doing (like setting feature conditions after costfinalize) it's usually a sign that you're doing something the Windows Installer designers THOUGHT you shouldn't be doing. And best to find another way. A good example is the good old "Full install, Minimal Install, Custom Install" screen. If you decompile one or two standard installs, you'll see that selecting full install usually does an ADDLOCAL=3DALL thing. While selecting Minimal install usually sets INSTALLLEVEL=3D1 or = something similar. My suggestion, come up with a different way to design your UI. If you explain what you want to do, and post it here, myself and many others would be more than willing to help. Sorry for the rant <smile/> Riko -----Original Message----- From: wix...@li... [mailto:wix...@li...] On Behalf Of Martin Muenstermann Sent: 23 November 2004 10:44 To: ro...@us... Cc: wix...@li... Subject: Re: [WiX-users] Conditional installation of features Rob Mensching wrote: > Ick, ick, ick. I don't know if anything goes wrong doing that, but=20 > that is a really icky solution. Maybe. Do you have a better solution? I think it is possible as SelectionTree chooses features at UI runtime. What I try to implement is a set of mutually exclusive features, choosable thru radio buttons. A working fragment would be highly appreciated. Martin > ---------- Forwarded message ---------- > From: Vagmi Mudumbai <vag...@gm...> > Date: Tue, 23 Nov 2004 08:20:11 +0530 > Subject: Re: [WiX-users] Conditional installation of features > To: Jason Swager <js...@al...> >=20 >=20 > You can forcefully call CostFinalize from a VBScript custom action to=20 > reevaluate the states. Use the DoAction method of the Session object=20 > to run CostFinalize from a custom aciton in ur UI. Alternatively, if=20 > you detest VBScript custom actions, you can use the MsiDoAction() API=20 > from a C++ DLL custom action. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.=20 http://productguide.itmanagersjournal.com/ _______________________________________________ WiX-users mailing list WiX...@li... https://lists.sourceforge.net/lists/listinfo/wix-users |