Powercoder
Posts: 4
Joined: Sat Mar 03, 2018 7:22 am

Autoclose not working properly

Every time I run the update checker from within my application, it attempts to close my application, and it appears to close, however there is a popup box that appears with the following:

"The following applications should be closed before continuing the install:"

It shows my application , and then it also shows the updater application.

I select the option that says to:
"Automatically close applications and attempt to restart them after setup is complete"

From there is continues fine. I would like to find out how to avoid getting this error window.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Autoclose not working properly

Hello,

This may happen if your application window do not correctly react to the "WM_CLOSE" message sent by our Updater.

As a workaround, you can configure a "Terminate process" custom action in your setup project. Just open your setup project and go to "Custom Actions" page. Here add a "Terminate process" custom action with sequence scheduled before "Install Execution Stage -> Preparing" action group.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Powercoder
Posts: 4
Joined: Sat Mar 03, 2018 7:22 am

Re: Autoclose not working properly

Ok, thank you. I will try this solution this week. Thank you for all the help with the other information previously too.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Autoclose not working properly

You are always welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”