matt123
Posts: 25
Joined: Mon Oct 28, 2013 7:36 pm

Installer stays open after upgrade

Hi,
I have a strange problem whereby the installer executable stays open after upgrading.

I launch an upgrade by launching the check for updates program from the application. This finds an upgrade, and the installation appears to proceed as normal, with my application closing when requested. Once the installation is complete, my application runs as normal (using the "run now" from the installer), but the actual installer process (msi as a .exe) remains open and consuming a full core of CPU. In fact, there are two processes for this .exe, one at full CPU and one doing nothing. They will remain (along with the "installing updates for.." window) until killed in the task manager.
Not all users experience this, but I can reproduce it and enough do experience it for it to be a bit of a problem.

Any ideas? Are there any gotcha's with launching the updater from my application? My application seems to close OK when requested.

thanks,
Matt
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer stays open after upgrade

Hello Matt,

This behavior may be caused by an Advanced Installer bug which appeared in v11.2 of AI. However, we already added a fix for this issue starting with version 11.3 of Advanced Installer. So, can you please rebuild your setup projects using Advanced Installer 11.3 and see if the behavior still persist? If you don't have a valid maintenance plan you can install Advanced Installer in trial mode and rebuild your projects in trial mode (also you should keep a backup copy for your projects).

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matt123
Posts: 25
Joined: Mon Oct 28, 2013 7:36 pm

Re: Installer stays open after upgrade

thanks Daniel.
I believe that I am still due for upgrades (til end July), but I have not been prompted and its next due in a few days apparently. Can I force this?
thanks,
MAtt
matt123
Posts: 25
Joined: Mon Oct 28, 2013 7:36 pm

Re: Installer stays open after upgrade

OK I did find "check for updates" but it doesn't do anything - no window of any sort. I am running 11.2 so I would like to upgrade to 11.3, and my plan is apparently valid until 19/07?
thanks,
Matt
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer stays open after upgrade

Hello Matt,
I believe that I am still due for upgrades (til end July), but I have not been prompted and its next due in a few days apparently. Can I force this?
For this you can go to "Options -> Auto Updates menu option" and configure the check for updates options.
OK I did find "check for updates" but it doesn't do anything - no window of any sort. I am running 11.2 so I would like to upgrade to 11.3, and my plan is apparently valid until 19/07?
I'm not sure why this happens. I've tested the scenario on a clean machine and the check for updates operation succeeded. Can you open the Advanced Installer application using the "Run as administrator" context menu option and see if the behavior still persists? Also, as another option you can manually download the AI 11.3 version from our "Download" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matt123
Posts: 25
Joined: Mon Oct 28, 2013 7:36 pm

Re: Installer stays open after upgrade

Daniel,
For some reason, after a couple of restarts of AI it worked. I got the latest version.

Now I have a new problem. The installer is unable to close my application, and shows a window saying this. It then shows the original "these applications need to be closed" window, with an extra entry for my application with an appended process Id.

I launch the updater like this on a button click in my app (c#, .NET 4):

updater.Start();
updater.WaitForExit();

any ideas?
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer stays open after upgrade

Hello Matt,

In order to avoid this behavior you can implement in your setup project the approach exposed in our "Detect or stop a process" article.

Also, as another option, you can open your updates configuration file and add your application in the "Updates page -> Auto Close Applications" tab.

Let us know if this helped, otherwise please give us more details about the behavior you are encountering.

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

Return to “Common Problems”