我試圖在Wix中使用下面的代碼。如何使用WiX安裝和啓動Windows服務
但是在安裝時,安裝程序在狀態上凍結了3分鐘:啓動服務,然後收到此消息「服務作業服務無法啓動,請確認您有足夠的權限啓動系統服務」。 我的密碼有問題嗎?我可以讓用戶在安裝過程中輸入windows系統的用戶名和密碼來獲得「權限」嗎?
非常感謝!
<File Id='JobServiceEXE' Name='JobService.exe' DiskId='1'
Source='JobService.exe' Vital='yes' KeyPath='yes'/>
<ServiceInstall Id="ServiceInstaller" Type="ownProcess" Vital="yes"
Name="JobService" DisplayName="123 Co. JobService"
Description="Monitoring and management Jobs" Start="auto"
Account="LocalSystem" ErrorControl="ignore" Interactive="no" />
<ServiceControl Id="StartService" Stop="both" Remove="uninstall"
Name="JobService" Wait="yes" />
</Component>
我刪除了「Wait =」yes「」,現在安裝正常,但在Windows任務管理器中服務「JobService」的狀態爲「停止」,它如何自動啓動?謝謝。 – Ray
ServiceInstall元素中的Start =「auto」 –