RMugione
Posts: 6
Joined: Thu Feb 15, 2018 3:10 pm

Custom action Close App not working

HI.
I just like to report the following.

When an application hides the X button. It cannot be closed by AI through a Close Application Custom action.
The application has the control box Close Button set to invisibile. The Windows doesn't have the X closing button top righit.
This is necessary because the application can't be closed by the user. The application closes it self in response to other events.

It seems that AI is incapable to close this type of window.
Simply try to create a Windows Form with invisible control box.

Ciao
Ricardo
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Custom action Close App not working

Hello Ricardo,

Could you please try to use "Terminate Process" custom action instead?

The "Close application" custom action allows you to close an application which uses a user Interface. By default the custom action closes windows which have a title-bar, a border and a system menu. It basically sends WM_CLOSE messages to all windows created by the application process. If this message is not treated by the application, it will not be closed.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RMugione
Posts: 6
Joined: Thu Feb 15, 2018 3:10 pm

Re: Custom action Close App not working

Hello Sorin.

Yes I will use the Terminate Process action but only as a last resort. Killing is not a best practice :? .

Regards
Ricardo

Return to “Common Problems”