Make it deferred and after InstallFiles, and have a rollback to undo whatever you do in case the install fails. --------------- Phil Wilson
On Tue, Nov 18, 2014 at 10:19 AM, <jason.small...@bt.com> wrote: > What is the best combination of Execute="" and CustomAction to allow me to > alter a file after it has been placed in a folder? > > -----Original Message----- > From: David Connet [mailto:d...@agilityrecordbook.com] > Sent: 18 November 2014 18:09 > To: General discussion about the WiX toolset. > Subject: Re: [WiX-users] why do I have to install twice to make things happen? > > The problem is that your CA is immediate. So when you run, the file hasn't > been installed yet - they're installed during the deferred phase. > Dave > > > From: "jason.small...@bt.com" <jason.small...@bt.com> > To: wix-users@lists.sourceforge.net > Sent: Tuesday, November 18, 2014 9:26 AM > Subject: Re: [WiX-users] why do I have to install twice to make things > happen? > > FYI - the custom action reads and modifies a configuration file that is > supplied as part of the installation. So, all the custom action needs to run, > is that file to have been put in the application folder. > > -----Original Message----- > From: Smallman,AJ,Jason,JTA19 R > Sent: 18 November 2014 17:22 > To: General discussion about the WiX toolset. > Subject: RE: [WiX-users] why do I have to install twice to make things happen? > > Oh, here it is > > <InstallExecuteSequence> > <Custom Action="ConfigureClientAction" Before="InstallFinalize" /> > </InstallExecuteSequence> > > Once I fix the problem, how do I go back to a clean state in my system i.e. > guarantee that the uninstall has worked? > > > -----Original Message----- > From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com] > Sent: 18 November 2014 17:19 > To: General discussion about the WiX toolset. > Subject: Re: [WiX-users] why do I have to install twice to make things happen? > > That's the definition of the CA, but where is it scheduled? Judging from the > name of the CA, it's modifying a payload the installer deploys. Since your > CA is modifying machine state, it should be a deferred CA and you should > provide a rollback/uninstall CA as well. (That's more than likely the root of > your problem, but until we can see your install execute sequence, it's just a > hunch.) > > To get verbose logs, use /l*v <path to log> when calling msiexec. > Ex: msiexec /l*v %TEMP%\debug.log /I foo.msi > > -----Original Message----- > From: jason.small...@bt.com [mailto:jason.small...@bt.com] > Sent: Tuesday, November 18, 2014 11:10 AM > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] why do I have to install twice to make things happen? > > My entry looks like this > > <CustomAction Id="ConfigureClientAction" > Return="check" > Execute="immediate" > BinaryKey="ConfigureClient" > DllEntry="EncryptConfigFile" /> > > The action does a ActionResult.Success > > I am no expert on Wix so I don't know how to find the log file! > > -----Original Message----- > From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com] > Sent: 18 November 2014 17:04 > To: General discussion about the WiX toolset. > Subject: Re: [WiX-users] why do I have to install twice to make things happen? > > What's the condition on your custom action? What does the log file on the > initial install look like? > > -----Original Message----- > From: jason.small...@bt.com [mailto:jason.small...@bt.com] > Sent: Tuesday, November 18, 2014 11:00 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] why do I have to install twice to make things happen? > > Hi, > > I have created a Wix installer with a custom action. > > However, I need to run the installer twice (without uninstalling inbetween) > for the custom action to work. > > Any ideas why? > > I thought that I may have not properly uninstalled the application properly. > I used the Control Panel. Is there a registry setting I can remove which will > make my application be fully uninstalled from Windows. > > Thanks > Jason > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from > Actuate! Instantly Supercharge Your Business Reports and Dashboards with > Interactivity, Sharing, Native Excel Exports, App Integration & more Get > technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from > Actuate! Instantly Supercharge Your Business Reports and Dashboards with > Interactivity, Sharing, Native Excel Exports, App Integration & more Get > technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from > Actuate! Instantly Supercharge Your Business Reports and Dashboards with > Interactivity, Sharing, Native Excel Exports, App Integration & more Get > technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from > Actuate! Instantly Supercharge Your Business Reports and Dashboards with > Interactivity, Sharing, Native Excel Exports, App Integration & more Get > technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from > Actuate! Instantly Supercharge Your Business Reports and Dashboards with > Interactivity, Sharing, Native Excel Exports, App Integration & more Get > technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from > Actuate! Instantly Supercharge Your Business Reports and Dashboards with > Interactivity, Sharing, Native Excel Exports, App Integration & more Get > technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users