Why didn't I think of that.... Sigh.. I did something similar for another msi. Thank you so much. I made it a seperate component and set a condition as you advised. Default is no but from command line when set to yes and other parameter is passed the config file gets updated. Fantastic!
Cheers, J On Thu, Sep 18, 2014 at 12:34 AM, Stabiplan Development <d...@stabiplan.nl> wrote: > Hi J, > > Yes this is possible. Are you using just an MSI or do you use a burn > bootstrapper? > > In case of an MSI you can define a property that you pass on the command > line, similar to INSTALLDIR=... You can create your own property say > UPDATEXML=<value> where value can be yes or no so something like that. > > In your component that executes the xml update (or your custom action) you > can use the 'condition' facility to let it run based on your command line > supplied value. > > For custom actions you can use the format: <custom action > ......>UPDATEXML="yes"</custom> > For components you can use the condition tag: > <condition><![CDATA[UPDATEXML="yes"]]></condition> > > But check the documentation for exact syntax. > > Best regards, > > Rob van Rosmalen B ICT software engineer > stabiplan +31 172 65 02 65 www.stabiplan.nl www.stabiplan.nl/disclaimer > -----Original Message----- > From: Jeremiahf [mailto:jeremi...@gmail.com] > Sent: woensdag 17 september 2014 23:14 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] XMLConfig updates only from command line > > Also the command line parameters do update the config file. Just wanted to > be clear that the XML config file should only be written to when a command > line parameter is used. > > Thanks again for any assistance. > > J > > On Wed, Sep 17, 2014 at 2:17 PM, Jeremiahf <jeremi...@gmail.com> wrote: > > > Hello, > > > > I have an installer that writes "default" property values to an XML > > config file every time the installer runs . I have a new requirement > > that does not allow me to "hardcode/set" those default property values > > within the installer but just install the config file and only update > > the config file when a command line parameter is passed to update a > > specific value in the config file. So in other words, install the file > > with it's default values when harvested and *only* write/update values > > to it when a command line parameter is passed during installation. Is > this possible? > > > > Thank you in advance, > > > > J > > > > > > -- > "They may forget what you said but they will never forget how you made > them feel." -- Anonymous > > ------------------------------------------------------------------------------ > Want excitement? > Manually upgrade your production database. > When you want reliability, choose Perforce Perforce version control. > Predictably reliable. > > http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > Want excitement? > Manually upgrade your production database. > When you want reliability, choose Perforce > Perforce version control. Predictably reliable. > > http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- "They may forget what you said but they will never forget how you made them feel." -- Anonymous ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users