主页 > 知识库 > 类似rpm包管理器的Windows Installer PowerShell Module简介

类似rpm包管理器的Windows Installer PowerShell Module简介

热门标签:如何申请400的电话呀 黑暗之魂3地图标注 地图标注审核周期 AI智能电销机器人坏处 合肥电销外呼系统供应商 沈阳ai电销智能机器人 电话机器人对家居行业帮助大吗 电商外呼系统排名 兰州电销机器人加盟

一、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/

您可能感兴趣的文章:
  • YUM解决RPM包安装依赖关系及yum工具介绍本地源配置方法详解
  • 强制删除rpm包的方法
  • Linux 中 RPM包 安装 查询 卸载命令小结及yum命令详解
  • 详解Linux 操作系统下安装rpm包的方法步骤
  • 解压rpm包的linux命令及rpm命令使用简介
  • 制作nginx的RPM包教程
  • 制作PHP的RPM包详解及实例

标签:河池 陇南 常州 通辽 黔南 河北 淮南 黔南

巨人网络通讯声明:本文标题《类似rpm包管理器的Windows Installer PowerShell Module简介》,本文关键词  类似,rpm,包,管理器,的,Windows,;如发现本文内容存在版权问题,烦请提供相关信息告之我们,我们将及时沟通与处理。本站内容系统采集于网络,涉及言论、版权与本站无关。
  • 相关文章
  • 下面列出与本文章《类似rpm包管理器的Windows Installer PowerShell Module简介》相关的同类信息!
  • 本页收集关于类似rpm包管理器的Windows Installer PowerShell Module简介的相关信息资讯供网民参考!
  • 推荐文章