Got this to work switching XmlFile entry for install pass to following
XmlConfig entry.
<util:XmlConfig Id="AddBehaviorExtensionsEnableBizTalkHeaderInspector"
File="[NetFramework20ConfigDir]machine.config"
ElementPath="/configuration/system.serviceModel/extensions/behaviorExtensions"
Action="create" Node="document" On="install"><![CDATA[
<!-- this line was added by rxp eventing v2.0 service deliverable installer
-->
<add name="enableBizTalkHeaderInspector"
type="Microsoft.IT.RelationshipManagement.Services.WcfExtensions.HeaderInspectorBehaviorElement,
Microsoft.IT.RelationshipManagement.Services.WcfExtensions, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
]]></util:XmlConfig>
-----Original Message-----
From: Robert O'Brien [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2008 11:39 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] any tips on why the following xmlfile machine.config
install changes are not working
Any tips on why the following xmlfile machine.config install changes are not
working?
I'm using the following component entries:
<util:XmlFile Id="AddBehaviorExtensionsEnableBizTalkHeaderInspector"
File="[NetFramework20ConfigDir]machine.config"
ElementPath="/configuration/system.serviceModel/extensions/behaviorExtensions"
Name="add" Value="name="enableBizTalkHeaderInspector"
type="Microsoft.IT.RelationshipManagement.Services.WcfExtensions.HeaderInspectorBehaviorElement,
Microsoft.IT.RelationshipManagement.Services.WcfExtensions, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=e2c282dc0883bc94""
Action="createElement" />
<util:XmlConfig Id="RemoveBehaviorExtensionsEnableBizTalkHeaderInspector"
File="[NetFramework20ConfigDir]machine.config"
ElementPath="/configuration/system.serviceModel/extensions/behaviorExtensions"
VerifyPath="/configuration/system.serviceModel/extensions/behaviorExtensions/[EMAIL
PROTECTED]"enableBizTalkHeaderInspector" &&
@type="Microsoft.IT.RelationshipManagement.Services.WcfExtensions.HeaderInspectorBehaviorElement,
Microsoft.IT.RelationshipManagement.Services.WcfExtensions, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=e2c282dc0883bc94"[\]]"
Action="delete" Node="element" On="uninstall" />
To try and get this new <add /> element created during install but finding that
no machine.config changes exist after setup completes.
<configuration>
<system.serviceModel>
<extensions>
<behaviorExtensions>
.
. .
. . .
<add name="enableBizTalkHeaderInspector"
type="Microsoft.IT.RelationshipManagement.Services.WcfExtensions.HeaderInspectorBehaviorElement,
Microsoft.IT.RelationshipManagement.Services.WcfExtensions, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=e2c282dc0883bc94" />
</behaviorExtensions>
The verbose logs show the following ExecXmlFile property setting and execution
of a similarly named custom action
Property(S): ExecXmlFile =
2EUR0EURC:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.configEUR5EUR0EUR/configuration/system.serviceModel/extensions/behaviorExtensionsEURaddEURname="enableBizTalkHeaderInspector"
type="Microsoft.IT.RelationshipManagement.Services.WcfExtensions.HeaderInspectorBehaviorElement,
Microsoft.IT.RelationshipManagement.Services.WcfExtensions, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=e2c282dc0883bc94"
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users