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)
Portable VS Code Update is not affiliated with or endorsed by Microsoft. Visual Studio Code is a trademark of Microsoft Corporation.
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.
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.
ext install utialy.portable-update-button- Windows PowerShell 5.1, which ships with Windows.
- HTTPS access to
update.code.visualstudio.comand 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.
Click, download, close, replace
Click Update
Click Update in the status bar, or run Update Portable VS Code from the Command Palette.
Let it download and verify
A separate PowerShell window checks for the latest version, downloads it, and verifies the hash and signature.
Close VS Code when asked
Save your work and close every VS Code window started from this installation. Keep the update window open.
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.
| Kept | The 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. |
|---|---|
| Removed | Older versions and their backups, downloaded ZIP files and temporary extraction folders. |
| When it stops | Cleanup 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.
$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" -CheckOnlyKnow this before you install
| Official status | Unofficial. Not affiliated with or endorsed by Microsoft. |
|---|---|
| License | No license file has been published yet, and there is no public source repository. We'll list the license here once it's set. |
| Price | Free on Visual Studio Marketplace. |
| Platforms | Windows 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. |
| Network | Asks 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. |
| Data | The extension sends nothing to us. Update checks and downloads go directly from your PC to Microsoft's servers. Privacy policy |
| What it changes | Only 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 limits | Installs 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. |
| Status | Available (1.1.2). |
Changes and help
The first public release on Visual Studio Marketplace.
Script locations and every manual option.
Report a problem or suggest an improvement.
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.