TypeScript SDK programını soru sormadan kurmak, kaldırmak ve dağıtım araçlarında algılamak için komutlar. Bir komut yalnızca kesinse gösterilir: manifestteki anahtar ya da kurulum teknolojisinin belgelenmiş varsayılanı.
İlgili rehber: Sessiz kurulum parametreleri: MSI, NSIS, Inno Setup · Kayıt defteri veya PowerShell ile program kaldırma
winget ile
winget install --id Microsoft.VisualStudio.Extensions.TypeScript -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.VisualStudio.Extensions.TypeScript -e --silentwinget uninstall --id Microsoft.VisualStudio.Extensions.TypeScript -e --silentKurulum dosyasına göre
32 bit · EXE (WiX Burn) · Tüm kullanıcılar
TypeScript_SDK_4.3.exe /quiet /norestartmsiexec /x {52EB6094-28CF-4BB4-945E-A82301DD92A9} /qn /norestart- MSI ürün kodu
- {52eb6094-28cf-4bb4-945e-a82301dd92a9}
- Kaldırma kayıt defteri anahtarı
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{52eb6094-28cf-4bb4-945e-a82301dd92a9}
- DisplayVersion
- 4.3.2.0
PowerShell: indir, doğrula, kur
Resmî dosyayı indirir, SHA256 değerini doğrular ve sessizce kurar.
$url = 'https://typescriptteam.gallerycdn.vsassets.io/extensions/typescriptteam/typescript-43/4.3/1622050134497/TypeScript_SDK_4.3.exe'
$sha256 = '46BCCAA0B86D1F9EDA43C88099CBCBF384A4DCB85D6925B4323FCA6C10A38CDD'
$file = Join-Path $env:TEMP 'TypeScript_SDK_4.3.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 '/quiet /norestart' -Wait