electron-updater
Advanced tools
Comparing version 4.6.3 to 4.6.4
## 4.3.0 | ||
## 4.6.4 | ||
### Patch Changes | ||
- [#6450](https://github.com/electron-userland/electron-builder/pull/6450) [`661a6522`](https://github.com/electron-userland/electron-builder/commit/661a6522520e9ea59549cb7e18986fcfb58e873a) Thanks [@robertpatrick](https://github.com/robertpatrick)! - fix(nsis): fix per-machine installs to properly elevate during silent install/updates | ||
## 4.6.3 | ||
@@ -4,0 +10,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BaseUpdater = void 0; | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const AppUpdater_1 = require("./AppUpdater"); | ||
@@ -53,15 +51,3 @@ class BaseUpdater extends AppUpdater_1.AppUpdater { | ||
try { | ||
let installPathRequiresElevation = false; | ||
if (process.platform === "win32") { | ||
try { | ||
const accessTestPath = path.join(path.dirname(process.execPath), `access-${Math.floor(Math.random() * 100)}.tmp`); | ||
fs.writeFileSync(accessTestPath, " "); | ||
fs.rmSync(accessTestPath); | ||
} | ||
catch (err) { | ||
// Require admin rights if needed | ||
installPathRequiresElevation = true; | ||
} | ||
} | ||
this._logger.info(`Install: isSilent: ${isSilent}, isForceRunAfter: ${isForceRunAfter}, installPathRequiresElevation: ${installPathRequiresElevation}`); | ||
this._logger.info(`Install: isSilent: ${isSilent}, isForceRunAfter: ${isForceRunAfter}`); | ||
return this.doInstall({ | ||
@@ -71,3 +57,3 @@ installerPath, | ||
isForceRunAfter, | ||
isAdminRightsRequired: installPathRequiresElevation || downloadedFileInfo.isAdminRightsRequired, | ||
isAdminRightsRequired: downloadedFileInfo.isAdminRightsRequired, | ||
}); | ||
@@ -74,0 +60,0 @@ } |
{ | ||
"name": "electron-updater", | ||
"version": "4.6.3", | ||
"version": "4.6.4", | ||
"description": "Cross platform updater for electron applications", | ||
@@ -5,0 +5,0 @@ "main": "out/main.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23
425642
3732