AI cannot delete old files so update fails - Advanced Installer Community
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

AI cannot delete old files so update fails

Hi Advanced Installer Support Team,

Please let me share a potential issue with you with Advanced Updater: copying some files manually to the installation folder kind of breaks Auto Updater since upgrade operations will simply never finish. Here is a step-by-step explanation about what I have done in details:

1. Logged in on a PC with non-admin account. (This might be an important factor.)
2. Installed the first major version (1.0.0) of our product into folder C:/Program Files/<product name>
3. After the installation procedure was done, I copied some extra files (these items are not relevant) to the installation folder. UAC dialog was shown as expected.
4. Launch Advanced Updater of product 1.0.0 and select a new major updater or patch from the list.
5. The package is getting downloaded and installation begins. At this point the operation is a kind of getting stuck, progress bar indicates that something is happening in the background, however it never ends, none of its buttons are active. The only thing the user can do is killing he process in Task Manager. From what I can see Advanced Updater cannot delete the extra files I inserted at Step 3. To confirm this please check the installation folder, nothing but the extra files are located there.

Personally I think it´s possible that users will copy some items to the installation folder some time after the installation. We cannot prevent this. Do you have any suggestions how this situation can be solved? It´d be much appreciated if you could do something against the current behavior (frozen dialog), for example notifying the user about blocking files.

Thanks in advance!

Regards,
Zsolt Kollarits
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: AI cannot delete old files so update fails

Hi Zsolt,
From what I can see Advanced Updater cannot delete the extra files I inserted at Step 3. To confirm this please check the installation folder, nothing but the extra files are located there.
The Advanced Updater is a small executable tool whose role is to check for updates, inform the user of their presence and offer to download and install them.
When the installation of the newer version starts, the upgrade process take place. An upgrade installation consists in two parts:
  • the uninstall of the old product version
  • the installation of the new product version
Please note that during an uninstall, Windows Installer removes only the data registered into the MSI file. All other data created by custom actions, by the installed application or by the user is not registered in the MSI, therefore it will not be removed.

So, it will never try to delete the related files added manually in the installation folder.

So, can you please tell us if you can replicate the behaviour on a clean machine? Also, in order to have a better view about this, can you please send us the .AIP(project file) of the upgraded version of the installation package and the updates configuration project? To create a log, please add the following command line statement in the Command Line field from the Update->Properties tab:

Code: Select all

/L*V <enter_path_to_log_file>
Please send us the log file so we can further investigate this.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: AI cannot delete old files so update fails

Hi Dan,

Sorry for the late answer, I was keep on trying to reproduce this problem - using the project I've used in the very beginning - without any success. No matter how many combinations I tried, the uninstall-install procedures were completed by the updater normally.

Since I usually use virtual machines for testing, my suspicion is that something went wrong on the very first virtual machine in terms of the file system. Anyway I'll let you know in case I see something similar in the future.

Nevertheless thank you for testing this issue for me!

Best regards,
Zsolt
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: AI cannot delete old files so update fails

You're always welcome Zsolt,

If you have other questions, please let me know.

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

Return to “Common Problems”