dor_ramati
Posts: 3
Joined: Wed Mar 13, 2013 10:50 am

Files deleted from GAC after upgrade on Win XP

Hi
We have built an MSI that should upgrade/install previous installation build by MS Visuall studio MSI.
New installtion works fine in all environments
Upgrade works fine on Win 7.
The problem id upgrade on XP machine:
After upgrading all DLLs (asseblies ) with the same version (version has not being changed from previos installtion - mainly 3rd party dlls) are deleted from GAC. new version Dlls are
copied fine to the GAC.
Everything works fine in the program files directory.
After that upgrade the "repair" action fix the problem.
If we uninstall previous version first everything also works fine.

The verbose log attached. Please follow "log4net.dll" assembly as example for assembly that havn't changed its version and do not exist in gac after install.
Note: latest WIndows installer is installed on the machine.

Thanks
Dror
Attachments
verbose.log.zip
(190.15 KiB) Downloaded 305 times
dor_ramati
Posts: 3
Joined: Wed Mar 13, 2013 10:50 am

Re: Files deleted from GAC after upgrade on Win XP

Hello support people.
This is an urgent issue.
What need to be done to get support on it?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Files deleted from GAC after upgrade on Win XP

Hello Dor,

This behavior may be caused due to a well known Windows Installer bug. Can you please increase the version attribute of the related assemblies and see if the behavior still persist? In order to achieve this you can proceed like this:
- Go to "Assemblies" page and select the related assemblies.
- In the "Attributes" section, from "Assembly Properties" right pane, add a version attribute (using [Add] button) like this:
  • Name: Version
    Value: increased version
- Build and run your project.

As another solution you can enable the "Install new version first and then uninstall old version" option from "Upgrade" page. Also, you can take a look on our "DLL file disappears during an upgrade" thread which debates a similar issue.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”