Commands for installing TypeScript SDK without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
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 --silentBy installer
32-bit · EXE (WiX Burn) · All users
TypeScript_SDK_4.3.exe /quiet /norestartmsiexec /x {52EB6094-28CF-4BB4-945E-A82301DD92A9} /qn /norestart- MSI product code
- {52eb6094-28cf-4bb4-945e-a82301dd92a9}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{52eb6094-28cf-4bb4-945e-a82301dd92a9}
- DisplayVersion
- 4.3.2.0
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
$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