For the enclosed AI configuration, I get two distinctly different behaviors when the
uninstall of a given package is invoked when the executable contained within the package is still running.
I added a custom action in the 'Install Execution Stage' right after the 'Preparing' phase.
With XP, the uninstall procedure does in fact terminate the correct process, and does it
silently without any user interaction (which for better or worse is desired).
However with Windows 7, there's a sequence of dialogs asking for directions as it relates
to the stopping of an operating process. See comments starting at lines 313 and 333 in
the WIN7_UNINSTALL_INTERACT.LOG file and also see attached screen shots of dialogs
( noticeToCloseInteract.png and interact_killFail.png.
My guess is that Windows installer is invoking the active-process dialog, not advanced installer.
Once the user 'OK's the auto-removal dialog (interact_killFail.png), then the custom action
to StopProcess is employed and the uninstall completes successfully.
I would prefer not to have the dialog(s). Can you enlighten me as to the difference observed
in XP vs Win7. Should the custom action be moved earlier somewhere in the process ?
Thanks in advance.
FOLLOW US
Get the latest news in Application Packaging