diff --git a/src/vs/platform/update/electron-main/auto-updater.win32.ts b/src/vs/platform/update/electron-main/auto-updater.win32.ts index 70043801820..71985113909 100644 --- a/src/vs/platform/update/electron-main/auto-updater.win32.ts +++ b/src/vs/platform/update/electron-main/auto-updater.win32.ts @@ -198,13 +198,12 @@ export class Win32AutoUpdaterImpl extends EventEmitter implements IAutoUpdater { } if (process.arch === 'ia32' && this.arch === 'x64') { - const updatePackageContents = `@echo off\r\n"${Win32UninstallPath} /silent"\r\nstart /b "" "${this.updatePackagePath}" /silent /mergetasks=runcode,!desktopicon,!quicklaunchicon\r\n`; + const updatePackageContents = `@echo off\r\n"${Win32UninstallPath}" /silent\r\nstart /b "" "${this.updatePackagePath}" /silent /mergetasks=runcode,!desktopicon,!quicklaunchicon\r\n`; const updatePackagePath = path.join(tmpdir(), 'vscode-update-32-to-64.bat'); fs.writeFileSync(updatePackagePath, updatePackageContents); - spawn('cmd.exe', [updatePackagePath], { - detached: true, - stdio: ['ignore', 'ignore', 'ignore'] + spawn('cmd', ['/c', 'call', updatePackagePath], { + detached: true }); return;