-
Notifications
You must be signed in to change notification settings - Fork 22
Install
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.
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
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
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
.
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.
Copyright (C) Microsoft Corporation. All rights reserved. Licensed under the MIT license. See LICENSE.txt in the project root for license information.
Commands
- Add-MSISource
- Clear-MSISource
- Edit-MSIPackage
- Export-MSIPatchXml
- Get-MSIComponentInfo
- Get-MSIComponentState
- Get-MSIFeatureInfo
- Get-MSIFileHash
- Get-MSIFileType
- Get-MSILoggingPolicy
- Get-MSIPatchInfo
- Get-MSIPatchSequence
- Get-MSIProductInfo
- Get-MSIProperty
- Get-MSIRelatedProductInfo
- Get-MSISharedComponentInfo
- Get-MSISource
- Get-MSISummaryInfo
- Get-MSITable
- Install-MSIAdvertisedFeature
- Install-MSIPatch
- Install-MSIProduct
- Measure-MSIProduct
- Remove-MSILoggingPolicy
- Remove-MSISource
- Repair-MSIProduct
- Set-MSILoggingPolicy
- Test-MSIProduct
- Uninstall-MSIPatch
- Uninstall-MSIProduct
Examples