-
-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service install silently fails on Windows 11 #338
Comments
After a bit more debugging, turns out #268 does work in Windows 11 however not in Windows 11's Windows Sandbox. When installing the service in Windows Sandbox, I noticed this error in my
I confirmed by updating |
It does look like upgrading winsw will fix this. The new winsw.exe is 17MB though (instead of 58kb), so the project increases its footprint for each service significantly. People using this on mobile Windows devices may be impacted by such a change. So, if this were included, it would have to be a major change (potentially breaking for some). I don't have any metrics to know how many people are using this in a sandbox, so it's hard to tell whether this change benefits the project or opens a can of worms... especially considering #317. |
After a bit more testing, looks like we don't necessarily need I appreciate your plans for an entirely different solution but I think maybe bumping WinSW is a good interim solution otherwise this library's primary purpose silently fails. |
This is silently failing for me in Windows 10. How can I upgrade this? Perhaps this is a new/different issue? |
Issue:
When using
svc.install();
the service fails to install in Windows 11 without any warning or error.How To Reproduce:
npm install node-windows
Expected Behavior:
Service is installed.
Or, error is emitted.
Actual Behavior:
Service is not installed.
Even adding an error event handler, there is no error emitted.
Desktop:
Windows 11 22H2
Additional context:
I believe the issue is related to the very old version of
winsw.exe
bundled with the project. https://github.com/coreybutler/node-windows/tree/master/bin/winswIf I try to run
winsw.exe
directly (but providing it a sample.xml
to install a service), it fails. However if I use a newer version ofwinsw.exe
from https://github.com/winsw/winsw/releases/tag/v2.12.0 then the service is installed correctly.I believe this PR attempting to upgrade WinSW #268
might address this issue(EDIT: Nope, unfortunately that version of WinSW doesn't work either. I tested 2.12.0 directly and works https://github.com/winsw/winsw/releases/tag/v2.12.0.The text was updated successfully, but these errors were encountered: