أوامر لتثبيت برنامج LeafView دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id sprout2000.LeafView -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id sprout2000.LeafView -e --silentwinget uninstall --id sprout2000.LeafView -e --silentحسب المثبّت
64 بت · EXE (NSIS) · المستخدم الحالي · en-US
التثبيت الصامت
LeafView-4.5.1-win32-x64-installer.exe /Sمجلد مخصص
LeafView-4.5.1-win32-x64-installer.exe /S /D=C:\Apps\leafviewإلغاء التثبيت
msiexec /x {8A6068BC-6694-57D2-9871-8AEDABBB31B1} /qn /norestart- رمز منتج MSI
- {8A6068BC-6694-57D2-9871-8AEDABBB31B1}
- مفتاح إلغاء التثبيت في السجل
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8A6068BC-6694-57D2-9871-8AEDABBB31B1}
64 بت · EXE (NSIS) · جميع المستخدمين · en-US
التثبيت الصامت
LeafView-4.5.1-win32-x64-installer.exe /Sمجلد مخصص
LeafView-4.5.1-win32-x64-installer.exe /S /D=C:\Apps\leafviewإلغاء التثبيت
msiexec /x {8A6068BC-6694-57D2-9871-8AEDABBB31B1} /qn /norestart- رمز منتج MSI
- {8A6068BC-6694-57D2-9871-8AEDABBB31B1}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8A6068BC-6694-57D2-9871-8AEDABBB31B1}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-leafview.ps1
$url = 'https://github.com/sprout2000/leafview/releases/download/v4.5.1/LeafView-4.5.1-win32-x64-installer.exe'
$sha256 = 'E94DCA927E271BC5E5B9E1555A9F8618653419E06E4661DC4A7918D576C2CEEC'
$file = Join-Path $env:TEMP 'LeafView-4.5.1-win32-x64-installer.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 install-leafview.ps1
$url = 'https://github.com/sprout2000/leafview/releases/download/v4.5.1/LeafView-4.5.1-win32-x64-installer.exe'
$sha256 = 'E94DCA927E271BC5E5B9E1555A9F8618653419E06E4661DC4A7918D576C2CEEC'
$file = Join-Path $env:TEMP 'LeafView-4.5.1-win32-x64-installer.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