You need to specify the -fv option to light to have it generate fileVersion
records in the MsiAssemblyName table. See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/u
pdating_assemblies.asp for details.

 

In general when updating an assembly you should update the assembly version.
You can redirect older clients to the new version using Publisher Policy or
bindingRedirect in the application's configuration file.

 

Frankly I find the GAC more trouble than it's worth a lot of the time.
Unless you really need to share an assembly, it's better to keep it private
- and that means not signing it (giving it a strong name) so that
administrators can't put it in the GAC behind your back. Obviously if you've
already deployed one version and are patching, that's not possible.

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Fei Cao
Sent: 21 November 2006 21:02
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] patching GAC as a regular file patching?

 

I was trying to patch an assembly in the GAC, the new assembly as the same
assembly version but with a different file version.

The GAC assembly is installed  with WIX , like the following:

 

<Component Id='c_AdministrationAssembly'
Guid='5FFF9101-F543-4C45-9B1F-624A63D0F037'>

                <File Id='f_67EA5751_1A60_49D5_BCE5_97930D86A3E8' DiskId='1'
Name='MsUpdAdm.dll' 

                    LongName='Microsoft.UpdateServices.Administration.dll' 

 
Source='SourceDir\GAC\Microsoft.UpdateServices.Administration.dll' 

                    KeyPath='yes' Assembly='.net'
AssemblyManifest='f_67EA5751_1A60_49D5_BCE5_97930D86A3E8'/>

            </Component>

            

 

After patch is applied, I found from %windir%\assembly that the assembly
still has the old file version, so it is not patched successfully.

But other non-GAC files are patched successfully. I am not sure what I miss
here to do this in place GAC patching.

 

Thanks,
Fei

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to