أوامر لتثبيت برنامج P4 Apps دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Perforce.P4V -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Perforce.P4V -e --silentwinget uninstall --id Perforce.P4V -e --silentحسب المثبّت
64 بت · EXE (WiX Burn) · جميع المستخدمين
التثبيت الصامت
p4vinst64.exe /quiet /norestartإلغاء التثبيت
msiexec /x {E4720099-B569-44B5-8BD6-BD6F4D66033E} /qn /norestart- رمز منتج MSI
- {e4720099-b569-44b5-8bd6-bd6f4d66033e}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e4720099-b569-44b5-8bd6-bd6f4d66033e}
- UpgradeCode
- {AE554B2A-CA7C-4DA4-8A4E-BC6085DFACE4}
64 بت · MSI · جميع المستخدمين
التثبيت الصامت
msiexec /i p4vinst64.msi /qn /norestartكتابة ملف سجل
msiexec /i p4vinst64.msi /qn /norestart /l*v "%TEMP%\p4-apps-install.log"إلغاء التثبيت
msiexec /x {858CC3A4-611E-4887-871D-1C2DDDE12273} /qn /norestart- رمز منتج MSI
- {858CC3A4-611E-4887-871D-1C2DDDE12273}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{858CC3A4-611E-4887-871D-1C2DDDE12273}
- UpgradeCode
- {70A9FDC7-885B-4D6D-BAFD-CB2D27AB2963}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-p4-apps.ps1
$url = 'https://filehost.perforce.com/perforce/r26.3/bin.ntx64/p4vinst64.exe'
$sha256 = '7EC701333A20BD91F1F94C8C22A46E6960126620099655A3C285C0B67588312B'
$file = Join-Path $env:TEMP 'p4vinst64.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 '/quiet /norestart' -Wait install-p4-apps.ps1
$url = 'https://filehost.perforce.com/perforce/r26.3/bin.ntx64/p4vinst64.msi'
$sha256 = '282D57DD9DD0A07F76F128D89298F79B8118F2058BCA73AF3EB94653902F3A39'
$file = Join-Path $env:TEMP 'p4vinst64.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