我正在尝试为我的Windows服务创建一个WiX MSI安装程序,该安装程序将安装服务,但不会启动它。我似乎无法找到解释如何做到这一点的地方,或者如果可能的话。WiX MSI安装Windows服务而不启动它
我试图删除我用于启动服务的ServiceControl以及在没有任何运气的情况下切换ServiceInstall上的Start属性。它必须可以做到这一点,对吧?我只想让MSI文件安装该服务,并让用户在需要时启动它。
<Component Id="ServiceInstaller" Guid="9e578e3d-0339-425c-8633-f54ffaaa4921">
<ServiceInstall Id="ReportingServiceInstaller"
Type="ownProcess"
Vital="yes"
Name="WindowsService.exe"
DisplayName="WindowsService"
Description="Wickedly awesome and amazing service."
ErrorControl="ignore"
Account="NT AUTHORITY\LocalService"
Start="auto"
Interactive="no" />
<ServiceControl Id="ServiceControl_Stop"
Name="WindowsService.exe"
Stop="both"
Remove="uninstall"
Wait="no" />
</Component>
如何启动属性?似乎“需求”比“开始”更有前途的价值。 http://wixtoolset.org/documentation/manual/v3/xsd/wix/serviceinstall.html –
试图改变它,不显示在services.msc – devfunkd