Symptoms & Diagnosis
When installing Visual Studio Code, the installer may freeze during the “Extracting files” phase. This typically happens when the progress bar reaches a specific percentage and stops moving for several minutes.
Common symptoms include the installer status switching to “Not Responding” or the system experiencing high disk usage without actual file progression. This often indicates a conflict with existing file locks or insufficient permissions.
To diagnose the issue, check your Task Manager. If the “Windows Installer” or “VS Code Setup” process shows 0% disk activity while stuck, the extraction process has likely encountered a dead-end.

Troubleshooting Guide
Follow these steps to resolve the extraction hang and complete your installation successfully.
1. Run the Installer as Administrator
Permissions are the leading cause of extraction failures. Right-click the VS Code setup file and select “Run as administrator” to ensure the installer can write to the protected ‘AppData’ or ‘Program Files’ directories.
2. Clear Local Temp Folders
Residual files from previous failed installations can cause conflicts. Use the following commands to clear the temporary directory before retrying.
# Open the Temp directory via Command Prompt
cd %temp%
# Remove temporary vscode setup files
del /q /s vscode-update*
3. Switch Installer Types
VS Code offers two primary installer types. If the User Installer fails, the System Installer often succeeds because it uses different directory permissions.
| Installer Type | Default Path | Permissions Required |
|---|---|---|
| User Installer | %LocalAppData%\Programs\Microsoft VS Code | Current User |
| System Installer | C:\Program Files\Microsoft VS Code | Administrator |
4. Disable Real-time Antivirus Scanning
Some security software flags the rapid extraction of many small files as suspicious activity. Temporarily disable your antivirus or Windows Defender’s “Real-time protection” and attempt the installation again.
Prevention
To prevent future installation hangs, ensure your system has at least 1GB of free space on the target drive to accommodate the temporary extraction overhead.
Always close existing instances of VS Code or related background processes (like Electron) before running an update or a new installation. Using the 64-bit version on compatible systems also provides better stability during the file extraction process.