TheWire
Posts: 5
Joined: Tue Nov 12, 2019 8:55 am

Auto Close Not Working

Hi,
When I use the Updater to install a new version from with a VB6 application, the Auto Close functionality is not working. I have set the Option on the "Auto Close Applications" tab within the Updates Configuration file project. There are no error messages.

This was working fine when the update was performed on the form load of the VB6 application, but does not work when the same call to the updater is made from an "About" form after the application is fully loaded.

Please can you tell me how the Updater attempts to close the application, and if there is any way to debug or log what is preventing the shutdown from taking place.

Thanks a lot,
Alan
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Auto Close Not Working

Hello Alan,

First of all, please accept my apologies for the delayed reply.

When trying to add a new entry in the "Auto Close Applications" tab, the "New Auto Close Application" dialog is spawned.

In this dialog, you can specify the path of the application to be closed. Using this path, the Updater tries to detect the main window of the application. In order for the application to be successfully closed, this windows must not be a dialog and it must have a system menu and a title.

The application will be closed with a WM_CLOSE message that is sent to this window.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TheWire
Posts: 5
Joined: Tue Nov 12, 2019 8:55 am

Re: Auto Close Not Working

Thanks Catalin - that helps a lot,
Alan
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Auto Close Not Working

You are always welcome, Alan.

I'm glad I could help.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”