Closed sheinin closed 4 years ago
I've the same Problem. I need elevated privilege to do my entry. With this component I could do this: https://www.npmjs.com/package/sudo-prompt
Like so: const options = { name: "Test" }; sudo.exec("reg add HKCU\Software\Policies\Microsoft\Windows\WindowsUpdate\AU /v NoAUShutdownOption /t REG_DWORD /d 0x00000001", options, (error:any) => { error && console.log(error); } );
Maybe it helps Someone
Found a solution with "windows-elevate".
When running build of installer app this following error results:
it works when running the app with npm or packaged app. Perhaps electron-winstaller blocks access to registry.