Introduction to Windows Installer PowerShell module
Windows Installer PowerShell Module is an open source project, hosted on the Microsoft Open-source Project site CodePlex, below is a description of the project on its home page.
Copy Code code as follows:
Project Description
Exposes Windows Installer functionality to PowerShell, providing means to query installed product and patch D to query views on packages.
PowerShell is a powerful command shell that pipes objects-not just text. Because of this ability, your can string practically unrelated commands together in many different to ways on work t types of objects, all built on. NET. Can use the "all" properties and methods of those objects passed through the pipeline instead of being limited by the TE XT sent to and as with traditional command shells.
This is Windows Installer module for PowerShell provides cmdlets ("Command-lets")-Similar to functions-to query package s Tates, patches registered and applied to products, and more. can use it to query Windows Installer products and patches installed on your system.
Get-msiproductinfo | where {$_. Name-like ' *visual studio* '}
Can even use it to determine which products installed a particular file on your system.
Get-msicomponentinfo '
| where {$_. Path-like ' C:\Program files\*\common7\ide\devenv.exe '} '
| Get-msiproductinfo
And with the new cmdlets in 2.2.0 can also install, repair, and uninstall the products and patches complete with progress info Rmation, and warnings and errors direct to the pipeline.
Install-msiproduct. \example.msi-destination (Join-path $env:P rogramfiles example)
Can find more examples and usage in the documentation.
Second, Windows Installer PowerShell module main features:
1. Query the system has been installed products and patches
2. Query source installation package information
3. Install, repair and uninstall products and patches
4. Verify products and patches
Download and detailed documentation, you can refer to the project homepage: http://psmsi.codeplex.com/