AWS Command Line Interface (CLI) Silent Install (How-To Guide)


The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of AWS Command Line Interface (CLI) from the command line using the MSI installer.

How to Install the AWS Command Line Interface (CLI) Silently

AWS Command Line Interface (CLI) Silent Install (MSI)

  1. Navigate to: https://aws.amazon.com/cli/
  2. Download the AWSCLIV2.msi to a folder created at (C:\Downloads)
  3. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  4. Navigate to the C:\Downloads folder
  5. Enter the following command: MsiExec.exe /i AWSCLIV2.msi /qn
  6. Press Enter

After a few moments you will find AWS Command Line Interface (CLI) entries in the Installation Directory and Programs and Features in the Control Panel.

Software Title:AWS Command Line Interface (CLI)
Vendor:Amazon Web Services
Architecture:x86_x64
Installer Type:MSI
Silent Install Switch:MsiExec.exe /i AWSCLIV2.msi /qn
Silent Uninstall Switch:MsiExec.exe /x AWSCLIV2.msi /qn
Repair Command:MsiExec.exe /fa AWSCLIV2.msi /qn
Download Link:https://aws.amazon.com/cli/
PowerShell Script:https://silentinstallhq.com/aws-command-line-interface-cli-install-and-uninstall-powershell/

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

Create an Installation Log File

The AWS Command Line Interface (CLI) installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.

AWS Command Line Interface (CLI) Silent Install with Logging (MSI)

MsiExec.exe /i AWSCLIV2.msi /qn /L*v "%WINDIR%\Temp\AWSCLI-Install.log"

How to Uninstall AWS Command Line Interface (CLI) Silently

Check out the AWS Command Line Interface (CLI) Install and Uninstall (PowerShell) post for a scripted solution.

  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter one of the following commands:
VersionAWS Command Line Interface (CLI) Silent Uninstall String
2.2.2.0MsiExec.exe /x {D15D6F16-6BCF-4AAB-871A-01ACB341A635} /qn
2.2.1.0MsiExec.exe /x {4A0BCA56-378D-4DA3-A65E-422277ACCC11} /qn
2.2.0.0MsiExec.exe /x {1AC9D537-BF7C-4138-85F3-518B2C68B96C} /qn
2.1.39.0MsiExec.exe /x {D980A3CB-372A-4C70-BFD6-238A7C2704D1} /qn
2.1.38.0MsiExec.exe /x {CE0DD19E-25AE-4885-B1C0-6A0200378929} /qn
2.1.37.0MsiExec.exe /x {F860FDC8-1A74-4450-8535-1EB4AF03724E} /qn
2.1.36.0MsiExec.exe /x {D920C27C-4F6A-48D7-AFDC-A2DA81A380AB} /qn
2.1.35.0MsiExec.exe /x {14C758A8-ABFA-406A-BEA1-18E4453F2F49} /qn
2.1.34.0MsiExec.exe /x {24AD8DA3-7D54-4BE3-9D52-7E8E7A351872} /qn
2.1.33.0MsiExec.exe /x {58C60093-5BFC-414E-B075-9CF724DE4063} /qn
2.1.32.0MsiExec.exe /x {F1F41583-93F0-4D4B-A3A7-E2BFBC17DE8F} /qn
2.1.29.0MsiExec.exe /x {1F6D376A-6070-43EE-8751-24ED7EE488F1} /qn
2.1.28.0MsiExec.exe /x {3FBA7816-6625-48A7-AF15-DD81FC80A707} /qn
2.1.27.0MsiExec.exe /x {9C12DAAA-6C73-421E-AA09-6D8E6C3B9B79} /qn
2.1.26.0MsiExec.exe /x {395B9A32-73FC-4CDE-B099-0AE787F9545C} /qn
2.1.25.0MsiExec.exe /x {2538E9A1-2755-4D49-8191-85A7C8AA71CE} /qn
2.1.24.0MsiExec.exe /x {5A86BE8C-D52F-401A-B805-4D3629B1D41E} /qn
2.1.23.0MsiExec.exe /x {59AB7164-FE10-4A48-9106-E8585CB4628D} /qn
2.1.22.0MsiExec.exe /x {7E7C6281-4AA8-4FB1-A9C1-C1820A7F6F5D} /qn
2.1.21.0MsiExec.exe /x {7712A00E-F2AC-4458-9834-FB1A83E4398A} /qn
2.1.20.0MsiExec.exe /x {6518553E-D8CE-43CA-8F26-7DD171281710} /qn
2.1.19.0MsiExec.exe /x {26564F0E-E9FD-4C95-9FC7-04327F6345C2} /qn
2.1.18.0MsiExec.exe /x {B362C5C4-4019-41E7-9362-1B35AF9D4865} /qn
2.1.17.0MsiExec.exe /x {BE44BEF5-BE86-4DA6-AEF7-63F50E58ADE4} /qn
2.1.16.0MsiExec.exe /x {C8A059A8-635D-4D44-B22E-4545BFEAA0AE} /qn
2.1.15.0MsiExec.exe /x {A3B04BF9-21F5-4FFB-827E-FCBCAFFACC7B} /qn
2.1.14.0MsiExec.exe /x {5D664A43-DDC8-4929-B172-D2B38D17FC9B} /qn
2.1.13.0MsiExec.exe /x {6C284D09-BE98-4A3E-95D4-FB1166F8A931} /qn
2.1.12.0MsiExec.exe /x {A02BF0A0-D7A2-4324-AB89-517D32320AAA} /qn
2.1.11.0MsiExec.exe /x {84E69B0D-91C2-42A1-817F-6FFA31482C90} /qn
2.1.10.0MsiExec.exe /x {87BC99DF-D7E5-4E9F-81BA-DE4AEFAD6E7E} /qn

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.

Recent Posts