最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

類似rpm包管理器的Windows Installer PowerShell Module簡(jiǎn)介

 更新時(shí)間:2014年05月07日 09:55:28   作者:  
前兩篇文章分享了使用PowerShell安裝Window程序的一些技巧。但是都是基于兼容已有命令行的調(diào)用。今天分享一個(gè)第三方組件,讓你直接可以使用Cmdlet命令來查詢,安裝,修復(fù)Windows程序

一、Windows Installer PowerShell Module簡(jiǎn)介

Windows Installer PowerShell Module是一個(gè)開源項(xiàng)目,存放在微軟的開源項(xiàng)目網(wǎng)站CodePlex上,下面是其主頁(yè)上項(xiàng)目描述。

復(fù)制代碼 代碼如下:

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.查詢系統(tǒng)已經(jīng)安裝的產(chǎn)品和補(bǔ)丁
2.查詢?cè)窗惭b包信息
3.安裝,修復(fù)和卸載產(chǎn)品和補(bǔ)丁
4.驗(yàn)證產(chǎn)品和補(bǔ)丁

下載與詳細(xì)文檔,可以參考項(xiàng)目主頁(yè):http://psmsi.codeplex.com/

相關(guān)文章

最新評(píng)論

平邑县| 南汇区| 民和| 龙胜| 辽阳市| 漳浦县| 嘉定区| 新安县| 建瓯市| 建德市| 牡丹江市| 富顺县| 菏泽市| 金坛市| 深州市| 依安县| 灵台县| 贺州市| 兰西县| 新巴尔虎右旗| 从化市| 云霄县| 五原县| 同德县| 鱼台县| 东乌珠穆沁旗| 额尔古纳市| 虞城县| 忻州市| 益阳市| 阳泉市| 孟津县| 嘉义县| 象州县| 延长县| 大洼县| 通许县| 德江县| 洞头县| 汤阴县| 陆丰市|