3

I'm new to PowerShell and I'm trying installing Web Deploy 3.6 on my Azure VM using PowerShell but it's only installing the minimum features and I want to install All the Features available in the installer (Complete).

How can I do this?

I'm using a command something like this:

Start-Process -FilePath "C:\Windows\Temp\WebDeploy_amd64_en-US.msi" -ArgumentList "/quiet /passive"
Tyra
  • 57
  • 2
  • 9
  • Then have a look at the .msi's full command line options. – Abraham Zinala Mar 21 '22 at 12:39
  • According to [this answer](https://stackoverflow.com/a/1055861/45375), `ADDLOCAL=ALL` selects all features, though the design of a given `.msi` file may still exclude features that way. If that is a case, a _transform file_ is needed. – mklement0 Mar 21 '22 at 13:12

1 Answers1

2

Follow the below ways to install All features of .msi file

Using ALLLOCAL = ALL

Using ALLLOCAL = ALL command install all features in the MSI on the local disk. Which is already Commented by @mklement0

Start-Process -FilePath "C:\Windows\Temp\WebDeploy_amd64_en-US.msi" -ArgumentList "ADDLOCAL=ALL /quiet /qn"

Using InstallMode

InstallMode=Complete command which allows you to install all Features of the .msi file.

Start-Process -FilePath "C:\Windows\Temp\WebDeploy_amd64_en-US.msi" -ArgumentList "/quiet \qn InstallMode=Complete"

Note: Before using this InstallMode=Complete Command make sure to check the Vendor. Because It depends on how the MSI file was created by the vendor.

Few References

  1. PowerShell Install of Web Deploy 3.6 for Hosting Servers
  2. Powershell installing msi
  3. InstallMode & ADDLOCAL
Delliganesh Sevanesan
  • 4,146
  • 1
  • 5
  • 15
  • Nice, but re `InstallMode` you accidentally linked to the unrelated `Install-Module` PowerShell cmdlet. Also, the MSI [property reference](https://learn.microsoft.com/en-us/windows/win32/msi/property-reference) has no such (public) property (and if it did, it would be have to uppercased on the command line). Can you clarify further under what conditions `InstallMode=Complete` works, and perhaps give few examples? – mklement0 Mar 22 '22 at 12:29
  • Refer [here](https://www.codeproject.com/Questions/1276996/How-to-install-a-msi-file-with-custom-option-with) – Delliganesh Sevanesan Mar 28 '22 at 06:19
  • Thanks, but please update your answer directly, especially to fix the incorrect "InstallMode" link. The link in your latest comment doesn't tell you any more than what is already in the answer, unfortunately. – mklement0 Mar 28 '22 at 13:12