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