cschenkeltherolf
Posts: 10
Joined: Wed Jul 14, 2010 2:16 am

Source file not found during upgrade.

Our installer is set to not allow side-by-side installs and during upgrades it is set to first uninstall the old product; furthermore, the option 'Do not delete extracted MSI and CAB files' is selected .

The problem is that during an upgrade, after the old product is removed and the new product is being installed, the installer is saying that disk1.cab is not being found in the user's AppData folder (its set destination as per our project). This file does indeed exist after an install, and the install can succeed if it is canceled and re-installed (which is now a fresh install rather than an upgrade). It seems as if it is either deleting disk1.cab without copying the new one over, or copying the new one over and then deleting the files in the AppData folder.

We are using version 7.1.3. Is this a known issue or is there possibly a setting amiss?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Source file not found during upgrade.

Hello,

The reason you are encountering this issue is because you are extracting both versions in the same folder. Simply include the version in your extraction path too, to avoid this.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
cschenkeltherolf
Posts: 10
Joined: Wed Jul 14, 2010 2:16 am

Re: Source file not found during upgrade.

That makes sense.

I'd like to clarify my understanding of the issue though.

Is the new version of the cab/msi being extracted before or after the old one is being removed? Or can this sequence vary? I'd just like to understand why this is failing in detail.

Moving to using LZMA compression solved this (since it appears this stores it in a subfolder within the [AppData][|Manufacturer]\[|ProductName] destination.
I understand changing this to [AppData][|Manufacturer]\[|ProductName]\[|ProductVersion] while still using CAB rather than LZMA would fix the issue similarly, but the problem is with removing the old product during upgrade; with LZMA compression on the new version, it will still complain of the MSI or CAB file not existing in the folder, but once this installation is canceled, the old product is removed and the new one can then be installed. Changing this destination folder complains about an argument null exception at the same step.

Is there any way around this issue with the old version?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Source file not found during upgrade.

Hello,
Is the new version of the cab/msi being extracted before or after the old one is being removed? Or can this sequence vary? I'd just like to understand why this is failing in detail.
I am not sure about the implementation details regarding this behavior. All that is important is to avoid having the same extract location for the installers.
with LZMA compression on the new version, it will still complain of the MSI or CAB file not existing in the folder,
Even if you have LZMA compression, you still have to use separate extraction folders. Please use the ProductVersion property in the extraction field.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”