Gpg4win (Beta) ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
PowerShell
winget install --id GnuPG.Gpg4win.Beta -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GnuPG.Gpg4win.Beta -e --silentwinget uninstall --id GnuPG.Gpg4win.Beta -e --silentInstaller အလိုက်
64-bit · EXE (NSIS) · အသုံးပြုသူအားလုံး · en-US
အသံတိတ်ထည့်သွင်းခြင်း
gpg4win-5.0.0-beta395.exe /Sစိတ်ကြိုက် ဖိုင်တွဲ
gpg4win-5.0.0-beta395.exe /S /D=C:\Apps\gpg4win-beta- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gpg4win
- ထည့်သွင်းမည့် ဖိုင်တွဲ
- %ProgramFiles%\Gpg4win
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
install-gpg4win-beta.ps1
$url = 'https://files.gpg4win.org/Beta/gpg4win-5.0.0-beta395/gpg4win-5.0.0-beta395.exe'
$sha256 = 'A0D045F2167B69DA2DFE4BB6E5E3D0FE86E35D24EE68322F3B698ABE044C276A'
$file = Join-Path $env:TEMP 'gpg4win-5.0.0-beta395.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 '/S' -Wait