国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > PowerShell > 正文

類似rpm包管理器的Windows Installer PowerShell Module簡介

2020-10-29 21:09:25
字體:
來源:轉載
供稿:網友

一、Windows Installer PowerShell Module簡介

Windows Installer PowerShell Module是一個開源項目,存放在微軟的開源項目網站CodePlex上,下面是其主頁上項目描述。

復制代碼 代碼如下:

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.


二、Windows Installer PowerShell Module主要功能:

1.查詢系統已經安裝的產品和補丁
2.查詢源安裝包信息
3.安裝,修復和卸載產品和補丁
4.驗證產品和補丁

下載與詳細文檔,可以參考項目主頁:http://psmsi.codeplex.com/

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 游戏| 青阳县| 商都县| 三河市| 云南省| 榆中县| 茂名市| 海林市| 清远市| 丰顺县| 永善县| 廊坊市| 盖州市| 托克托县| 额尔古纳市| 嘉兴市| 汝南县| 庆元县| 玉龙| 平阴县| 油尖旺区| 会东县| 峡江县| 吐鲁番市| 台安县| 武宁县| 广德县| 朝阳区| 安国市| 娄烦县| 改则县| 涪陵区| 青阳县| 恭城| 尼木县| 竹溪县| 抚顺市| 冕宁县| 洪湖市| 英德市| 呈贡县|