msi2xml ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
PowerShell
winget install --id DanielGehriger.MSI2XML -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DanielGehriger.MSI2XML -e --silentwinget uninstall --id DanielGehriger.MSI2XML -e --silentInstaller အလိုက်
32-bit · MSI · အသုံးပြုသူအားလုံး · en-US
အသံတိတ်ထည့်သွင်းခြင်း
msiexec /i download /qn /norestartLog ဖိုင် ရေးရန်
msiexec /i download /qn /norestart /l*v "%TEMP%\msi2xml-install.log"ဖယ်ရှားခြင်း (Uninstall)
msiexec /x {093801C4-C2CC-441C-AA88-A9A6DDBD42E1} /qn /norestart- MSI product code
- {093801C4-C2CC-441C-AA88-A9A6DDBD42E1}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{093801C4-C2CC-441C-AA88-A9A6DDBD42E1}
- UpgradeCode
- {CEB3E401-0801-4D1D-BD9F-2823B98CB297}
- ထည့်သွင်းမည့် ဖိုင်တွဲ
- %ProgramFiles(x86)%\msi2xml
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
install-msi2xml.ps1
$url = 'https://sourceforge.net/projects/msi2xml/files/msi2xml/2.2.1/msi2xml-2.2.1.957.msi/download'
$sha256 = '69C9703A6359FB3FB51005652484977AB1746A64D1CE0548E5EEBFBCB450CE22'
$file = Join-Path $env:TEMP 'download'
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