Credentials when Installing Windows Service

前端 未结 4 1249
野性不改
野性不改 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:03

    1. Open your ProjectInstaller
    2. Right click the ServiceProcessInstaller and choose properties
    3. From the Account drop-down, under Misc, select the account you want your service to run as

    For details of the different accounts and their privileges see the following link:

    http://msdn.microsoft.com/en-us/library/system.serviceprocess.serviceaccount.aspx

提交回复
热议问题