-
Notifications
You must be signed in to change notification settings - Fork 62
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
Command failed: Registry editing has been disabled by your administrator. #56
Comments
Hello, is there an update on this? I thought that this library does not need elevated rights for the Machine IDs (GUID) but found out that this library silently needs elevated access to And from the features page:
But from my tests it needs elevated access so it is a bit misleading here, potential usecase of this failing is getting the Machine IDs of work computers. Is there a workaround for this? |
@pateljoel I have submitted a PR to fix this issue (though it might be a bit big). |
@Nokel81, I am in the process of testing your patch on Windows, but heads up that your work breaks builds on macOS. Here's what I'm seeing:
and... if I try to satisfy that dependency:
|
Ah I am sorry about that, maybe a dynamic import for only windows would be better? |
@Nokel81, I had a windows user test my app's build with your PR and it worked. So that's good news! I'm not in a good position to modify this codebase, but if you want to take a stab at a solution (dynamic import) I'm happy to test it across macOS and Windows. |
Will do |
@semireg done |
@Nokel81, did you see the latest comment over at native-reg? He's modified the gypfile to minimize complexity with bundling/packaging. simonbuchan/native-reg#23 (comment)
|
I am having lots of errors on Windows (App not loading properly) and after some digging, the error happens to be from this library that relies on running regedit in the background.
If I run this code:
I get the following error on Windows:
The error hints that this user does not have admin privileges to run regedit, thus is unable to obtain the unique machine ID. Is there a way of resolving this issue?
Also, thank you for building this library!
The text was updated successfully, but these errors were encountered: