Session Manager Plugin ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
winget install --id Amazon.SessionManagerPlugin -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Amazon.SessionManagerPlugin -e --silentwinget uninstall --id Amazon.SessionManagerPlugin -e --silentInstaller အလိုက်
64-bit · EXE (WiX Burn) · အသုံးပြုသူအားလုံး
SessionManagerPluginSetup.exe /quiet /norestartmsiexec /x {CEF0D74C-33BC-432B-941F-6E17BEA1F9D3} /qn /norestart- MSI product code
- {cef0d74c-33bc-432b-941f-6e17bea1f9d3}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{cef0d74c-33bc-432b-941f-6e17bea1f9d3}
- UpgradeCode
- {9670508D-C72E-4FBC-B783-202D0682C2FE}
32-bit · EXE (WiX Burn) · အသုံးပြုသူအားလုံး
SessionManagerPluginSetup.exe /quiet /norestartmsiexec /x {CEF0D74C-33BC-432B-941F-6E17BEA1F9D3} /qn /norestart- MSI product code
- {cef0d74c-33bc-432b-941f-6e17bea1f9d3}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{cef0d74c-33bc-432b-941f-6e17bea1f9d3}
- UpgradeCode
- {9670508D-C72E-4FBC-B783-202D0682C2FE}
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
$url = 'https://s3.amazonaws.com/session-manager-downloads/plugin/1.2.896.0/windows/SessionManagerPluginSetup.exe'
$sha256 = '116A121CA6A781B7985D0C9FA3C5C9143440ACDE7822DE2E32733665EED30347'
$file = Join-Path $env:TEMP 'SessionManagerPluginSetup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait $url = 'https://s3.amazonaws.com/session-manager-downloads/plugin/1.2.896.0/windows/SessionManagerPluginSetup.exe'
$sha256 = '116A121CA6A781B7985D0C9FA3C5C9143440ACDE7822DE2E32733665EED30347'
$file = Join-Path $env:TEMP 'SessionManagerPluginSetup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait