"Set Service Login" appears even when I've set the serviceProcessInstaller to LocalSystem RRS feed

  • Question

  • I have a service which I need to install on a server but the "Set Service Login" dialog pops up even though I have set the serviceProcessInstaller Account property to LocalSystem.

    I'm trying to build the service in VS2019 with framework 4.6.1 on AnyCPU.

    Any help would be greatly appreciated.



    Wednesday, November 27, 2019 11:40 AM

All replies

  • Hi craigmac,
    You can try to set"serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem" via code.
    More details you can refer to Hakan Fıstık answer.
    Best Regards,
    Daniel Zhang

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Thursday, November 28, 2019 2:08 AM