electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

Unable to install Update inside non-admin user's machine at time of run update.exe(application) using electron-updater

Open Himesh512 opened this issue 2 years ago • 2 comments

Below is our electron configuration to generate installer for windows.

  • Electron-builder:- 22.14.13:
  • Node:- 14.17.1:
  • Electron:- 13.1.7:

  • Electron Updater:- 4.6.5

  • nsis:

Hello, We are facing issue inside non-admin user's machine at time of run update.exe using electron-updater it gives following error and does not execute:

Cannot run installer: error code: EACCES, error message: "spawn C:\Users<>\AppData\Local<>-updater\pending\update.exe EACCES", will be executed again using elevate if EACCES"

When we try to run app as "Run as Administrator" inside non-admin user's machine then it will work even though above error still occur.

Any once facing the same ? Can anyone help in this issue?

We are using and electron-updater (4.6.5) and following is our config for windows and configure auto update with GitHub release mechanism.

"win": { "publish": [ { "provider": "github", "owner": "Org", "repo": "APP_NAME", "token": "token", "private": true } ], "icon": "assets/icon.ico", "target": [ "nsis" ], "signingHashAlgorithms": [ "sha256" ], "publisherName": "XYZ Limited", "certificateFile": "build/XYZ_2020_22.pfx", "certificatePassword": "Password", "signAndEditExecutable": true, "requestedExecutionLevel": "highestAvailable" }, "nsis": { "warningsAsErrors": false, "installerIcon": "assets/icon.ico", "runAfterFinish": true, "oneClick": false, "perMachine": true, "installerHeader": "assets/installerHeader.bmp", "installerSidebar": "build/installerSidebar.bmp", "createDesktopShortcut": true, "include": "build/installer-qa2.nsh", "artifactName": "${productName}.${ext}", "allowElevation": true }

Himesh512 avatar Feb 07 '22 10:02 Himesh512

Could you find answers for that? 🤔

Sigmah avatar Mar 14 '22 19:03 Sigmah

@Sigmah Not yet found any solutions

HimeshAsite512 avatar Aug 08 '22 13:08 HimeshAsite512