Credentials when Installing Windows Service

前端 未结 4 1254
野性不改
野性不改 2021-02-01 00:34

I am attempting to install a C# windows service project using a VisualStudio.Net deployment project.

To run the deployment project I right-click and select \"install\"

4条回答
  •  时光说笑
    2021-02-01 01:04

    Check this Link: http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx

    Pay attention to this section: To create the installers for your service

    Make changes to your ServiceProcessInstaller:

    In the designer, click ServiceProcessInstaller1 for a Visual Basic project, or serviceProcessInstaller1 for a Visual C# project. Set the Account property to LocalSystem. This will cause the service to be installed and to run on a local service account.

提交回复
热议问题