Complains about file in use for exes it installs - Advanced Installer Community
regant
Posts: 10
Joined: Thu Mar 14, 2013 9:03 pm

Complains about file in use for exes it installs

Recently I am seeing a prompt during the installation of our program that certain applications need to be stopped in order to proceed since they are using files that need to be replaced. The problem is that these are exes (and services) that the installer installed. Therefore, it should be stopping them as part of the uninstall (per the service control settings).

Why is this prompting for files it should know about?

This is occurring during a major upgrade.

This was not occurring previously. Could it be a but in the installed version of Advanced Installer?

Version: 10.3 Build 51799
Installing on Windows Server 2008 R2

Note: I have emailed the aip file to the support address and referenced this topic.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Complains about file in use for exes it installs

Hello,

Please note that this dialog ("FilesInUse" on XP and "MsiRMFilesInUse" on Vista) is shown automatically by Windows Installer during the InstallValidate standard action when the installer checks if any file is in use and if so, it displays that dialog.

This dialog can be avoided by running a Detect and Stop custom actions before the install/uninstall process which stops the processes which use the files.
Please take a look on the Detect or stop a process How-to article which may be useful to you.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
regant
Posts: 10
Joined: Thu Mar 14, 2013 9:03 pm

Re: Complains about file in use for exes it installs

That solved my problem. Thank you.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Complains about file in use for exes it installs

You're welcome.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”