Switched to util:XmlConfig and inserted a document fragment which did the 
trick.   I included an xml comment, as shown in excerpt below, in document 
fragment xml but util:XmlConfig stripped the xml comment.   Is there a way to 
keep util:XmlConfig from stripping xml code comment sout of the document 
fragment?

<util:XmlConfig Id="Service1IServiceGatewayEndpointIdentity" 
File="[#NsService.exe.config]"
        ElementPath="/configuration/system.serviceModel/client/[EMAIL 
PROTECTED]&quot;ServiceGatewayEndpoint&quot;[\]]"
      Action="create" Node="document" On="install"><![CDATA[
      <!-- Added for bug #343521.  MSSolve endpoints require identity settings 
for systems with .net framework 3.5 sp1 installed.  -->
      <identity>[SERVICEGATEWAYIDENTITY]</identity>]]>
</util:XmlConfig>
<util:XmlConfig Id="Service1IServiceGatewayEndpointIdentityUninstall" 
File="[#NsService.exe.config]"
      ElementPath="/configuration/system.serviceModel/client/[EMAIL 
PROTECTED]&quot;ServiceGatewayEndpoint&quot;[\]]"
      
VerifyPath="/configuration/system.serviceModel/client/endpoint/identity[\[]../@bindingConfiguration=&quot;ServiceGatewayEndpoint&quot;[\]]"
 Action="delete" Node="element" On="uninstall" />

-----Original Message-----
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2008 4:22 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] how does one get XmlFile to insert literal 
translations of &lt; and &gt; entity settings when setting values?

You need to create a new element.  Or you can switch to XmlConfig and insert a 
document fragment.

-----Original Message-----
From: Robert O'Brien [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2008 13:14
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] how does one get XmlFile to insert literal translations of 
&lt; and &gt; entity settings when setting values?

Background:
---------------------------------------------------------------------
I have a wix souce file with the following XmlFile entry

<util:XmlFile Id="Service1IServiceGatewayEndpointIdentity" 
File="[#NsService.exe.config]"
    
ElementPath="/configuration/system.serviceModel/client/endpoint/identity[\[]../@bindingConfiguration=&quot;ServiceGatewayEndpoint&quot;[\]]"
    Value="[SERVICEGATEWAYIDENTITY]" Action="setValue" />

When I run my msi using "msiexec /I myServiceDeliverable.msi 
SERVICEGATEWAYIDENTITY="&lt;servicePrincipalName value='host/localhost' /&gt;" 
/l*v myServiceDeliverable.log" end up with the following xml config file 
settings.

<client>
    <endpoint binding="wsHttpBinding" 
bindingConfiguration="ServiceGatewayEndpoint" 
contract="ServiceReference1.IServiceGateway" name="ServiceGatewayEndpoint" 
behaviorConfiguration="ImpersonationBehavior" 
address="https://localhost/ServiceGateway/ServiceGateway.svc";>
        <identity>&lt;servicePrincipalName value='host/localhost' 
/&gt;</identity>
    </endpoint>
    <endpoint binding="wsHttpBinding" 
bindingConfiguration="ServiceGateway2Endpoint" 
contract="ServiceReference2.IServiceGateway2" name="ServiceGateway2Endpoint" 
behaviorConfiguration="ImpersonationBehavior" 
address="https://localhost/ServiceGateway2/ServiceGateway2.svc";>
        <identity></identity>
    </endpoint>
</client>

Question
---------------------------------------------------------------------
How does one get XmlFile to insert literal translations of &lt; and &gt; entity 
settings when setting values?

-------------------------------------------------------------------------
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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to