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

Cannot use autoupdater without administrator privileges #1129

Closed
mastergberry opened this issue Jan 17, 2017 · 5 comments
Closed

Cannot use autoupdater without administrator privileges #1129

mastergberry opened this issue Jan 17, 2017 · 5 comments

Comments

@mastergberry
Copy link
Contributor

  • Version: 11.4.1
  • Target: Windows x64

Using the auto updater in our build. It is failing to install after calling autoUpdater.quitAndInstall(); though because the application is installed via "perMachine": true and as a result needs administrator privileges to update.

Is there just some way to make it so every single time the application is run it automatically starts off with UAC already? This would be the easiest thing for me to fix the problem as I will need UAC also for other things.

@develar
Copy link
Member

develar commented Jan 17, 2017

Hmm... Why Windows doesn't show UAC windows? To investigate. Installer can automatically request UAC.

@mastergberry
Copy link
Contributor Author

mastergberry commented Jan 17, 2017

Forgot to put the relevant part of the stack trace

[2017-01-17 09:55:58:0449] [error] Error: Error: spawn UNKNOWN
    at exports._errnoException (util.js:1026:11)
    at ChildProcess.spawn (internal/child_process.js:313:11)
    at exports.spawn (child_process.js:392:9)

From other issues in the repo I saw that it seems to be a UAC permission error.

@mastergberry
Copy link
Contributor Author

Confirmed when starting the application with Administrator privileges it was able to auto update properly.

@develar
Copy link
Member

develar commented Jan 25, 2017

Working on fix.

@develar develar changed the title Cannot use autoupdater without administrator privleges Cannot use autoupdater without administrator privileges Jan 25, 2017
@develar
Copy link
Member

develar commented Jan 25, 2017

Fixed in electron-updater 1.2.0. Requires electron-builder 11.6.0.

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

No branches or pull requests

2 participants