【发布时间】:2014-04-16 03:11:55
【问题描述】:
我正在为 Windows 服务创建 wix 安装程序。 但是我的 Windows 服务没有安装在我通过的服务帐户下,而是始终安装在本地系统帐户下。请帮忙。
<Component Id="MySImporterService" Guid="{3EA5076C-C3FA-4A5F-95A5-365C6919DEB4}" KeyPath="yes">
<ServiceInstall Id="MyInstall"
Type="ownProcess"
Name="MyService"
DisplayName="MyService"
Start="auto"
Account="[SERVICE.USERNAME]"
Password="[SERVICE.PASSWORD]"
ErrorControl="normal" />
<ServiceControl Id="MyControl"
Stop="both"
Remove="uninstall"
Name="MyService"
Wait="no"/>
</Component>
【问题讨论】:
-
您是否确保
[TA.SERVICE.USERNAME]在发生这种情况时已被填写?
标签: wix