This guide will help you understand how to use the VisualStudioCode+Auto-Setup(Run_Admin).ps1
script.
- You need to have PowerShell installed on your system. This is used to run the script.
Both
MSI are from the official github page of Official-PowerShell-Github
choose your recommended pc specs either 32bit or 64bit
-
Run as Administrator: This script needs to be run as an administrator. Right-click on the script and select "Run as administrator".
-
Automatic Download: The script automatically downloads the latest stable release of Visual Studio Code from the official website.
-
Installation: The script runs the installer with system-level installation. It uses the
/verysilent
and/mergetasks=!runcode
arguments to install VS Code silently and without running the program after installation. -
Add to PATH: The script adds the path to the VS Code executable to the system PATH, allowing you to run
code
from the command line. -
Cleanup: The script removes the installer file after the installation is complete.
- The script checks if the path to the VS Code executable already exists in the system PATH. If it does, it will not add it again.