Skip to main content

SWM - Software Update - Upgrade Visual Studio Code Latest

Summary

The purpose of this script is to update the installed version of Visual Studio Code to the latest available version.

If the User Installer is installed, then the user must be logged on to the computer for the script to work. If the user is using the application, they will be prompted to close it:
Close Application Prompt

The application cannot be upgraded if it is running.

This prompt is inevitable for computers with the User Installer version of the application installed and should not be canceled:
Inevitable Prompt

Note: The script cannot be used to install a new instance of the application.

Sample Run

Sample Run

Variables

NameDescription
LatestVersionLatest version of the application released by Microsoft
DownloadURLURL to download the latest version of the application
LogScript log to write before exiting

Output

  • Script logs