jfromaniello / winser

Run a node.js application as a window service using nssm.
270 stars 47 forks source link

Adds secondary NET call for when SESSION is unavailable #42

Closed thejones closed 8 years ago

thejones commented 8 years ago

I am open to suggestions on this, maybe another call in the series? I am not sure how that would look as I am not familiar with the async library.

The problem: In certain environments NET SESSION is unavailable. However, NET USER is available and the user does have permissions to install services.

The solution: Call one more NET command and then throw the error.

I do not think it is worth calling every NET command but the call to NET SESSION does not completely dictate that installation will succeed or fail.

Thoughts?