0

I made an exe file, and i want it to be service. When i execute it - it doesnt start and fails with timeout. I tried regular exe file, tried vs code exe (why not?) and it did fail with timeout as well. What am i doing wrong?

sc create RomaTest binpath= "\"D:\Development\VSCodeUserSetup-x64-1.32.3.exe" DisplayName= "sasd"

sc start RomaTest

It fails with

[SC] StartService: error: 1053:
RomanKosiy
  • 13
  • 5
  • Services are isolated & (by default) run under a limited account, so any exe with a GUI is a no-go as is anything that needs elevation/administrative privileges/triggers UAC ... – Alex K. Apr 01 '19 at 17:43
  • Please refer to: https://stackoverflow.com/questions/3582108/create-windows-service-from-executable – UnhandledExcepSean Apr 01 '19 at 17:46
  • Since Vista, Services can't interact with the desktop. It used to be a flag for service user accounts until then. It had far more to do with the confusion of what the "current desktop" is when multiple users are logged in at the same time. Windows XP allowed this and also had UAC. – Señor CMasMas Apr 01 '19 at 17:52
  • Thanks guys a lot for info, i supose i'll find the solution for my problem with this – RomanKosiy Apr 01 '19 at 19:16
  • Possible duplicate of [Create Windows service from executable](https://stackoverflow.com/questions/3582108/create-windows-service-from-executable) – jazzdelightsme Apr 01 '19 at 20:42
  • Services are not any old program but have to follow a bunch of rules and respond to service control messages. Normal programs should use Task Scheduler which does programs. See https://learn.microsoft.com/en-us/windows/desktop/services/services – Noodles Apr 01 '19 at 22:06

0 Answers0