toverly
Posts: 5
Joined: Thu Jun 26, 2008 7:48 pm

Auto Close Application

I was looking to have the updater auto close my application. It is a java app. I specify my app in the main executable path,and I add in the title of the Main JFrame in the window title prefix. Is there something I need to set in my application?

It doesn't ask me anything, and it doesn't close the program when I run the updater.

Is there an example java project someone might have to look at?

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

Re: Auto Close Application

Hi Tim,

The Auto-Close Application feature will send a WM_CLOSE message to the main window of the specified application. Therefore, in your Java app you should handle the WM_CLOSE message. If your application handles this message, but the Updater still cannot stop it, please make sure that you are using correct information for the auto-close feature.
Is there an example java project someone might have to look at?
I'm afraid that we don't have sample code for this (most applications handle the WM_CLOSE message automatically).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”