PGPTool ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
PowerShell
winget install --id PGPTool.PGPTool -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PGPTool.PGPTool -e --silentwinget uninstall --id PGPTool.PGPTool -e --silentInstaller အလိုက်
32-bit · MSI · လက်ရှိအသုံးပြုသူ · en-US
အသံတိတ်ထည့်သွင်းခြင်း
msiexec /i pgptoolgui-0.6.0.0.msi /qn /norestartLog ဖိုင် ရေးရန်
msiexec /i pgptoolgui-0.6.0.0.msi /qn /norestart /l*v "%TEMP%\pgptool-install.log"ဖယ်ရှားခြင်း (Uninstall)
msiexec /x {5C49FCB8-035F-48D1-8F30-6A32F6603978} /qn /norestart- MSI product code
- {5C49FCB8-035F-48D1-8F30-6A32F6603978}
- Uninstall registry key
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{5C49FCB8-035F-48D1-8F30-6A32F6603978}
- UpgradeCode
- {2036E9EA-8A22-4B5B-AE6B-DDC41E3CE0F5}
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
install-pgptool.ps1
$url = 'https://github.com/pgptool/pgptool/releases/download/0.6.0.0/pgptoolgui-0.6.0.0.msi'
$sha256 = '7F5E36136CFE1BB5DB0EF95F1FC38B0EF6560D4C2891FB6387C1B16C25DBC0DD'
$file = Join-Path $env:TEMP 'pgptoolgui-0.6.0.0.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