【发布时间】:2016-03-08 17:11:41
【问题描述】:
虽然第一次安装工作正常,但当我尝试将应用程序更新到较新版本时,安装程序会显示以下消息:
Service X could not be installed. Verify that you
have sufficient privileges to install system services.
取消更新安装时,软件被删除,如果我再次安装,该过程成功完成。
重要的是,安装和更新都需要提升权限。
有什么想法吗?
特权提升
<Package InstallerVersion="300"
Compressed="yes"
InstallScope="perMachine"
InstallPrivileges="elevated"
AdminImage="yes" />
服务配置:
<ServiceInstall Id="ServiceInstaller"
Type="ownProcess"
Name="X"
DisplayName="X"
Description="X"
Start="auto"
ErrorControl="normal" />
<ServiceControl Id="StartService"
Start="install"
Stop="both"
Remove="uninstall"
Name="X" Wait="yes" />
【问题讨论】:
标签: wix