Skip to content

Install

Heath Stewart edited this page Feb 23, 2018 · 3 revisions

The recommend and easiest way to install the MSI module is using PackageManagement. PackageManagement, formerly known as "OneGet", was introduced in Windows 10 and, along with PowerShellGet, makes finding and installing modules easy. You can also install it downlevel to Windows 7 SP1 or newer, and it's included with PowerShell Core.

Install

Installing this module is easy with PackageManagement:

Install-Module MSI -Scope CurrentUser -Force

If you want to install this for all users, just drop -Scope CurrentUser (AllUsers is the default).

Introduced in PowerShellGet 1.6 , you can also install prerelease versions to try out and provide feedback early:

Install-Module MSI -Scope CurrentUser -AllowPrerelease -Force

Automating

One caveat is that the first time you use PowerShellGet, it may prompt to install NuGet and the -Force parameter to Install-Module will not prevent this. To avoid blocking automation, first install the NuGet provider:

Install-PackageProvider NuGet -Force

Upgrade

If you already have the MSI module installed, you can simply upgrade it:

Update-Module MSI -Force

As with Install-Module, you can upgrade to prerelease versions by also passing AllowPrerelease.

Legacy

Before PackageManagement, the easiest way to install the module was the psmsi.msi available from the releases page. You can install and upgrade the product using this Windows Installer package, but it only supports Windows PowerShell (not PowerShell Core), and when installed for all users makes changes to the $env:PSModulePath which other packages may modify and break.

This package is not recommended and may be removed for future versions of this module.

Clone this wiki locally