أوامر لتثبيت برنامج Tp-Note دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id getreu.tpnote -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id getreu.tpnote -e --silentwinget uninstall --id getreu.tpnote -e --silentحسب المثبّت
64 بت · MSI · جميع المستخدمين · en-US
التثبيت الصامت
msiexec /i tpnote-1.27.3-x64.msi /qn /norestartكتابة ملف سجل
msiexec /i tpnote-1.27.3-x64.msi /qn /norestart /l*v "%TEMP%\tp-note-install.log"إلغاء التثبيت
msiexec /x {F0FDBD28-C3EA-46A1-BD58-509310D074CB} /qn /norestart- رمز منتج MSI
- {F0FDBD28-C3EA-46A1-BD58-509310D074CB}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F0FDBD28-C3EA-46A1-BD58-509310D074CB}
- UpgradeCode
- {6F9619FF-8B86-D011-B42D-00C04FC964FF}
- مجلد التثبيت
- %ProgramFiles(x86)%/Tp-Note
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-tp-note.ps1
$url = 'https://github.com/getreu/tp-note/releases/download/v1.27.3/tpnote-1.27.3-x64.msi'
$sha256 = '931D032239B2E1576001A073015291C6E4F0AD4EF20382F81469EF93D1B0FEFF'
$file = Join-Path $env:TEMP 'tpnote-1.27.3-x64.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