Stefan Webb wrote: > <CustomAction > Id="SampleExe" > FileKey="CsEXE" > ExeCommand="" > Execute="commit" > /> >
You probably want to use Execute="deferred" -- commit CAs don't run if the user or administrator has disabled rollback. > Now the program is started after the installation, but when I try and > uninstall the program it gives the following error: "...A program > required for this install to complete could not be run..." My guess is > that it is trying to execute the custom action after the uninstall as > well, and because the file has already been deleted by this stage it > fails. But in <Custom> I have set After="InstallFiles" so why is this > happening? Because InstallFiles runs during uninstall too. It also runs during repair. You can use a condition to control when a CA runs; see "Examples of Conditional Statement Syntax" in the MSI SDK for examples. > Also, is it possible to use a custom action to close a > program before I uninstall it? Thanks. > Yes. WiX has one but it isn't completely functional yet. MSI will also prompt the user to close an application, if it's showing a window at the time (so "tray apps" don't count). -- sig://boB http://joyofsetup.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users