It looks like you file attribute is wrong, it is set to WebConfigFilePath but this seems to be set to #f_6da07eb4 - is that a File/@Id, if so then that should be in the XmlConfig/@File attribute.
Neil
Neil Sleightholm
X2 Systems Limited
neil@... <mailto:
neil@...>
________________________________
From:
wix-users-bounces@... on behalf of Zhisheng Huang
Sent: Mon 21/07/2008 21:02
To:
wix-users@...
Subject: [WiX-users] configure web.config with XmlConfig
Hi,
I am using WIX doing web service setup. During the setup, it needs to update the web.config file with correct value. The web.config file is installed in the same msi.
Here is what I am doing.
<Property Id='XPath_serviceCredentials' Value='//configuration/system.serviceModel/behaviors/serviceBehaviors/behavior[\[]@name="ApiServiceBehaviors"[\]]/serviceCredentials' />
<Property Id ='WebConfigFilePath' Value='[#f_6da07eb4]' />
<Component Id='c_UpdateWeb.Config' Guid='{MY_GUID}' Directory='d_API'>
<CreateFolder />
<util:XmlConfig Id='SetServiceCertificate'
ElementPath='[XPath_serviceCredentials]/serviceCertificate'
File='[WebConfigFilePath]'
Name='findValue'
On='install'
Value='[SERVICE_CERTIFICATE_SUBJECT_NAME]'/>
<util:XmlConfig Id ='AdminTokenServiceCertificate'
ElementPath='[XPath_serviceCredentials]/issuedTokenAuthentication/knownCertificates/add'
File='[WebConfigFilePath]'
Name='findValue'
On='install'
Value='[ADMIN_TOKEN_SERVICE_CERTIFICATE]'/>
</Component>
However, after running MSI, the attribute values are not updated - looks like do nothing. The msi verbose log does says "Action ended 11:39:45: SchedXmlConfig. Return value 1." There is no more information. What am I missing or doing wrong?
Thanks for help!
Zhisheng
-------------------------------------------------------------------------
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@...
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@...
https://lists.sourceforge.net/lists/listinfo/wix-users