joey.powell
8/13/2008 3:53:00 PM
On Aug 12, 5:31 am, "Phil" <N/A> wrote:
> > Unfortunately custom actions in the
> > "Uninstall" phase do not fire until AFTER the uninstall has completed
> > (according to Microsoft's documentation).
>
> Are you sure?
> The only reference I could find in the help file is this:
>
> Uninstall
> Custom actions placed under this node will be executed at the end of the
> uninstall phase of installation, which occurs when an application is
> uninstalled.
>
> This is extremely badly worded and ambiguous. It does seem to imply that the
> custom action is performed after the uninstallation, but I'm not sure if
> that is what was intended by the 'author'. Have you tried it? I would be
> very surprised if the custom action were to execute after the files were
> deleted. If you are using an installer class, the DLL containing this must
> still be available for it to call into, so clearly it cannot have been
> deleted yet.
You were right. It is extremely badly worded. The CA gets called at
the beginning of the uninstall phase and not at the end.