Microsoft Visual Studio Code dasturini savolsiz oʻrnatish, uni qayta oʻchirish va tarqatish vositalarida aniqlash uchun buyruqlar. Buyruq faqat aniq boʻlganda koʻrsatiladi: manifestdan yoki oʻrnatuvchi texnologiyasining hujjatlashtirilgan standart qiymatidan.
Tegishli qoʻllanma: Jim oʻrnatish kalitlari: MSI, NSIS, Inno Setup · Dasturni reyestr yoki PowerShell orqali oʻchirish
winget orqali
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 --silentOʻrnatuvchilar boʻyicha
64 bitli · EXE (Inno Setup) · Joriy foydalanuvchi · en-US
Jim oʻrnatish
VSCodeUserSetup-x64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Boshqa papka
VSCodeUserSetup-x64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\microsoft-visual-studio-code"64 bitli · EXE (Inno Setup) · Barcha foydalanuvchilar · en-US
Jim oʻrnatish
VSCodeSetup-x64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Boshqa papka
VSCodeSetup-x64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\microsoft-visual-studio-code"ARM64 · EXE (Inno Setup) · Joriy foydalanuvchi · en-US
Jim oʻrnatish
VSCodeUserSetup-arm64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Boshqa papka
VSCodeUserSetup-arm64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\microsoft-visual-studio-code"ARM64 · EXE (Inno Setup) · Barcha foydalanuvchilar · en-US
Jim oʻrnatish
VSCodeSetup-arm64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Boshqa papka
VSCodeSetup-arm64-1.146.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\microsoft-visual-studio-code"PowerShell: yuklab olish, tekshirish, oʻrnatish
Rasmiy faylni yuklab oladi, uning SHA256 xeshini tekshiradi va jim oʻrnatadi.
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