Komande za instalaciju programa Microsoft Visual Studio Code bez pitanja, za njegovo uklanjanje i za detekciju u alatima za distribuciju. Komanda je prikazana samo kada je pouzdana: iz manifesta ili iz dokumentovanih podrazumevanih parametara tehnologije instalacionog fajla.
Povezano uputstvo: Parametri za tihu instalaciju: MSI, NSIS, Inno Setup · Deinstalacija programa preko registra ili PowerShella
Preko wingeta
PowerShell
winget install --id Microsoft.VisualStudioCode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.VisualStudioCode -e --silentwinget uninstall --id Microsoft.VisualStudioCode -e --silentPo instalacionom fajlu
64-bit · EXE (Inno Setup) · Trenutni korisnik · en-US
Tiha instalacija
VSCodeUserSetup-x64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Drugi folder
VSCodeUserSetup-x64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\microsoft-visual-studio-code"64-bit · EXE (Inno Setup) · Svi korisnici · en-US
Tiha instalacija
VSCodeSetup-x64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Drugi folder
VSCodeSetup-x64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\microsoft-visual-studio-code"ARM64 · EXE (Inno Setup) · Trenutni korisnik · en-US
Tiha instalacija
VSCodeUserSetup-arm64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Drugi folder
VSCodeUserSetup-arm64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\microsoft-visual-studio-code"ARM64 · EXE (Inno Setup) · Svi korisnici · en-US
Tiha instalacija
VSCodeSetup-arm64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Drugi folder
VSCodeSetup-arm64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\microsoft-visual-studio-code"PowerShell: preuzmi, proveri, instaliraj
Preuzima zvanični fajl, proverava SHA256 i tiho ga instalira.
install-microsoft-visual-studio-code.ps1
$url = 'https://vscode.download.prss.microsoft.com/dbazure/download/stable/69047191fc427f2f92828279aae1d90d8eeda7ab/VSCodeUserSetup-x64-1.146.0.exe'
$sha256 = 'DA5AAD5FD88244FFC35D5F6C86C5214F9CEED6520888E4C5CCF3E8678E5BBF0A'
$file = Join-Path $env:TEMP 'VSCodeUserSetup-x64-1.146.0.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 install-microsoft-visual-studio-code.ps1
$url = 'https://vscode.download.prss.microsoft.com/dbazure/download/stable/69047191fc427f2f92828279aae1d90d8eeda7ab/VSCodeSetup-x64-1.146.0.exe'
$sha256 = '972FCB16D819532A25AF8DC1976E1C80508E080BF56EB65BFD6A35EED983A35B'
$file = Join-Path $env:TEMP 'VSCodeSetup-x64-1.146.0.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 install-microsoft-visual-studio-code.ps1
$url = 'https://vscode.download.prss.microsoft.com/dbazure/download/stable/69047191fc427f2f92828279aae1d90d8eeda7ab/VSCodeUserSetup-arm64-1.146.0.exe'
$sha256 = 'F4B8A50821C0E11604B7A63C17FE8CE413FC7C872291927E5B82BEF18E5B28BA'
$file = Join-Path $env:TEMP 'VSCodeUserSetup-arm64-1.146.0.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 install-microsoft-visual-studio-code.ps1
$url = 'https://vscode.download.prss.microsoft.com/dbazure/download/stable/69047191fc427f2f92828279aae1d90d8eeda7ab/VSCodeSetup-arm64-1.146.0.exe'
$sha256 = '533E1EC692275354EF98A63C659F55BE3C3CA84586A0BAE2A6B678A6FC48A2C4'
$file = Join-Path $env:TEMP 'VSCodeSetup-arm64-1.146.0.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