Introduction to Windows Installer PowerShell module similar to the RPM Package Manager _powershell

Source: Internet
Author: User
Tags documentation

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.