You must keep the assembly version the same, but change the file version. See 
http://blogs.msdn.com/heaths/archive/2005/06/10/427803.aspx.

Heath Stewart
Technical Lead
Deployment Technologies Group, Microsoft
http://blogs.msdn.com/heaths

From: Fei Cao
Sent: Wednesday, April 11, 2007 12:31 PM
To: 'wix-users@lists.sourceforge.net'; Windows Installer Support (MS Internal)
Subject: how to alwyas overwrite GAC assembly in fresh setup

It looks like if we want to specify an install for GAC assembly dll, we have to 
use Assembly='.net' in the <File> element, which will require KeyPath has to be 
set as "yes" (otherwise we'll have a build error when running candle.exe). Then 
this way, if GAC assembly has been left behind, then another fresh install wont 
overwrite that dll. How can we ensure the GAC assembly can always be 
overwritten?

Below is just an example.

Thanks,
Fei

<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>


-------------------------------------------------------------------------
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