繁体   English   中英

Wix安装程序缺少注册表中的报价

[英]Wix installer missing out Quote in Registry

我创建了一个wix安装程序来安装Windows服务。 它安装服务,但正如我开始它我得到一个错误,我就找到了错误,这是由于缺少在HKLM \\系统\\ CurrentControlSet \\服务\\ TestInstance ImagePath的注册表值。它缺少在对的开始

"C:\Program files\MyCorp\MyApp\Server.exe" TestInstance --service"

那个一开始没有在那里,我添加了它,服务现在运行良好。

我的问题是如何让Wix使用正确的ImagePath安装它?

安装注册表值时,请确保使用" 您需要使用的每个报价。

例:

<RegistryKey Root="HKLM" 
Key="System\CurrentControlSet\services\TestInstance" 
Action="createAndRemoveOnUninstall">

    <RegistryValue Type="string" 
    Name="ImagePath" KeyPath="yes"
    Value="&quot;&quot;C:\Program files\MyCorp\MyApp\Server.exe&quot; TestInstance --service&quot;" />

</RegistryKey>

http://wixtoolset.org/documentation/manual/v3/xsd/wix/registryvalue.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM