tsellman
Posts: 24
Joined: Fri Sep 14, 2012 2:37 pm

Stopping Process Issue

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.
Attachments
uninstall_issue.zip
(42.85 KiB) Downloaded 336 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Stopping Process Issue

Hi,

As you already mentioned, these are Windows Installer dialogs and they are displayed because the application is not already stopped at that point.

In order to overcome that problem you can try to move the "Stop process" custom action before the "Preparing" action group.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tsellman
Posts: 24
Joined: Fri Sep 14, 2012 2:37 pm

Re: Stopping Process Issue

Your suggestion worked well. Thanks.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Stopping Process Issue

You're welcome. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”