To clean up a custom action during rollback, write a rollback custom action and schedule it at the same time as you schedule the custom action. http://msdn.microsoft.com/en-us/library/aa371369%28VS.85%29.aspx
To remove your files at uninstall, just add DeleteFile elements. There are other ways you could do this but they are more involved. -----Original Message----- From: Leung, John C.H. [mailto:johnle...@ea.com] Sent: 02 September 2010 19:48 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Can I add extra files to delete on rollback in my owncustom action? Hi, I was doing some searching and couldn't find an answer. In my own custom action during installation, I've created a couple of new files. But I notice that after my custom action is executed and if I then cancel out of the install, rollback don't know about these new files and they will be left on the computer. So I'm wondering if there is any way for me to add extra files for the rollback action (and uninstall) to delete right in my custom action when the new file is created? John Leung Software Engineer ------------------------------------------------------------------------ ------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users </pre> <BR style="font-size:4px;"> <a href = "http://www.sdl.com"><img src="http://www.sdl.com/images/email logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a> <BR> <font face="arial" size="2"><a href = "http://www.sdl.com" style="color:005740; font-weight: bold">www.sdl.com</a></font> <BR> <BR> <font face="arial" size="1" color="#736F6E"> <b>SDL PLC confidential, all rights reserved.</b> If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.<BR> SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.<BR> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. </font> ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users