-
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
Access denied in Windows Electron #64
Comments
Hey what happened? Did you find a solution? |
No, I moved away from the library and generate a random id that I save in the user directory. |
I ended up doing something similar. Thanks for the reply. |
We received the same error for one of our clients. They have laptops with policies that don't allow editing registry values:
So, we ended up with something like: import { v4 as uuidv4 } from 'uuid';
import { machineId } from 'node-machine-id';
let machineUniqueId: string;
try {
machineUniqueId = await machineId(true);
} catch (error) {
machineUniqueId = uuidv4();
}
// save id later |
hii, I have created custom package which doesn't require admin privileges on windows, https://www.npmjs.com/package/node-machine-uid. |
I use node-machine-id in an Electron app that is packages with ASAR.
I see users who can't get the machine ID in their app. My error log includes this message:
I thought that the library doesn't use elevated rights. Is this specific to Electron? How can I work around this?
The text was updated successfully, but these errors were encountered: