Project Description

Exposes Windows Installer functionality to PowerShell, providing means to query installed product and patch information and to query views on packages.

PowerShell is a powerful command shell that pipes objects - not just text. Because of this ability, you can string practically unrelated commands together in many different ways to work on different types of objects, all built on .NET. You can use all the properties and methods of those objects passed through the pipeline instead of being limited by the text sent to you as with traditional command shells.

This Windows Installer module for PowerShell provides cmdlets ("command-lets") - similar to functions - to query package states, patches registered and applied to products, and more. You can use it to query Windows Installer products and patches installed on your system.

get-msiproductinfo | where { $_.Name -like "*Visual Studio*" }
You can even use it to determine which products installed a particular file on your system.

get-msicomponentinfo `
    | where { $_.path -eq 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe'} `
    | get-msiproductinfo
You can find more Examples and usage in the Documentation.

News

Version 2.1.4 supports PowerShell 2.0 and is the recommended download. PowerShell 2.0 is included in both Windows 7 by default, and Windows Server 2008 R2 as an optional feature.
Last edited Nov 5 at 2:41 AM by heaths, version 30

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987