Commands for installing Amazon EC2Launch without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Amazon.EC2Launch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Amazon.EC2Launch -e --silentwinget uninstall --id Amazon.EC2Launch -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i AmazonEC2Launch.msi /qn /norestartWrite a log
msiexec /i AmazonEC2Launch.msi /qn /norestart /l*v "%TEMP%\amazon-ec2launch-install.log"Uninstall
msiexec /x {D18BD028-BC33-444D-B9AC-5C7076758F6A} /qn /norestart- MSI product code
- {D18BD028-BC33-444D-B9AC-5C7076758F6A}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D18BD028-BC33-444D-B9AC-5C7076758F6A}
- UpgradeCode
- {7D032E02-C708-4C10-B811-5F1ACFD673DB}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-amazon-ec2launch.ps1
$url = 'https://s3.amazonaws.com/amazon-ec2launch-v2/windows/amd64/2.5.2/AmazonEC2Launch.msi'
$sha256 = 'E24C45393E6EF4C2C148AA56C03C5FE8F94DA3F7762371FB298435E2D8FE0426'
$file = Join-Path $env:TEMP 'AmazonEC2Launch.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