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/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-the-aws-command-line-interface-cli-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 AWS Command Line Interface (CLI) 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 the AWS Command Line Interface (CLI) Silently

Check out the following posts for a scripted solution:

AWS Command Line Interface (CLI) Install and Uninstall (PowerShell)
AWS Command Line Interface (CLI) Silent Uninstall (PowerShell)
  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.7.31.0MsiExec.exe /x {0E14E2BB-9092-4C38-92DA-B729F6DB5049} /qn
2.7.30.0MsiExec.exe /x {5A7606F1-9422-4B81-B19A-82B16351A305} /qn
2.7.29.0MsiExec.exe /x {8B928B6A-9FED-4424-8F1C-E1D4067F6986} /qn
2.7.28.0MsiExec.exe /x {FD984712-3009-49FB-BB16-2198E63755CB} /qn
2.7.27.0MsiExec.exe /x {784310C6-C275-4660-BF68-B7C0B16B1869} /qn
2.7.26.0MsiExec.exe /x {8940934E-4E32-4BAA-AE09-3DA736664DA4} /qn
2.7.25.0MsiExec.exe /x {09A77789-DB34-4FC7-9F90-7CA21EDF4990} /qn
2.7.24.0MsiExec.exe /x {01CCB9EC-7FA4-494D-9EEC-395C080CAA7C} /qn
2.7.23.0MsiExec.exe /x {105CC1AF-12FE-4CF9-A3A9-4BA62A4E025A} /qn
2.7.22.0MsiExec.exe /x {E2492DAD-464A-4DE2-8E35-037F6F0D6FF7} /qn
2.7.21.0MsiExec.exe /x {6775FBDA-11F4-41EE-838E-374BFBB3B2F7} /qn
2.7.20.0MsiExec.exe /x {000C554D-C73A-4946-BB6C-BFCD1BD1AC50} /qn
2.7.19.0MsiExec.exe /x {3B3444ED-2B51-47CB-B356-C81DF0B0A684} /qn
2.7.18.0MsiExec.exe /x {62675187-F10F-4CC6-8B3D-A979315FF7E6} /qn
2.7.17.0MsiExec.exe /x {3FFDD071-A5B3-45B3-8207-C540E500B038} /qn
2.7.16.0MsiExec.exe /x {94E8CA5C-D5C5-40CA-8350-A6429120341C} /qn
2.7.15.0MsiExec.exe /x {C47E60B7-923C-49D2-92B5-9657D0DAFCBF} /qn
2.7.14.0MsiExec.exe /x {6E7000A2-FF7E-4169-A2D2-CE718F51289E} /qn
2.7.13.0MsiExec.exe /x {9C039B4F-92DC-4B51-81BD-8AF5A005D9F3} /qn
2.7.12.0MsiExec.exe /x {A72A6287-EE02-4796-A315-06E964218A7A} /qn
2.7.11.0MsiExec.exe /x {BB3D7D58-FC66-4DA2-AB97-4437EFECFEC1} /qn
2.7.10.0MsiExec.exe /x {42295A35-F7E8-497A-AE13-0810A297C3DD} /qn
2.7.9.0MsiExec.exe /x {7A22772C-783D-4E70-B60B-5DA58BDDCA06} /qn
2.7.8.0MsiExec.exe /x {0AE77EDB-700E-412E-B77D-3F45BBF5FF6D} /qn
2.7.7.0MsiExec.exe /x {EF2417B1-40F2-473F-A014-55384C93C5FF} /qn
2.7.6.0MsiExec.exe /x {F1028182-2DE3-44B2-B89F-92266483D3E7} /qn
2.7.5.0MsiExec.exe /x {DD58A35E-66DA-47FF-BDB2-6E8A73E24A66} /qn
2.7.4.0MsiExec.exe /x {E11FD4C7-7A42-4033-877D-04719C1D9F37} /qn
2.7.3.0MsiExec.exe /x {ABA2482D-E93A-4B8D-880F-CA0015CE8E7D} /qn
2.7.2.0MsiExec.exe /x {EC3E01DF-1FAD-4698-A530-59E136548CAE} /qn
2.7.1.0MsiExec.exe /x {C6722E5F-8B25-4779-82E0-99CE0673AA0A} /qn
2.7.0.0MsiExec.exe /x {758FF891-873F-4E18-88A0-AF56AC8F4366} /qn
2.6.4.0MsiExec.exe /x {5B125862-5F2E-4605-8926-7245EE255A33} /qn
2.6.3.0MsiExec.exe /x {7519B6DF-4E23-482E-A8F0-C122FF69702F} /qn
2.6.2.0MsiExec.exe /x {BC12CB36-27D7-4ED7-B55B-09D29F1F095A} /qn
2.6.1.0MsiExec.exe /x {7C2125D5-8047-409F-86D7-44ECBC349F3D} /qn
2.6.0.0MsiExec.exe /x {B33A75F4-A8A7-4BDA-84C9-8C6E9BAE4DBF} /qn
2.5.8.0MsiExec.exe /x {250F9F91-FE06-4E43-9744-59AE5E24970F} /qn
2.5.7.0MsiExec.exe /x {AFC9F9AD-9C69-4609-AC4C-EB92F3E8AA6E} /qn
2.5.6.0MsiExec.exe /x {315E1653-8F5E-40A8-8F4F-61A195B00597} /qn
2.5.5.0MsiExec.exe /x {E8A8381D-D5DC-4BC6-935D-6069BE311429} /qn
2.5.4.0MsiExec.exe /x {ECD2ECCD-627E-45F2-9A8F-2F02B164A0DD} /qn
2.5.3.0MsiExec.exe /x {396AF02A-C7A8-4961-BA7F-2C5358BC975D} /qn
2.5.2.0MsiExec.exe /x {B773D866-6C76-48F6-A901-E11D63EDC3CE} /qn
2.5.1.0MsiExec.exe /x {B0D17DCE-539A-40B3-9651-AFB2B7D7E15F} /qn
2.5.0.0MsiExec.exe /x {522EC47D-4779-4E77-BEE1-A6554C59E0E8} /qn
2.4.29.0MsiExec.exe /x {7983D313-929C-43D3-9B08-366A2A4A0146} /qn
2.4.28.0MsiExec.exe /x {94E32BCD-21FA-4C96-9FEA-A11F4F31169E} /qn
2.4.27.0MsiExec.exe /x {86344409-3457-4829-9797-F75FC8FDC698} /qn
2.4.26.0MsiExec.exe /x {B5926E4E-E7B7-42DB-9185-77A69CA28630} /qn
2.4.25.0MsiExec.exe /x {B4121E31-AFE0-406C-B435-3E15BE51ECE0} /qn
2.4.24.0MsiExec.exe /x {7F74E51C-8A58-4930-8426-2B8AEB6C1334} /qn
2.4.23.0MsiExec.exe /x {E5CA2E4B-4648-41AD-B49A-D63CC34B0DAC} /qn
2.4.22.0MsiExec.exe /x {94831757-2F24-458B-B586-89602FF2FC76} /qn
2.4.21.0MsiExec.exe /x {14D76A7E-446B-4BD1-8DDB-2DB039C2378B} /qn
2.4.20.0MsiExec.exe /x {1EA9DFAD-DC24-4A5A-B46A-2BC635744D68} /qn
2.4.19.0MsiExec.exe /x {07CAF4F9-FFAB-47DE-8362-768B4D6B7C56} /qn
2.4.18.0MsiExec.exe /x {A43C97FE-4E88-4DC8-AD01-4352984AB0B2} /qn
2.4.17.0MsiExec.exe /x {961E5794-AC49-4807-BEB9-CCC353BD5879} /qn
2.4.16.0MsiExec.exe /x {E6AEC53B-EB90-473E-953C-E1DFE9104E0D} /qn
2.4.15.0MsiExec.exe /x {BA992602-F30D-4E39-94A4-000107E4E704} /qn
2.4.14.0MsiExec.exe /x {C401A566-DAEA-4850-B174-8E434E5A856F} /qn
2.4.13.0MsiExec.exe /x {D3AB47CD-C25D-4520-99DA-35FAB76A6F3A} /qn
2.4.12.0MsiExec.exe /x {951D0E28-D709-4424-BC62-98E169D9AA69} /qn
2.4.11.0MsiExec.exe /x {3B64874B-9537-4D3E-9D6D-19BF110D3D94} /qn
2.4.10.0MsiExec.exe /x {D6A52644-3C25-4D44-ADB0-F7D255E873FC} /qn
2.4.9.0MsiExec.exe /x {A7FEB1BB-86D9-43BB-92D9-E38C576EE93B} /qn
2.4.8.0MsiExec.exe /x {D951BB04-43AF-427E-A7D8-C0DBBCCA8CB8} /qn
2.4.7.0MsiExec.exe /x {213F6A0B-7718-4F8A-8014-0D33DEF993B9} /qn
2.4.6.0MsiExec.exe /x {A65774DE-E695-4D3C-84D5-705592A51F0C} /qn
2.4.5.0MsiExec.exe /x {105DE2AC-4117-413F-A241-2020FD866043} /qn
2.4.4.0MsiExec.exe /x {AE90F047-0225-4C92-82F5-585E268C6917} /qn
2.4.3.0MsiExec.exe /x {F68FEB2A-8F44-494B-A0B9-1D58E24B4D2C} /qn
2.4.2.0MsiExec.exe /x {027C13AA-5BAC-4B57-B795-43D58C566BEF} /qn
2.4.1.0MsiExec.exe /x {E555F614-9478-48BA-9CE9-6B5EDE23FC3C} /qn
2.4.0.0MsiExec.exe /x {B0BA5C31-199D-45F5-A874-7B308C8A9503} /qn
2.3.7.0MsiExec.exe /x {1177C9E7-E5FE-46E5-A1F9-E3A635C40BA6} /qn
2.3.6.0MsiExec.exe /x {FD9A5176-7373-41AE-9FEB-588E535CBCB3} /qn
2.3.5.0MsiExec.exe /x {29C8468E-93BC-435C-88CE-C6052FAAF72A} /qn
2.3.4.0MsiExec.exe /x {4BF5AEF3-676D-46D3-A72F-C20705F879AF} /qn
2.3.0.0MsiExec.exe /x {CF3B49F0-E06F-4A04-937D-D2CB8A24EE7E} /qn
2.2.47.0MsiExec.exe /x {4BD06636-D67E-4316-8C20-E791F5719BE4} /qn
2.2.46.0MsiExec.exe /x {B1D5534C-0821-4FA9-857B-2971BA574052} /qn
2.2.45.0MsiExec.exe /x {4A68D5EA-93D5-4B7F-88E5-2DD411404F71} /qn
2.2.44.0MsiExec.exe /x {C438A72B-296D-4F47-ADF6-83CEBAE154ED} /qn
2.2.43.0MsiExec.exe /x {BF25C84C-B098-4386-99E7-A3D6DE575526} /qn
2.2.42.0MsiExec.exe /x {F04D985C-0F43-4FE5-B73E-08B3775D3BFC} /qn
2.2.41.0MsiExec.exe /x {58E4827B-1CE5-493F-B289-541A847AEF54} /qn
2.2.40.0MsiExec.exe /x {BA11A372-0F42-4BF3-879C-B3F5D626365F} /qn
2.2.39.0MsiExec.exe /x {47207055-B521-4B29-A57A-144DF1F9D3B5} /qn
2.2.38.0MsiExec.exe /x {B3CEBB4B-4234-42F1-B4AE-A4D6E1D0ACCB} /qn
2.2.37.0MsiExec.exe /x {1B767DC7-230E-4FCD-8EF4-C9C0BD055AD6} /qn
2.2.36.0MsiExec.exe /x {2DA5E551-FA31-42BB-B4B6-F06AD63DC302} /qn
2.2.35.0MsiExec.exe /x {017EE6AA-A176-4918-84FB-BC42D2801E87} /qn
2.2.34.0MsiExec.exe /x {B7361949-BADF-4046-8F4A-FA24E3BEB335} /qn
2.2.33.0MsiExec.exe /x {DF9ACE57-B62A-4A5B-BEA3-FC070249D844} /qn
2.2.32.0MsiExec.exe /x {D93C89B2-C9DD-4E7C-92C3-2FE3ABABBB4E} /qn
2.2.31.0MsiExec.exe /x {50773B8C-ED99-4ECE-9258-797B3AA8BD73} /qn
2.2.30.0MsiExec.exe /x {33657591-8E9A-41A9-9166-9BA2278995DB} /qn
2.2.29.0MsiExec.exe /x {38691E80-B8EA-444E-A275-BA8C6DE56A44} /qn
2.2.28.0MsiExec.exe /x {BA782C84-F08C-4DEB-81D1-95BFB8887F5C} /qn
2.2.27.0MsiExec.exe /x {00931040-0D9C-4133-8BCF-560E074CF21B} /qn
2.2.26.0MsiExec.exe /x {BC1C2929-936A-4C54-AC40-8F996BA9A862} /qn
2.2.25.0MsiExec.exe /x {409D1B1E-B0EF-4C43-A63A-603E02B72597} /qn
2.2.24.0MsiExec.exe /x {8F222C30-F725-4A80-81F7-1FCB64B3CB10} /qn
2.2.23.0MsiExec.exe /x {33833D88-9E08-4D2E-B35B-ECA79CB2702D} /qn
2.2.22.0MsiExec.exe /x {780CBF9E-6A7F-4C9E-997C-90A69C4D107F} /qn
2.2.21.0MsiExec.exe /x {F5F692A7-CA87-4303-8B5F-F46EF4996C1D} /qn
2.2.20.0MsiExec.exe /x {45CEDA50-CA8F-4345-9ED1-E0DB1CA8D922} /qn
2.2.19.0MsiExec.exe /x {CBFC876C-E75D-4206-B907-8EB4EDFABA28} /qn
2.2.18.0MsiExec.exe /x {4F336707-647A-4A9C-A3C2-C320A61B5856} /qn
2.2.17.0MsiExec.exe /x {3A825382-37D0-4049-A249-402A044B4A37} /qn
2.2.16.0MsiExec.exe /x {B334F610-8C99-4654-83B0-D8B59050DA59} /qn
2.2.15.0MsiExec.exe /x {2172FFCA-AD7D-43A8-B2FC-32BC5B28713B} /qn
2.2.14.0MsiExec.exe /x {EC03E378-49AD-4EC4-8EBF-344D8F35A986} /qn
2.2.13.0MsiExec.exe /x {7BD1419A-C440-4BAF-8124-18BAC6FFFB9B} /qn
2.2.12.0MsiExec.exe /x {55E012DB-5B35-455E-A7F0-55B917EDC59E} /qn
2.2.11.0MsiExec.exe /x {532C4784-9968-4C99-BCD9-F75CD769B2E3} /qn
2.2.10.0MsiExec.exe /x {AE716D6F-721D-49AA-BF52-92F32BAB8CD6} /qn
2.2.9.0MsiExec.exe /x {5B05FB9C-C9EF-4959-8182-800D309A3C9B} /qn
2.2.8.0MsiExec.exe /x {23056360-FA3A-447E-9F4B-BA5E5D28E789} /qn
2.2.7.0MsiExec.exe /x {36AAF724-4F8B-48BB-84C3-CE1DF1581D15} /qn
2.2.6.0MsiExec.exe /x {734594B1-BF7A-4DCC-930D-0490D72D6769} /qn
2.2.5.0MsiExec.exe /x {BD3F37EB-7073-424E-B2DE-8113EE8F0451} /qn
2.2.4.0MsiExec.exe /x {E05E346A-7192-40B0-8B14-113C19A5125B} /qn
2.2.3.0MsiExec.exe /x {94D891DE-94D4-49CD-BEA8-581F74F27F31} /qn
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.