أوامر لتثبيت برنامج TypeScript SDK دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
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 --silentحسب المثبّت
32 بت · EXE (WiX Burn) · جميع المستخدمين
التثبيت الصامت
TypeScript_SDK_4.3.exe /quiet /norestartإلغاء التثبيت
msiexec /x {52EB6094-28CF-4BB4-945E-A82301DD92A9} /qn /norestart- رمز منتج MSI
- {52eb6094-28cf-4bb4-945e-a82301dd92a9}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{52eb6094-28cf-4bb4-945e-a82301dd92a9}
- DisplayVersion
- 4.3.2.0
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-typescript-sdk.ps1
$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