Giter VIP home page Giter VIP logo

Comments (9)

coreybutler avatar coreybutler commented on September 26, 2024 1

@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.

ryan-veracitek avatar ryan-veracitek commented on September 26, 2024

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.

ryan-veracitek avatar ryan-veracitek commented on September 26, 2024

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.

coreybutler avatar coreybutler commented on September 26, 2024

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.

ryan-veracitek avatar ryan-veracitek commented on September 26, 2024

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.

ryan-veracitek avatar ryan-veracitek commented on September 26, 2024

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.

ryan-veracitek avatar ryan-veracitek commented on September 26, 2024

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.

ryan-veracitek avatar ryan-veracitek commented on September 26, 2024

@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.

ryan-veracitek avatar ryan-veracitek commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.