At first glance there's no reason why a successful custom action would have the side effect of having files left behind in the Program Files folder. I would look at a verbose log to see what's going on. An obvious issue might be that the custom action is actually failing and the uninstall rolling back, but that would leave everything behind including Add/Remove Program entries. And does the uninstall complete ok and remove those files if you set the uninstall custom action condition to 0 so it doesn't run?
Phil Wilson -----Original Message----- From: ricky21 [mailto:rickysundr...@gmail.com] Sent: Wednesday, August 11, 2010 7:34 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Uninstall Custom action Hi , I have written a C# custom action which is to be invoked during uninstall , but i want to invoke it before the files in INSTALLDIR are deleted. So i set the custom action to execute before removefiles action. See the snippet below : <InstallExecuteSequence> <Custom Action="Set_INSTALLDIR" After="FileCost"> <![CDATA[Installed AND NOT INSTALLDIR]]> </Custom> <Custom Action="InvokeRunXYZRemove.SetProperty" Before="InvokeRunMAVTRemove">REMOVE="ALL"</Custom> <Custom Action="InvokeRunXYZRemove" Before="RemoveFiles">REMOVE="ALL"</Custom> </InstallExecuteSequence> The first custom action gets the value of Installation path from registry, second and third are custom action which i require to execute before the installation files are deleted. The custom action is getting executed. But now the other files are not getting uninstalled from ProgramFiles ? I am not getting what exactly am i missing out. Please give pointers, suggestions Thanks in advance Ricky -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Uninstall-Custom-action-tp5412498p5412498.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at Portland House, Bressenden Place, London, SW1E 5BF (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users