MapTool ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
PowerShell
winget install --id RPTools.MapTool -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RPTools.MapTool -e --silentwinget uninstall --id RPTools.MapTool -e --silentInstaller အလိုက်
64-bit · MSI · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
msiexec /i MapTool-1.18.7.msi /qn /norestartLog ဖိုင် ရေးရန်
msiexec /i MapTool-1.18.7.msi /qn /norestart /l*v "%TEMP%\maptool-install.log"ဖယ်ရှားခြင်း (Uninstall)
msiexec /x {60EDB76E-EBB2-30C5-9730-F6FB76C2B0D8} /qn /norestart- MSI product code
- {60EDB76E-EBB2-30C5-9730-F6FB76C2B0D8}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{60EDB76E-EBB2-30C5-9730-F6FB76C2B0D8}
- UpgradeCode
- {74D934B9-5FB5-433E-ACA4-C6F14BD9AA6B}
- ထည့်သွင်းမည့် ဖိုင်တွဲ
- %ProgramFiles%/MapTool
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
install-maptool.ps1
$url = 'https://github.com/RPTools/maptool/releases/download/1.18.7/MapTool-1.18.7.msi'
$sha256 = 'E10DA06CBF7758047F085D788608D2E52D0CC95137F376109CA54F29BF3BA529'
$file = Join-Path $env:TEMP 'MapTool-1.18.7.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