fix(windows): disable background update for MSI (#1722)

This commit is contained in:
Baptiste Augrain 2023-11-13 13:40:07 +01:00 committed by GitHub
parent fbeaf45cdb
commit dfc41b2911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
patches/update-msi.patch Normal file
View file

@ -0,0 +1,9 @@
diff --git a/src/vs/platform/update/electron-main/updateService.win32.ts b/src/vs/platform/update/electron-main/updateService.win32.ts
index 99bf807..b5b4333 100644
--- a/src/vs/platform/update/electron-main/updateService.win32.ts
+++ b/src/vs/platform/update/electron-main/updateService.win32.ts
@@ -156,3 +156,3 @@ export class Win32UpdateService extends AbstractUpdateService implements IRelaun
}).then(packagePath => {
- const fastUpdatesEnabled = this.configurationService.getValue('update.enableWindowsBackgroundUpdates');
+ const fastUpdatesEnabled = getUpdateType() == UpdateType.Setup && this.configurationService.getValue('update.enableWindowsBackgroundUpdates');