[wix-users] installing DLL in GAC
Habib Salim
habib at hsalim.com
Fri Feb 8 09:09:18 PST 2019
Hi,
I ran into an issue recently where an older version of Nlog in the GAC
conflicted with the version I needed.
See
https://stackoverflow.com/questions/54548591/nlog-system-methodaccessexcep
tion-only-in-vmware-horizon-view-client
I am trying to install the new version in the GAC and keep a copy in the
install folder - see below
However, the installer does not install to the GAC - could that be because
the version in the GAC and my DLL have the same product Version and
PublicKeyToken?
Can I force the install?
------
<Directory Id ="GAC" SourceName="Global Assembly Cache Folder" >
</Directory>
<ComponentGroup Id="NlogToGac" Directory="GAC">
<Component Id="cmp_GAC_NLog.dll" Guid="<someguid>" >
<File Id="fil_GAC_NLog.dll" Assembly=".net" KeyPath="yes"
Source="$(var.SourceFilesDir)\NLog.dll" />
</Component>
</ComponentGroup>
<ComponentGroup Id="ThirdPartyLibs" Directory="INSTALLFOLDER">
<Component Id="cmpNLog.dll" Guid="*" >
<File Id="filNLog.dll" KeyPath="yes"
Source="$(var.SourceFilesDir)\NLog.dll" />
</Component>
<!-- more components -->
</ComponentGroup>
<Feature Id="ProductFeature" Title="MyProduct" Description="Installs
MyProduct and related components" Level="1">
<ComponentGroupRef Id="ThirdPartyLibs" />
<ComponentGroupRef Id="NlogToGac"/>
<ComponentGroupRef Id="MyDlls" />
</Feature>
------
Regards
Habib
More information about the wix-users
mailing list