Hi Wix-user, I would like to call one Custom Action in uninstallation. I know that uninstallation will remove files. But I want the Custom Action can be run before remove files. So I set Custion Action as follow: <CustomAction Id='VPAdminUninstall' FileKey='VPAdmin.exe' ExeCommand='Do something' Return='asyncWait' />
And I call the custion action in <InstallExecuteSequence> <Custom Action="VPAdminUninstall" Before="RemoveFiles">Installed AND NOT REINSTALL</Custom> However, I found that the Custom Action ran together with Remove Files, since there is error message saying the file is execlusive accessed by the exe, which is in the Custom Action. When the Custom Action finished its work, I click the Retry button on the error message, the uninstallation remove files can go on. How can I do the Custom Action before remove file in the installation, in order to avoid the error message "execlusive access"? Regards, Chunyan ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users