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

Issues on windows update

Open qishibo opened this issue 1 year ago • 0 comments

  • Electron-Builder Version: 22.14.5
  • Electron-updater Version: 4.6.5
  • Node Version: all
  • Electron Version: 12.2.3
  • Electron Type (current, beta, nightly):
  • Target: nsis

When the nsis (exe) package is installed, the user runs with administrator privileges and installs it for all users, then when it is updated, if app is run by a common user(not admin), it will ask for administrator privileges during uninstall, but It will fail when reinstalling and the folder is empty, it should be caused by non-administrator permissions.

Does anyone know how to solve this problem? Or how can I ask administrator privileges again when updating after opening it by no-admin?

This is my config:

    "nsis": {
      "allowToChangeInstallationDirectory": true,
      "oneClick": false,
      "menuCategory": true,
      "allowElevation": false
    }

qishibo avatar Aug 24 '22 02:08 qishibo