Home > php教程 > PHP开发 > body text

Introduction to Windows Installer PowerShell Module similar to rpm package manager

高洛峰
Release: 2017-01-07 14:05:56
Original
2394 people have browsed it

1. Introduction to Windows Installer PowerShell Module

Windows Installer PowerShell Module is an open source project stored on Microsoft's open source project website CodePlex. The following is the project description on its homepage.

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 -like 'C:\Program Files\*\Common7\IDE\devenv.exe'} `
    | get-msiproductinfo
And with new cmdlets in 2.2.0 you can also install, repair, and uninstall products and patches complete with progress information, and warnings and errors direct to the pipeline.
install-msiproduct .\example.msi -destination (join-path $env:ProgramFiles Example)
You can find more Examples and usage in the Documentation.
Copy after login

2. Main functions of Windows Installer PowerShell Module:

1. Query the products and patches that have been installed on the system
2. Query the source installation package information
3. Install and repair And uninstall products and patches
4. Verify products and patches


For more related articles similar to the Windows Installer PowerShell Module introduction of the rpm package manager, please pay attention to the PHP Chinese website!


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!