Nsis 写作者
我正在尝试使用NSIS覆盖Application.config文件中的现有值 我想更改“端点地址=”http://DefaultWebService.asmx“' 到“端点地址=”http://MyWebService.asmx“' 我的配置文件如下所示:Nsis 写作者,nsis,Nsis,我正在尝试使用NSIS覆盖Application.config文件中的现有值 我想更改“端点地址=”http://DefaultWebService.asmx“' 到“端点地址=”http://MyWebService.asmx“' 我的配置文件如下所示: <?xml version="1.0" encoding="utf-8"?> <configuration> <system.serviceModel> <client> <endpo
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<client>
<endpoint address="http://DefaultWebService.asmx"
binding="customBinding" bindingConfiguration="MyServiceSoap12"
contract="WebServiceProxies.MyServiceSoap" name="MyServiceSoap12" />
</client>
</system.serviceModel>
</configuration>
但这只会增加
[system.serviceModel]
endpoint address=http://MyWebService.asmx
到.config文件的底部
我哪里做错了
谢谢问题是您使用的WriteIniStr更新了.ini文件,application.config是一个XML文件。您需要改用插件之类的东西
[system.serviceModel]
endpoint address=http://MyWebService.asmx