In a typical installation sequence the DeleteFiles action comes BEFORE the InstallFiles action.
However, good custom actions always use data from the MSI database, which would make them declarative. -----Original Message----- From: Lian Jiang [mailto:[email protected]] Sent: Friday, August 21, 2009 10:13 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] delete files at the end of installation. I am installing a driver using my own install.exe and the *.sys file. I cannot use wix difx to install the driver for some reason. Difx element has an attribute DeleteFiles which will delete the *.sys file at the end of installation if set TRUE. Interestingly, DIFX installation process seems to be: Step 1. install sys file to the application installation directory, Step 2. DIFX install the sys file to c:\windows\system32 directory, Step 3. The sys file is deleted from application installation directory. I want to duplicate the process with my own install.exe. So to delete the *.sys file from the application installation directory, I plan to use a custom action at the end of InstallExecuteSequence. Since custom action is always the last choice, I am wonder whether there is a more decent way achieve this. For example, can this sys file be deleted declaratively using existing WIX element? Thanks for any clue. Thanks Lian ---------------------------------------------------------------------------- -- 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 [email protected] 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

