简体   繁体   English

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

[英]Wix installer missing out Quote in Registry

I have created a wix installer to install a windows service. 我创建了一个wix安装程序来安装Windows服务。 It installs the service but as i start it i get an error, i tracked down the error and it is due to missing a " in the HKLM\\System\\CurrentControlSet\\services\\TestInstance ImagePath registry value. It was missing the " at the the beginning of 它安装服务,但正如我开始它我得到一个错误,我就找到了错误,这是由于缺少在HKLM \\系统\\ CurrentControlSet \\服务\\ TestInstance ImagePath的注册表值。它缺少在对的开始

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

That " at the beginning wasnt there and i added it and the service runs fine now. 那个一开始没有在那里,我添加了它,服务现在运行良好。

My question is how can i get Wix to install it with the correct ImagePath? 我的问题是如何让Wix使用正确的ImagePath安装它?

When installing the registry value, make sure use &quot ; 安装注册表值时,请确保使用" for every quote you need to use. 您需要使用的每个报价。

Example: 例:

<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 http://wixtoolset.org/documentation/manual/v3/xsd/wix/registryvalue.html

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

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