(C# Window Service) Verify that you have sufficient privileges to start system services

时间:2023-03-08 15:47:17
(C# Window Service) Verify that you have sufficient privileges to start system services

写了个Windows Service, 用Wix 写了个Installer,编译通过,生成了msi 安装文件,但是安装的时候总是提示:

Product: KingPro Service -- Error . Service 'xxx Service' (KingProService) failed to start.  Verify that you have sufficient privileges to start system services.

参考如下,进行debug来获取详细的内容。

http://wixtoolset.org/documentation/manual/v3/howtos/general/get_a_log.html

msiexec /i MyApplication.msi /l*v MyLogFile.txt