Skip to content
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

Accessing the Windows registry and reading/writing files #1530

Closed
alexcroox opened this issue Apr 29, 2015 · 4 comments
Closed

Accessing the Windows registry and reading/writing files #1530

alexcroox opened this issue Apr 29, 2015 · 4 comments

Comments

@alexcroox
Copy link

Is it possible to access the Windows registry? I want to download some files via FTP to a STEAM game folder, but I'd rather not ask the user manually where STEAM is installed when I can work it out from the registry entry.

Also I can't find any documentation about reading and writing files to the filesystem like there is with nw.js. Has this been implemented?

@circuitbomb
Copy link

You might be able to use the shell module to run a shell-script that pipes what your looking for to the clipboard, retrieves it using the clipboard module, and then clears the clipboard when its done(or gets whats already there and rewrites it when its finished). Not sure about r/w files though.

@alexcroox alexcroox changed the title Accessing the Windows registry Accessing the Windows registry and reading/writing files Apr 30, 2015
@justinmchase
Copy link

Take a look at the windows package in npm:
https://www.npmjs.com/package/windows

It has some registry apis. They only work on windows of course.

@anaisbetts
Copy link
Contributor

You should just use node.js modules to do this (winreg is a good one), you don't need to do anything special in Electron for this

@digitalextremist
Copy link

Came looking for the same thing... followed @justinmchase link; found updated ffi version:

node-windows https://www.npmjs.com/package/node-windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants