Multipass ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
PowerShell
winget install --id Canonical.Multipass -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Canonical.Multipass -e --silentwinget uninstall --id Canonical.Multipass -e --silentInstaller အလိုက်
64-bit · MSI · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
msiexec /i multipass-1.16.4+win-win64.msi /qn /norestartLog ဖိုင် ရေးရန်
msiexec /i multipass-1.16.4+win-win64.msi /qn /norestart /l*v "%TEMP%\multipass-install.log"ဖယ်ရှားခြင်း (Uninstall)
msiexec /x {A7AD2F65-C450-4440-9AD9-59591C1AA15E} /qn /norestart- MSI product code
- {A7AD2F65-C450-4440-9AD9-59591C1AA15E}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A7AD2F65-C450-4440-9AD9-59591C1AA15E}
- UpgradeCode
- {FAEBC626-1491-49BB-8162-22B1684013D9}
- ထည့်သွင်းမည့် ဖိုင်တွဲ
- %ProgramFiles%/Multipass
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
install-multipass.ps1
$url = 'https://github.com/canonical/multipass/releases/download/v1.16.4/multipass-1.16.4+win-win64.msi'
$sha256 = 'B0C417FB8254FA61E4AA63895F59354BB3717C58100816651A9300DD98124AEA'
$file = Join-Path $env:TEMP 'multipass-1.16.4+win-win64.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