1) If you have any say in it, have the application fully stopped before uninstall. Files that are under installer control will be removed on an uninstall (with the exception of user data and files that are locked);
2) Use RemoveFolder/RemoveFolderEx only on files NOT in installer control that you really WANT to be removed. Potentially, this means log files, working files, etc. that weren't installed but were created by the application and are suitable for removal. 3) Investigate any installer-controlled file that is left behind. There's always a reason for it. -- John Merryweather Cooper Senior Software Engineer | Enterprise Service Applications | Continuing Development Jack Henry & Associates, Inc.® | Lenexa, KS 66214 | Ext: 431050 |[email protected] -----Original Message----- From: Marco Tognacci [mailto:[email protected]] Sent: Monday, October 6, 2014 5:15 PM To: WiX - users Subject: Re: [WiX-users] Wix msi setup clear and remove remove installation folder on uninstall So what would you do to clear the application folder after uninstall?Can you add a sample code in detail?Thanks. > From: [email protected] > To: [email protected] > Date: Mon, 6 Oct 2014 21:40:26 +0000 > Subject: Re: [WiX-users] Wix msi setup clear and remove remove > installation folder on uninstall > > Neither. In my case, stopping the AppPool would probably allow all the files > (and the folders) to be deleted. However, we're not "ready" for that step. > So, IIS holds locks on some of the files during uninstall, and some files get > left behind. I can put some RemoveFolder or RemoveFolderEx code in, but this > is just a Band-Aid. > > Be careful, RemoveFolderEx is quite powerful (and useful when you REALLY need > it). > > -- > John Merryweather Cooper > Senior Software Engineer | Enterprise Service Applications | > Continuing Development Jack Henry & Associates, Inc.® | Lenexa, KS > 66214 | Ext: 431050 |[email protected] > > > > -----Original Message----- > From: Marco Tognacci [mailto:[email protected]] > Sent: Monday, October 6, 2014 4:13 PM > To: WiX - users > Subject: [WiX-users] Wix msi setup clear and remove remove > installation folder on uninstall > > I have made an msi package and I need to remove installation folders and all > files (generated by the application during working) on uninstall.I have seen > usage of RemoveFolder and RemoveFolderEx but I need to know which is the best > way, which are the differences from RemoveFolder and RemoveFolderEx?I need to > save the location on the registry?Can you post a full sample of the best way > for doing this? > ---------------------------------------------------------------------- > -------- Slashdot TV. Videos for Nerds. Stuff that Matters. > http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wix-users > NOTICE: This electronic mail message and any files transmitted with it > are intended exclusively for the individual or entity to which it is > addressed. The message, together with any attachment, may contain > confidential and/or privileged information. > Any unauthorized review, use, printing, saving, copying, disclosure or > distribution is strictly prohibited. If you have received this message > in error, please immediately advise the sender by reply email and delete all > copies. > > > ---------------------------------------------------------------------- > -------- Slashdot TV. Videos for Nerds. Stuff that Matters. > http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

