I have looked more closely at the logs and if I try to open the file I want to change at the point Before=InstallFinalize, then the file does not exist. If I use After=InstallFinalize then I can open the file but I don't have permission to write it back to its folder in Program Files.
Any idea what is the best sequence to do this kind of operation? ________________________________________ From: Hoover, Jacob [jacob.hoo...@greenheck.com] Sent: 18 November 2014 19:24 To: General discussion about the WiX toolset. Subject: Re: [WiX-users] why do I have to install twice to make things happen? Use a deferred custom action, and use an auxiliary SetProperty custom action to assign the properties that are needed by it. http://wix.tramontana.co.hu/tutorial/events-and-actions/at-a-later-stage http://stackoverflow.com/questions/11233267/how-to-pass-customactiondata-to-a-customaction-using-wix Note: Because you are modifying the config file, windows installer is going to see the file as modified and more than likely is not going to remove it on uninstall. Ass a RemoveFile entry to explicitly remove the file to ensure the uninstall cleanly removes it. You will also want to condition your deferred CA to only run when you want it to. -----Original Message----- From: jason.small...@bt.com [mailto:jason.small...@bt.com] Sent: Tuesday, November 18, 2014 12:20 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] why do I have to install twice to make things happen? 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 ------------------------------------------------------------------------------ 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