Option to automatically close running application before installation starts - Advanced Installer Community
eliradelorca1
Posts: 1
Joined: Sun Jun 28, 2026 5:08 am

Option to automatically close running application before installation starts

Hi everyone,

I'm Elira, and I've been using Advanced Installer Professional to package updates for several desktop applications used within our company. One feature I'd really like to see is a built-in option to automatically detect and close a running application before the installation begins.

At the moment, if a user forgets to close the application, the installer usually encounters locked files and either prompts the user or fails to replace some files correctly. We currently handle this with custom actions and external scripts, but it would be much simpler if this behavior were available as a standard installer option.

Ideally, the installer could check whether the target executable is running before copying files, display a customizable message, attempt a graceful shutdown, and only continue once the application has closed. If it can't be closed, the installer could offer options to retry, cancel, or continue after a reboot.

Having this built directly into Advanced Installer would make deployment more reliable and eliminate the need for custom scripting in many common installation scenarios.

Would anyone else find a feature like this useful?
Advanced Installer 24.0 Beta. Subway Surfers City
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Option to automatically close running application before installation starts

Hello and welcome to our forums.

In order to achieve this, you can implement the steps described in the "Custom Launch Condition Help" thread.

If you have other questions, let us know.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
marktuan
Posts: 2
Joined: Sat Jul 18, 2026 12:56 pm

Re: Option to automatically close running application before installation starts

eliradelorca1 wrote: ↑Sun Jun 28, 2026 5:11 am Hi everyone,

I'm Elira, and I've been using Advanced Installer Professional to package updates for several desktop applications used within our company. One feature I'd really like to see is a built-in option to automatically detect and close a running application before the installation begins.

At the moment, if a user forgets to close the application, the installer usually encounters locked files and either prompts the user or fails to replace some files correctly. We currently handle this with custom actions and external scripts, but it would be much simpler if this behavior were available as a standard installer option.

Ideally, the installer could check whether the target executable is running before copying files, display a customizable message, attempt a graceful shutdown, and only continue once the application has closed. If it can't be closed, the installer could offer options to retry, cancel, or continue after a reboot.

Having this built directly into Advanced Installer would make deployment more reliable and eliminate the need for custom scripting in many common installation scenarios.

Would anyone else find a feature like this useful?heardle
Yes, that would be useful, especially for unattended deployments. I’d also like the installer to handle a graceful close first and only force termination if necessary. Has anyone found a clean way to do this with the existing Advanced Installer features?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Option to automatically close running application before installation starts

Hi,

In order to perform a graceful close of the application, you can use the method I mentioned in my previous post. However, that only works for attended installations. Message boxes cannot be displayed during unattended installations in order to ask the user for confirmation.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”