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]"ServiceGatewayEndpoint"[\]]"
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]"ServiceGatewayEndpoint"[\]]"
VerifyPath="/configuration/system.serviceModel/client/endpoint/identity[\[]../@bindingConfiguration="ServiceGatewayEndpoint"[\]]"
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 < and > 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
< and > 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="ServiceGatewayEndpoint"[\]]"
Value="[SERVICEGATEWAYIDENTITY]" Action="setValue" />
When I run my msi using "msiexec /I myServiceDeliverable.msi
SERVICEGATEWAYIDENTITY="<servicePrincipalName value='host/localhost' />"
/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><servicePrincipalName value='host/localhost'
/></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 < and > 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
[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
-------------------------------------------------------------------------
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