ADInstruments Spirometry ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
winget install --id ADInstruments.LabChart.Extension.Spirometry -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ADInstruments.LabChart.Extension.Spirometry -e --silentwinget uninstall --id ADInstruments.LabChart.Extension.Spirometry -e --silentInstaller အလိုက်
32-bit · MSI · အသုံးပြုသူအားလုံး
msiexec /i Spirometry_v2.5.3.msi /qn /norestartmsiexec /i Spirometry_v2.5.3.msi /qn /norestart /l*v "%TEMP%\adinstruments-spirometry-install.log"msiexec /x {9E78357C-CC52-4BC7-80A6-B9B7EC0DB706} /qn /norestart- MSI product code
- {9E78357C-CC52-4BC7-80A6-B9B7EC0DB706}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9E78357C-CC52-4BC7-80A6-B9B7EC0DB706}
- UpgradeCode
- {30082DD5-C264-41FF-8FBF-C0EFFCA73468}
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
$url = 'https://cdn.adinstruments.com/Installers/win/Spirometry_v2.5.3.msi'
$sha256 = '5FAF51AFF7250910EC30AFE5DD65548BBF0E3D5F87F40AC2B1DAED77331F461B'
$file = Join-Path $env:TEMP 'Spirometry_v2.5.3.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