Take a look at the ADDLOCAL property i the MSI SDK.

On Mon, Feb 1, 2010 at 8:38 PM, JKLists <jkli...@ifm-services.com> wrote:

> Summary:
> I'm struggling to figure out the WiX code and MSI parameters to alter
> installed features from the command line.
>
> Details:
> I have a WiX-generated MSI with two features, let's call them FeatureA
> and FeatureB. I install from a bootstrapper which passes a command-line
> parameter indicating which product(s) to install. For example, the WiX
> code for FeatureA might be:
>
> <Feature Id="FeatureA" Title="Blah Blah Blah" Level="1">
> <Condition Level="0">NOT INSTALLFEATUREA</Condition>
> <ComponentGroupRef Id="...
>
> and the C# code to launch the MIS might be:
>
> Process lExe = new Process();
> try
> {
>     lExe.StartInfo.FileName = "foo.msi";
>     lExe.StartInfo.Arguments = "INSTALLFEATUREA=1 /passive";
>     lExe.StartInfo.Verb = "Open";
>     lExe.StartInfo.CreateNoWindow = true;
>     lExe.Start();
> }
>
> (The argument string here is hardcoded, but in actuality the arguments
> are built up in the bootstrapper. Arguments is hardcoded here for
> simplicity.)
>
> What I want to do now is allow the user to change which feature(s) are
> installed, but I'm not sure how (for example) to tell WiX/MSI to remove
> FeatureA from the command line, and add FeatureB.
>
> Sorry if the answer is obvious, but I've been barking up the wrong tree
> for the past hours and am crying "Uncle" on this one.
>
> Thanks!
>
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to