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!

lima665
Posts: 1
Joined: Wed Feb 08, 2017 8:21 am

File in use

I am trialing AI to make sure it meets our needs before we purchase the product. I have been really impressed by the product.

I have a scenario which I hope AI is capable of doing.

We have a 3rd party vendor that provides hotfixes for their products as a raw file, so no installers, and for most hotfixes the product shouldn't be running when overwriting the file. I am wondering if I can create a installer which will detect if the program is running and if it is then wait until the next restart before overwriting the file. If the program isn't running then the installer is free to overwrite the file.

We will be deploying the updates centrally and silently so the user shouldn't be prompted to restart and the installer shouldn't close the program.

I have read that AI will detect a file in use however I couldn't find any reference to what happens when doing a silent install and wanted to make sure it will behave appropriately.


Matt
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: File in use

Hi Matt and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

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.

Also, you can take a look on our How is Files in Use determined - can it be overridden? forum thread which debates a similar subject.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

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

Return to “Building Installers”