| by Arround The Web | No comments

How to Install .MSI Using PowerShell

PowerShell is a scripting Windows tool utilized to perform all the administrative tasks, such as installing applications on Windows, including the .MSI file. “.MSI” stands for “Microsoft Installer”. It is a Windows installation package similar to the “.exe” file. This package can be installed using PowerShell. More specifically, invoking a file for installation from PowerShell is similar to double-clicking a file from “File Explorer”.

This tutorial will present a thorough guide to install the .MSI file using PowerShell.

How to Install .MSI Using PowerShell?

To install the .MSI using PowerShell, check out any of the provided approaches:

Method 1: Install “.MSI” File in PowerShell in Standard Mode

To install the “.MSI” file using the “Start-Process” command, utilize the following command:

> Start-Process C:\New\7zip.msi

In the above-mentioned code:

  • We have used the “Start-Process” command to install more processes.
  • After that, specify the “.MSI” file path installer file to execute it:

As a result, the processing of installing the .MSI package will start in the background.

Method 2: Quietly Install “.MSI” File in PowerShell

The “.MSI” file can be installed quietly/silently using the “/quiet” argument with the relevant file path:

> Start-Process C:\New\7zip.msi -ArgumentList "/quiet"

In the above-mentioned command, we have assigned the “/quiet” to “-ArgumentList” to install the “.MSI” file silently:

That was all about installing .MSI using PowerShell.

Conclusion

To install the “.MSI” file using PowerShell, use the “Start-Process” cmdlet. After that, add the path of the installer and execute the complete command on the console. Moreover, the “.MSI” file can be installed via executing the installer in silent mode. This tutorial has demonstrated several methods to install the “.MSI” file using PowerShell in different ways.

Share Button

Source: linuxhint.com

Leave a Reply