أوامر لتثبيت برنامج SA201B دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Thorlabs.SA201B -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Thorlabs.SA201B -e --silentwinget uninstall --id Thorlabs.SA201B -e --silentحسب المثبّت
32 بت · ZIP · جميع المستخدمين
التثبيت الصامت
v1.3.0.zip /S /V/quiet /V/norestartإلغاء التثبيت
msiexec /x {3D5A0C32-3789-4D32-B02E-C9EE2E981BCA} /qn /norestart- رمز منتج MSI
- {3D5A0C32-3789-4D32-B02E-C9EE2E981BCA}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{3D5A0C32-3789-4D32-B02E-C9EE2E981BCA}
- UpgradeCode
- {F8987FCC-F964-4EC7-8524-A6D12DA0CD28}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-sa201b.ps1
$url = 'https://thin01mstroc282prod.dxcloud.episerver.net/contentassets/ed2884aeeb7848f9974e9d53a727e830/v1.3.0.zip'
$sha256 = '7A13E0A2923017775097B1FC2DEC3A60C3EC25A2B458542808E86FD98D2F3458'
$file = Join-Path $env:TEMP 'v1.3.0.zip'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S /V/quiet /V/norestart' -Wait