coreybutler / node-windows

Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Other
2.79k stars 358 forks source link

Network service dose not start in Program Files #201

Closed reactionic127 closed 6 years ago

reactionic127 commented 6 years ago

I implement a network service. If I put the project in C:/ or D:/ the service works well. But if I put the project in C:/program files or C:/windows, the service couldn't start. Please help me.

coreybutler commented 6 years ago

C:\Program Files and C:\windows are protected directories. Windows requires the service to use an account with administrative privileges. My guess is the account running the service doesn't have proper permissions, which is why it works on other directories and not the two you mentioned.