Comments (9)
@ryan-veracitek I'm glad you got things squared away. I guarantee you're not the only person who runs into these kinds of issues. This log provides a good checklist for the next person who runs into issues. Thank you for posting your results!
from node-windows.
The only entries in the registry for this service are the event viewer custom source entries, no actual services. I suppose something could be removing it or blocking it somehow but I can't find any errors or hints as to what. I'll need to test other solutions, I am grateful for this tool and imagine this scenario may be an outlier. Using Node 18.7.0. I did try all of the linking advice mentioned as well as taking spaces out of the service name, but there's no sign that this is working in my case. If there's somewhere besides windows event viewer I can look I'm happy to help debug if it seems worth investigating to you.
from node-windows.
Update: tried on a different (win 11) system and it worked as expected with multiple prompts to update system, so the system I'm having issues with in an administrator command prompt is 1, not prompting to change the system at all, 2, not allowing the service to be installed.
from node-windows.
Do you have antivirus running?
This happened to me when creating the latest release, but it was on Windows 11. The culprit was Windows Security Protected Directories... which is a feature of many antivirus services. Disabling the service, followed by a reinstallation, worked.
If this is in an corporate environment, sometimes group policies applied via Active Directory can deny permission to create services, even for admin accounts.
from node-windows.
Yep, it's in a corporate environment, that is probably what is happening. I'll update here when I find the culprit, it seems like the script itself thinks it succeeded and also continues to think the service exists even though I see no sign of it even in the registry. So I'm confused why it thinks it's installed at all.
from node-windows.
Ah! I see, it's the existence of the daemon folder that makes it think it already exists. Still haven't gotten it to work on the prod box yet, is there a way to redirect console output to a log file with this?
from node-windows.
answering my own questions, ok, I see the log files in the daemon folder include the stdio, that'll work, thx. now to find what's blocking install on prod.
from node-windows.
@coreybutler on the affected machine the daemon folder is not being created in the right place. it's being created at the root of the C drive. On the windows 11 machine that worked properly it was created with the script as expected. Any ideas there?
from node-windows.
Ok, last but not least. At some point I removed the backslashes in the file path which did not result in any error including svc.on('invalidinstallation ... that seems to be what caused the daemon folder and exe files to be moved to the root of C and ultimately the install to fail. hope my comedy of errors will help someone else. thank you @coreybutler. It's working as expected now including console output in the daemon folder.
from node-windows.
Related Issues (20)
- 03/30/2023: Please release a non-beta version HOT 2
- node-windows with babel and pkg HOT 1
- Question: Is it possible to split .exe creation and service creation HOT 1
- Comments in the XML file break the service executable
- Unsupported node: v19.0.0 HOT 1
- Event Logging other than event id 1000 HOT 7
- File path HOT 2
- 2023-07-13: React functionality HOT 1
- I need the source code for the binary files under "/bin" HOT 2
- Error while creating daemon folder: daemon already exists HOT 1
- [20231213]: Windows DNS integration HOT 2
- Noticed Typo in the documentation
- logpath property is not working HOT 2
- is it possible to have exe name different than the service name ?
- Why do we need to install it globally?
- March 6 2024 - Does this work with run-p
- Unable to execute child process HOT 1
- Each service is creating 2 seperate node processes HOT 4
- CPU overload due to wrapper launching new Node processes when an unhandled error occurs HOT 8
- 07/16/2024: Usage with typescript project HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-windows.