My mistake for not specifying what else I had tried: When i switched to 'deferred' LIGHT complained:
error LGHT0204 : ICE77: CA_CopyMasterIni is a in-script custom action. It must be sequenced in between the InstallInitialize action and the InstallFinalize action in the InstallExecuteSequence table I also found a piece of advice stating that in this case one should schedule in InstallUISequence - but that just gave errors during MSI execution.... On Wed, 18 Sep 2013 11:07:05 -0700, Phil Wilson wrote: > Your copy custom action is immediate - that means it will always happen > before any files are > actually copied. If you need it to run after InstallFiles has physically > copied files it should > be marked deferred. > > Phil Wilson > > > On Tue, Sep 17, 2013 at 10:45 PM, Kai Peters <kpet...@otaksoft.com> wrote: > >> Hi all, >> >> hopefully my last newbie issue for some time (all previous issues have been >> resolved thanks to >> the great help from this list - thanks again!): >> >> I deploy a CA "CA_CopyMasterIni" to copy a configuration file template from >> location A to >> location B >> if my customer's IT dept. has dropped one in location A prior to installing >> my MSI. >> >> This works as expected. >> >> However, as this process is optional I always need to install a default >> template file (as shown >> below). >> >> The issue is that InstallFiles happens after my CA and thus the customer >> provided template gets >> overwritten if it was supplied. I had added NeverOverwrite="yes" to the >> template component in >> hopes >> that this would prevent this overwriting but it does not... >> >> If I change sequences in the InstallExecute table and push my CA after >> InstallFiles, the CA >> does not run. >> >> How can I achieve my goal? >> >> As always, thanks for any pointers, >> >> K. >> >> >> <DirectoryRef Id="AppDataProductLineFolder"> >> <Component Id="COMP_IniTemplate" Guid="*" NeverOverwrite="yes" > <File >> Id="FILE_IniTemplate" >> Name="Quadra.ini" KeyPath="yes" Vital="no" >> Source="$(var.MiscDir)\Quadra.ini" /> </Component> >> </DirectoryRef> >> >> >> <!-- this CA copies an inifile template provided by customer's IT from >> COMMON_APPDATA to final >> destination --> <CustomAction Id="CA_CopyMasterIni" >> BinaryKey="BIN_InstallHelperDLL" >> DllEntry="CopyTestMasterInifile" Execute="immediate" Return="check" >> HideTarget="no" >> Impersonate="yes" /> >> >> >> <!-- schedule custom actions --> >> <InstallExecuteSequence> >> <!-- back up Quadra.ini before old version is uninstalled --> >> <Custom Action="CA_BackupGlobalIni" After="InstallValidate" /> >> >> <!-- restore Quadra.ini after the old version has been uninstalled --> >> <Custom Action="CA_RestoreGlobalIni" After="RemoveExistingProducts" /> >> >> <!-- ... --> >> <Custom Action="CA_CopyMasterIni" After="CA_RestoreGlobalIni" /> >> </InstallExecuteSequence> >> >> >> ------------------------------------------------------------------------------ >> LIMITED TIME >> SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of >> tutorials including >> VisualStudio 2012, Windows 8, SharePoint >> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack >> includes >> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. >> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk >> _______________________________________________ WiX-users mailing list WiX- >> us...@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> > ------------------------------------------------------------------------------ > LIMITED TIME SALE - > Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials > including > VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST > VALUE: New Multi- > Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price > ever! Ends 9/20/13. > http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk > _______________________________________________ WiX-users mailing list WiX- > us...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users