Set service Startup type in WiX installer

前端 未结 3 647
感情败类
感情败类 2021-01-22 22:43

I am trying to set a pre-installed service\'s startup type to Automatic, using WiX. Another task was to start the service on install, which I achieved with:

3条回答
  •  無奈伤痛
    2021-01-22 23:06

    MSI doesn't support changing the startup type of a service that the package doesn't install. ServiceConfig doesn't let you get around that:

    Applies only to installed auto-start services or services installed by this package with SERVICE_AUTO_START in the StartType field of the ServiceInstall table.

提交回复
热议问题