类似rpm包管理器的Windows Installer PowerShell Module简介
一、Windows Installer PowerShell Module简介
Windows Installer PowerShell Module是一个开源项目,存放在微软的开源项目网站CodePlex上,下面是其主页上项目描述。
Project DescriptionExposes 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/
您可能感兴趣的文章:
- Windows平台PowerShell简介
- 【WINDOWS】hyper-v下自动创建VM_powershell脚本实现_powershell简介
- ubuntu13.04版本下安装RabbitVCS,类似windows的TortoiseSVN
- Uninstall AVG Anti-Virus Free Edition with WindowsUninstaller.Org Removal Tips
- ImportError: No module named XXX 错误解决方法(Windows)
- Uninstall Picasa with WindowsUninstaller.Org Removal Tips
- [2月14日的脚本] 清除 Windows 8中临时文件 (PowerShell)
- 使用rewrite 让php 实现类似asp.net 的IHttpModule 进行带参数js文件的参数获取
- Windows/Linux下磁盘使用的图形化工具简介
- Windows 管理员应当知道的10个PowerShell 命令
- java编写service详细笔记 - centos7.2实战笔记(windows类似就不在重复了)
- mac如何连接远程linux,类似windows上的putty和winscp
- Windows PowerShell Backtick `
- 一个免费的windows 程序installer
- windows7下python2.6 + mysql5.5(No module named MySQLdb/DLL load failed/from sets import ImmutableSet)
- Uninstall SumatraPDF with WindowsUninstaller.Org Removal Tips
- [3月1日的脚本]为Windows 8的启动项添加项(PowerShell)
- PowerShell 监控Windows打印服务器
- Uninstall ooVoo with WindowsUninstaller.Org Removal Tips