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