Thanks for your reply Bob. I have added the execute tag to the custom action,

<CustomAction
                Id="SampleExe"
                FileKey="CsEXE"
                ExeCommand=""
                Execute="commit"
/>

<InstallExecuteSequence>
        <Custom
                Action="SampleExe"
                After="InstallFiles" />
</InstallExecuteSequence>

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? Also, is it possible to use a custom action to close a
program before I uninstall it? Thanks.

On 6/20/07, Bob Arnson <[EMAIL PROTECTED]> wrote:
> Stefan Webb wrote:
> > <CustomAction
> >                 Id="SampleExe"
> >                 FileKey="CsEXE"
> >                 ExeCommand="" />
> >
>
> An immediate custom action runs before the deferred script execution
> begins. That means you're trying to run your custom action before the
> InstallFiles action has actually installed the file. The custom action
> needs to be deferred and then needs equivalent rollback and uninstall
> custom actions.
>
> --
> 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

Reply via email to