Phil is right. Just add this to the custom action sequence: <Custom Action="BatchScript" After="InstallFiles" ><![CDATA[ REMOVE<>ALL]]></Custom>
-----Original Message----- From: Phil Wilson [mailto:phildgwil...@gmail.com] Sent: Wednesday, September 17, 2014 4:16 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] CustomAction to execute batch file causes uninstall to fail You're referring to it as an "install" custom action, but I see no condition that causes it to be called only on install. In other words it's also being called at uninstall time and failing. --------------- Phil Wilson On Wed, Sep 17, 2014 at 4:08 PM, newuser2014 <wamplersovere...@gmail.com> wrote: > Hi, > > I have a custom action during the installation process to execute a > batch file to replace some config file. > > <CustomAction Id="BatchScript" Directory="AV" Execute="deferred" > Impersonate="yes" Return="check" ExeCommand="[SystemFolder]\cmd /c > "ConfigBatch.bat"" /> > > <InstallExecuteSequence> > ... > <Custom Action="BatchScript" After="InstallFiles" /> > </InstallExecuteSequence> > > The installation goes smoothly. However, uninstallation fails. Do > you know what might be the issue and a potential fix for this problem? > > Thank you very much in advance! > > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CustomAc > tion-to-execute-batch-file-causes-uninstall-to-fail-tp7596886.html > Sent from the wix-users mailing list archive at Nabble.com. > > ---------------------------------------------------------------------- > -------- > 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 ------------------------------------------------------------------------------ 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