Any pointers on the syntax i should one use to enable deployment of a gac dll
required dll.config file, e.g. gac dll's that make use of the setting
designer/api runtime settings?
I tried the following two options and the first doesn't work because it seems
the file copy to the gac of the dll.config gets cleared when
MsiPublishAssemblies processing of the Assembly=".net" dll file setting is
processed. I tried adding the custom action sequenced to happen after
MsiPublishAssemblies and even though the verbose logs show it successfully
copying the dll.config to the right path it is not there after setup competes.
Not sure what process is deleting that file copy. I can copy the custom
action statement out of the verbose log and run it after setup completes and it
does what I'd expect. Any thoughts on why that's happening and more
importantly how I can get this dll.config file deployed along side its parent
gac deployed dll as part of my wix sources would be very much appreciated.
<Component Id="Sdk1Gac14" Guid="A6D64010-D181-40BF-9ABC-BA15633E1F45">
<File Id="Sdk1GacDataEntities.Providers.dll"
Name="MyGacDestinedAssembly.dll"
Source="$(var.MyGacDestinedAssembly.TargetPath)"
Assembly=".net" KeyPath="yes" />
</Component>
</DirectoryRef>
<DirectoryRef Id="GacMsilDir">
<Directory Id="Sdk1Gac14Dir" Name="MyGacDestinedAssembly">
<Directory Id="Sdk1Gac14VersionTokenDir"
Name="2.0.0.0__31bf3856ad364e35">
<Component Id="Sdk1Gac14DllCfg" Guid="*">
<File Id="MyGacDestinedAssembly.dll.config"
Name="MyGacDestinedAssembly.dll.config"
Source="$(var.MyGacDestinedAssembly.TargetPath).config" KeyPath="yes" />
</Component>
</Directory>
</Directory>
</DirectoryRef>
<CustomAction Id="SetSdk1Gac14DllCfg" Property="RunSdk1Gac14DllCfg"
Value=""[WindowsFolder]system32\cmd.exe" /c copy
"[#Site1Vdir3BinMyGacDestinedAssembly.dll.config]"
"[Sdk1Gac14VersionTokenDir]"" />
<CustomAction Id="RunSdk1Gac14DllCfg" BinaryKey="WixCA" DllEntry="CAQuietExec"
Execute="deferred" Return="ignore" />
<Custom Action="SetSdk1Gac14DllCfg" After="MsiPublishAssemblies">!Sdk1=2 And
&Sdk1=3 And ?Sdk1Gac14=2 And $Sdk1Gac14=3</Custom>
<Custom Action="RunSdk1Gac14DllCfg" After="SetSdk1Gac14DllCfg">!Sdk1=2 And
&Sdk1=3 And ?Sdk1Gac14=2 And $Sdk1Gac14=3</Custom>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users