OpenCodex ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
PowerShell
winget install --id lidge-jun.OpenCodex -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id lidge-jun.OpenCodex -e --silentwinget uninstall --id lidge-jun.OpenCodex -e --silentInstaller အလိုက်
64-bit · MSI · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
msiexec /i OpenCodex-2.100.2-windows-x64.msi /qn /norestartLog ဖိုင် ရေးရန်
msiexec /i OpenCodex-2.100.2-windows-x64.msi /qn /norestart /l*v "%TEMP%\lidge-jun-opencodex-install.log"ဖယ်ရှားခြင်း (Uninstall)
msiexec /x {17D5AD3C-4C39-44C8-8898-2621073E4914} /qn /norestart- MSI product code
- {17D5AD3C-4C39-44C8-8898-2621073E4914}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{17D5AD3C-4C39-44C8-8898-2621073E4914}
- UpgradeCode
- {505158BD-FA60-5623-B931-DA1576D39069}
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
install-lidge-jun-opencodex.ps1
$url = 'https://github.com/lidge-jun/opencodex/releases/download/v2.100.2/OpenCodex-2.100.2-windows-x64.msi'
$sha256 = '7E1CFF4E08D183D8F0521B7D315E60B283414D97EBCBCF57F55C41E572BB95C1'
$file = Join-Path $env:TEMP 'OpenCodex-2.100.2-windows-x64.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