mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Set auto-apply silent:false so that updates can happen even when admin is required.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.Versioning;
|
using System.Runtime.Versioning;
|
||||||
@@ -213,7 +213,7 @@ namespace Velopack
|
|||||||
log.Info($"Launching app is out-dated. Current: {myVersion}, Newest Local Available: {latestLocal.Version}");
|
log.Info($"Launching app is out-dated. Current: {myVersion}, Newest Local Available: {latestLocal.Version}");
|
||||||
if (!restarted && _autoApply) {
|
if (!restarted && _autoApply) {
|
||||||
log.Info("Auto apply is true, so restarting to apply update...");
|
log.Info("Auto apply is true, so restarting to apply update...");
|
||||||
UpdateExe.Apply(locator, latestLocal, true, true, args, log);
|
UpdateExe.Apply(locator, latestLocal, false, true, args, log);
|
||||||
Exit(0);
|
Exit(0);
|
||||||
} else {
|
} else {
|
||||||
log.Info("Pre-condition failed, we will not restart to apply updates. (restarted: " + restarted + ", autoApply: " + _autoApply + ")");
|
log.Info("Pre-condition failed, we will not restart to apply updates. (restarted: " + restarted + ", autoApply: " + _autoApply + ")");
|
||||||
|
|||||||
Reference in New Issue
Block a user