Thanks Peter! I tried to use "check". And it works. The exe runs before remove files. So there is no access conflicts now.
Cheers, Chunyan -----Ursprüngliche Nachricht----- Von: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] Gesendet: Donnerstag, 30. Juli 2009 15:44 An: General discussion for Windows Installer XML toolset. Betreff: Re: [WiX-users] Custom Action in uninstall before remove files Try changing the Return attribute to "check", which is the default attribute value, and see if that works. -----Original Message----- From: Jiang, Chunyan (GE Healthcare) [mailto:chunyan.ji...@ge.com] Sent: 30 July 2009 14:19 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Custom Action in uninstall before remove files 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 SDL PLC confidential, all rights reserved. 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. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ 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 ------------------------------------------------------------------------------ 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