mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-20 19:14:10 +01:00
tweak 32 to 64 bit upgrade
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user