mandarj123
Posts: 18
Joined: Tue Nov 18, 2014 2:38 pm

Exe update removing shortcut

I have been searching for this, but probably I am missing a setting somewhere.

I have an exe update which is detected for an application fine. But when the exe invokes msi and the update is being performed.

First I get the error "Files which need to be updated are currently in use" obviously I have used current exe to open up application which detected the update available and now this error is thrown. has anyone encountered this before?

Secondly once this happens, If i Manually go to task manager and end task to exe and proceed with updater, My application shortcut from desktop is gone!!

Any reasons for the behaviour?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Exe update removing shortcut

Hello,
First I get the error "Files which need to be updated are currently in use" obviously I have used current exe to open up application which detected the update available and now this error is thrown. has anyone encountered this before?
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.
Secondly once this happens, If i Manually go to task manager and end task to exe and proceed with updater, My application shortcut from desktop is gone!!
In order to have a better view about this, can you please send us the .AIP (project file) and a verbose log of the installation process to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Please let us know if that helped.

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

Return to “Common Problems”