أوامر لتثبيت برنامج mdedit دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id lexandro.mdedit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id lexandro.mdedit -e --silentwinget uninstall --id lexandro.mdedit -e --silentحسب المثبّت
64 بت · MSI · جميع المستخدمين · en-US
التثبيت الصامت
msiexec /i mdedit_0.13.0_x64_en-US.msi /qn /norestartكتابة ملف سجل
msiexec /i mdedit_0.13.0_x64_en-US.msi /qn /norestart /l*v "%TEMP%\mdedit-install.log"إلغاء التثبيت
msiexec /x {BCCABEC5-BB52-49EE-ADBB-C122CC1D9894} /qn /norestart- رمز منتج MSI
- {BCCABEC5-BB52-49EE-ADBB-C122CC1D9894}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BCCABEC5-BB52-49EE-ADBB-C122CC1D9894}
- UpgradeCode
- {E0F59249-2417-5FFE-B79B-34BE2E789530}
- مجلد التثبيت
- %ProgramFiles%/mdedit
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-mdedit.ps1
$url = 'https://github.com/lexandro/mdedit/releases/download/v0.13.0/mdedit_0.13.0_x64_en-US.msi'
$sha256 = '88EC48352CFC5C6CA580CC6C8671D2CFFBB03F7C3D748CCD8EE9A74F2B7A42C4'
$file = Join-Path $env:TEMP 'mdedit_0.13.0_x64_en-US.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait