coreybutler / node-windows

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

A naive question, why doesn't `opn` work in node-windows but from command line? #187

Closed foresightyj closed 4 years ago

foresightyj commented 6 years ago

From my observation, it is not just opn but anything that involves user interactions. These commands will not have any effect when called from a service installed via node-windows but works perfectly fine when run in command line.

I tried the following so far:

  1. In services, right click the installed service and choose property. Click on Logon tab and ensure Local System account is ticked and then tick Allow service to interact with desktop. Doesn't work.
  2. In the same tab as above, switch to administrator account. Still doesn't work.

Does windows impose restrictions for services which I am not aware of?

coreybutler commented 4 years ago

Closing due to age.