Auto Close Applications does not work - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

nigor
Posts: 10
Joined: Tue Oct 25, 2011 5:04 pm

Auto Close Applications does not work

Using version 8.6

To make things very simply and not to dwell into my application, I've written the most basic HelloWorld.exe windows forms application (C#, visual studio 2010 SP1) and put in in the same directory as my app (C:\program files\...).

I set the window title to be "Hello World".

In my Auto Close Applications I tried all these:

AutoCloseApplication=[APPDIR]HelloWorld.exe|;Hello World
AutoCloseApplication1=[APPDIR]\HelloWorld.exe|;Hello World
AutoCloseApplication2=HelloWorld.exe|;Hello World

None worked on both XP SP3 and Win 7 SP1 when I run the update.

Please help, am I missing something?

Igor
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Auto Close Applications does not work

Hi Igor,

The auto close applications feature simply sends WM_CLOSE message to the main application window. If an application doesn't handle this message, nothing will happen. Do your applications handle WM_CLOSE?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nigor
Posts: 10
Joined: Tue Oct 25, 2011 5:04 pm

Re: Auto Close Applications does not work

Wohooo! Figured it out - it works in version 8.4 of Advanced Installer. I grabbed the updater.exe from that version and put it in my APPDIR directory, replacing the current one, then run the updater /checknow and it worked, it closed my main window!

Just to make this easy for you and rule out a lot of stuff, I created a basic installer (classic theme) with one HelloWorld.exe simple windows app. Then I tried to update with version 8.6 - no luck. Updater.exe from version 8.4 closed [APPDIR]HelloWorld.exe no problem.


Igor
nigor
Posts: 10
Joined: Tue Oct 25, 2011 5:04 pm

Re: Auto Close Applications does not work

Another update: the non-unicode version from 8.6 works too (from C:\Program Files (x86)\Caphyon\Advanced Installer 8.6\stubs\x86a). The one from C:\Program Files (x86)\Caphyon\Advanced Installer 8.6\stubs\x86u has the problem.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Auto Close Applications does not work

Hi Igor,

It seems there is a bug in the unicode updater, which is available starting with version 8.6, thank you for bringing it to our attention. A fix will be available as soon as possible, until then you can use the ANSI version of the updater from the latest version of Advanced Installer.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”