أوامر لتثبيت برنامج VisIt دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id VisIt.VisIt -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id VisIt.VisIt -e --silentwinget uninstall --id VisIt.VisIt -e --silentحسب المثبّت
64 بت · EXE (NSIS) · en-US
التثبيت الصامت
visit3.4.2_x64.exe /Sمجلد مخصص
visit3.4.2_x64.exe /S /D=C:\Apps\visit- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VisIt3.4.2
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-visit.ps1
$url = 'https://github.com/visit-dav/visit/releases/download/v3.4.2/visit3.4.2_x64.exe'
$sha256 = 'B38424F1BC73323ACB90038F852F399D8A69DB55D2BD89D0CC2A95FFE09ED45E'
$file = Join-Path $env:TEMP 'visit3.4.2_x64.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 '/S' -Wait