tweak 32 to 64 bit upgrade

This commit is contained in:
Joao Moreno
2017-07-20 09:00:59 +02:00
parent 6f682d2a84
commit 23be721eef
@@ -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;