0

I am new in power shell. i need to install file using powershell. My msi file location is C:\Amazon\AWSCLIV2.

I have tried with the powershell script

Start-Process C:\Amazon\AWSCLIV2.msi
msiexec /i "C:\Amazon\AWSCLIV2.msi" /qn+

When i executing the above script gets installation windows. ie; click to next to install(Displayed window) the above msi file(i need to remove this window). but actually i want, installation should works automatically when executing powershell script.

So i need to execute installation using powershell script.

Noufal P
  • 67
  • 1
  • 7

1 Answers1

0

Can you try this:

$arguments = "/i `"C:\Amazon\AWSCLIV2.msi`" /quiet"
Start-Process msiexec.exe -ArgumentList $arguments -Wait
Abraham Zinala
  • 4,267
  • 3
  • 9
  • 24