Ordres per instal·lar Microsoft Visual Studio Code Insiders sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
winget install --id Microsoft.VisualStudioCode.Insiders -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.VisualStudioCode.Insiders -e --silentwinget uninstall --id Microsoft.VisualStudioCode.Insiders -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Usuari actual
VSCodeUserSetup-x64-1.127.0-insider.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-VSCodeUserSetup-x64-1.127.0-insider.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\microsoft-visual-studio-code-insiders"64 bits · EXE (Inno Setup) · Tots els usuaris
VSCodeSetup-x64-1.127.0-insider.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-VSCodeSetup-x64-1.127.0-insider.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\microsoft-visual-studio-code-insiders"ARM64 · EXE (Inno Setup) · Usuari actual
VSCodeUserSetup-arm64-1.127.0-insider.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-VSCodeUserSetup-arm64-1.127.0-insider.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\microsoft-visual-studio-code-insiders"ARM64 · EXE (Inno Setup) · Tots els usuaris
VSCodeSetup-arm64-1.127.0-insider.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-VSCodeSetup-arm64-1.127.0-insider.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\microsoft-visual-studio-code-insiders"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
$url = 'https://vscode.download.prss.microsoft.com/dbazure/download/insider/4fe60c8b1cdac1c4c174f2fb180d0d758272d713/VSCodeUserSetup-x64-1.127.0-insider.exe'
$sha256 = '56DFC39B7828F708236FB44BAB8C39C647E1D5FD0CB12D5CEDE61B0DEBAD6A09'
$file = Join-Path $env:TEMP 'VSCodeUserSetup-x64-1.127.0-insider.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait $url = 'https://vscode.download.prss.microsoft.com/dbazure/download/insider/4fe60c8b1cdac1c4c174f2fb180d0d758272d713/VSCodeSetup-x64-1.127.0-insider.exe'
$sha256 = '5C158C0095AEF6245A5D81EE099A7425A005C53BC8606D7DDC714F67A44037D5'
$file = Join-Path $env:TEMP 'VSCodeSetup-x64-1.127.0-insider.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait $url = 'https://vscode.download.prss.microsoft.com/dbazure/download/insider/4fe60c8b1cdac1c4c174f2fb180d0d758272d713/VSCodeUserSetup-arm64-1.127.0-insider.exe'
$sha256 = 'C770EA5A3E7F84A661B698CA3F4588E9297564F4F495F3DD237FAE438AFA4E62'
$file = Join-Path $env:TEMP 'VSCodeUserSetup-arm64-1.127.0-insider.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait $url = 'https://vscode.download.prss.microsoft.com/dbazure/download/insider/4fe60c8b1cdac1c4c174f2fb180d0d758272d713/VSCodeSetup-arm64-1.127.0-insider.exe'
$sha256 = 'C98E4080926B39DAA46DB8D8D42EB7F2E69E177F512B1EDDAEF286BE8D0A9F75'
$file = Join-Path $env:TEMP 'VSCodeSetup-arm64-1.127.0-insider.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait