That needs the FileVersion Name-Value pair to be in the MsiAssemblyName data, and to state the obvious the file version must be higher than the existing version in the GAC.

Phil Wilson


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Tse
Sent: Friday, September 22, 2006 12:10 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] how to enforce assembly to be gac'd even when there isalready a copy in the gac

Hi,

 

I am using the File element to put assembly in GAC and using Netfx extension to put the assembly in GAC .  A scenario is that an older version of assembly might already be in GAC (done manually by user).  Right now when it is the case, the setup does not put the assembly within the setup into GAC.  On the other hand, setup does not report any errors.

 

<File Id='DLLInGACAndNgen' Name='MyAssembly.dll' DiskId='1'

      Source='MyAssembly.dll' Vital='yes' Assembly='.net' KeyPath='yes'>

  <netfx:NativeImage Id="Ngen" Priority="0"/>

</File>

 

I would like to make my setup to be robust and want it to install the assembly into the GAC to override the old version, is there any way to enforce the File element to always GAC the assembly even if it is already in GAC?

 

Thanks,

Frank

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