Skip to content
utialy
VS Code extension · Windows x64 · Free

Portable VS Code Update

VS Code installed from the ZIP archive can tell you that an update exists, but it can't install it. Portable VS Code Update adds an Update button that downloads the latest stable release, verifies it and replaces the program files for you.

Portable VS Code Update by utialy

Platforms
Windows x64 · ZIP-installed VS Code 1.85+
License
Not published yet
Pricing
Free
Status
Available (1.1.2)
Unofficial extension

Portable VS Code Update is not affiliated with or endorsed by Microsoft. Visual Studio Code is a trademark of Microsoft Corporation.

What it does

Update portable VS Code without redoing the setup

For people who run VS Code from a folder — on a work PC without installer rights, or on a USB drive — and are tired of downloading and unpacking each release by hand.

  • An Update button

    Adds Update to the status bar and the Command Palette of ZIP-installed VS Code.

  • Verified before anything changes

    Checks the SHA256 hash of the download and the Microsoft Authenticode signature of Code.exe first.

  • Settings stay put

    Replaces only the program files in the new release. Your settings and extensions are not touched.

  • Backup and restore

    Moves replaced files to a backup. If replacing fails, the previous files are restored.

  • Automatic cleanup

    Removes leftovers from earlier updates while keeping the current version, the previous one and a recovery backup.

  • Scripts you can run yourself

    The same PowerShell scripts can check for an update or preview cleanup without changing anything.

Getting started

Install the extension

You need Windows x64 and VS Code 1.85 or later installed from the ZIP archive.

Install Portable VS Code Update from Visual Studio Marketplace, or paste this into Quick Open.

VS Code Quick Open (Ctrl+P)
ext install utialy.portable-update-button
  • Windows PowerShell 5.1, which ships with Windows.
  • HTTPS access to update.code.visualstudio.com and the official download hosts.
  • If you don't see the button, check how VS Code was installed. Setup-program installs update themselves, so the button is hidden there.
How it works

Click, download, close, replace

  1. Click Update

    Click Update in the status bar, or run Update Portable VS Code from the Command Palette.

  2. Let it download and verify

    A separate PowerShell window checks for the latest version, downloads it, and verifies the hash and signature.

  3. Close VS Code when asked

    Save your work and close every VS Code window started from this installation. Keep the update window open.

  4. Wait for it to finish

    The program files are replaced. Do not reopen VS Code until the window reports that the update finished.

What automatic cleanup keeps and removes

Thirty seconds after VS Code starts, the extension removes files left over from earlier updates. It runs only in installations where this updater has run at least once. What was removed is recorded in .portable-update/last-cleanup.json.

KeptThe current version, the previous version, one recovery backup, any version still used by a running process, backups it can't identify, and every recovery file while a failed-install folder exists.
RemovedOlder versions and their backups, downloaded ZIP files and temporary extraction folders.
When it stopsCleanup deletes nothing if a path is outside the installation folder, contains a link or can't be verified, and it never runs while an update is in progress.

Check for an update from PowerShell

Run the scripts from a separate PowerShell window, not the VS Code integrated terminal, because closing VS Code also closes that terminal. Pass the folder that contains Code.exe as an absolute path. In portable mode the scripts are under the installation's data\extensions folder instead.

PowerShell
$scripts = "$env:USERPROFILE\.vscode\extensions\utialy.portable-update-button-1.1.2\scripts"

# Check for an update without installing it
powershell -NoProfile -ExecutionPolicy Bypass -File "$scripts\Update-VSCode.ps1" -InstallRoot "D:\Tools\VSCode" -CheckOnly
Conditions and limits

Know this before you install

Official statusUnofficial. Not affiliated with or endorsed by Microsoft.
LicenseNo license file has been published yet, and there is no public source repository. We'll list the license here once it's set.
PriceFree on Visual Studio Marketplace.
PlatformsWindows x64 with VS Code 1.85 or later installed from the ZIP archive, with or without a portable data folder, and Windows PowerShell 5.1. The button does not appear in VS Code installed with the User or System setup program, or on macOS and Linux.
NetworkAsks update.code.visualstudio.com for the latest stable Windows x64 ZIP and its hash, then downloads over HTTPS only from vscode.download.prss.microsoft.com, az764295.vo.msecnd.net or vscode.download.azure.cn.
DataThe extension sends nothing to us. Update checks and downloads go directly from your PC to Microsoft's servers. Privacy policy
What it changesOnly the top-level entries contained in the new release are replaced. Replaced files move to a backup under .portable-update in the installation folder; if replacing fails, a partial install is kept in a failed-install folder for inspection.
Known limitsInstalls the latest stable release only. You have to close every VS Code window started from the installation yourself; the update window waits up to 120 minutes and then stops without changing any program files. Disabling or uninstalling the extension stops automatic cleanup.
StatusAvailable (1.1.2).
Changes and support

Changes and help

Are my settings and extensions kept?

Yes. Only the program files in the new release are replaced. The data folder or your user profile is not touched.

What happens if the update fails?

The previous files are restored from the backup, and the partial install is kept in a failed-install folder so you can inspect it. Automatic cleanup keeps every recovery file while that folder exists.

Why don't I see the Update button?

The button appears only in VS Code installed from the ZIP archive on Windows x64. It is hidden in User or System setup installs, which update themselves, and on macOS and Linux.

Where do I report a problem?

Use the contact form and include your Windows and VS Code versions and what the update window showed. Cleanup errors appear in the Portable VS Code Cleanup output channel.