Losing file when upgrade - Advanced Installer Community
UnChanter
Posts: 5
Joined: Wed Feb 18, 2015 3:25 pm

Losing file when upgrade

Hello,

I have two setup file v1 and v2 (for example).
When I install v1 it's work, when I upgrade to v2 installer doesn't install file (in my case System.Web.Razor.dll)

But when I remove v1 via control panel and install v2 installer install this dll

So the question, why?

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

Re: Losing file when upgrade

Hi Anton,

Usually, this behaviour occurs when performing an upgrade for versioned files (e.g. .DLLs, .EXEs, etc) when the file from the destination folder has a higher version than the source file.

If during an upgrade operation there are files missing from the installation folder, then the next step to troubleshoot this is to create a verbose log of the installation process.

If you can find the following message: Disallowing installation of component: GUID's component since the same component with higher versioned keyfile exists in your log, then this is the reason why your file is not coppied on the target machine.
The upgrade process performs the following actions:
  • Detect and completely remove older products. During this operation the file will be removed from the machine.
  • Install the new product. The file from the upgraded version will not be installed since its component was not marked for installation.
To overcome this behaviour, you can enable the Always overwrite existing file option from the File Operations Tab of the File Properties.

Please let me know if this is your case too.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
UnChanter
Posts: 5
Joined: Wed Feb 18, 2015 3:25 pm

Re: Losing file when upgrade

when I run command

Code: Select all

msiexec /i <path_to_msi> /L*V <path_to_log>
I have follow error:
Untitled.png
Untitled.png (7.75 KiB) Viewed 3007 times
I compare by contents two dlls (old and new) and they are identical!

Update
I create log via

Code: Select all

"C:\MyPackage\Setup.exe" /L*V "example.log"
and have two records
MSI (s) (48:9C) [16:24:18:722]: Disallowing installation of component: {EEB8508A-C441-47F5-9A64-35A629271DC2} since the same component with higher versioned keyfile exists
MSI (s) (48:9C) [16:24:18:738]: Disallowing installation of component: {89F382AA-BBF7-490D-A15C-5D3CAD42D207} since the same component with higher versioned keyfile exists

I turn on overwrite option for this file.

Thanks a lot!

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

Re: Losing file when upgrade

You're welcome Anton,

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”