أوامر لتثبيت برنامج Paste Into File دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id PasteIntoFile.PasteIntoFile -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PasteIntoFile.PasteIntoFile -e --silentwinget uninstall --id PasteIntoFile.PasteIntoFile -e --silentحسب المثبّت
32 بت · MSI · المستخدم الحالي · en-US
التثبيت الصامت
msiexec /i PasteIntoFile_v5.6.1_installer_signed.msi /qn /norestartكتابة ملف سجل
msiexec /i PasteIntoFile_v5.6.1_installer_signed.msi /qn /norestart /l*v "%TEMP%\paste-into-file-install.log"إلغاء التثبيت
msiexec /x {CA74FFE0-A1A2-42B6-8DD3-358725B79F9A} /qn /norestart- رمز منتج MSI
- {CA74FFE0-A1A2-42B6-8DD3-358725B79F9A}
- مفتاح إلغاء التثبيت في السجل
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{CA74FFE0-A1A2-42B6-8DD3-358725B79F9A}
- UpgradeCode
- {D3BEE3F0-4EC0-44CC-ADDC-E7A3E133B9D2}
- مجلد التثبيت
- %ProgramFiles(x86)%\PasteIntoFile
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-paste-into-file.ps1
$url = 'https://github.com/eltos/PasteIntoFile/releases/download/v5.6.1/PasteIntoFile_v5.6.1_installer_signed.msi'
$sha256 = 'EC03659D9D52851D0ADE06EB32A02FA25ADAB88AFB6E0060DFC23A60A402927E'
$file = Join-Path $env:TEMP 'PasteIntoFile_v5.6.1_installer_signed.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