• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell
您的位置:首页 > 脚本语言 >PowerShell > 类似rpm包管理器的Windows Installer PowerShell Module简介

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

作者: 字体:[增加 减小] 来源:互联网

通过本文主要向大家介绍了rpm,rpm是什么单位,rpm什么意思,rpm命令,rpm安装等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com

一、Windows Installer PowerShell Module简介

Windows Installer PowerShell Module是一个开源项目,存放在微软的开源项目网站CodePlex上,下面是其主页上项目描述。

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.
</div>


二、Windows Installer PowerShell Module主要功能:

1.查询系统已经安装的产品和补丁
2.查询源安装包信息
3.安装,修复和卸载产品和补丁
4.验证产品和补丁

下载与详细文档,可以参考项目主页:http://psmsi.codeplex.com/

</div>

您可能想查找下面的文章:

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

相关文章

  • Windows Azure VM上配置FTP服务器
  • PowerShell实现参数互斥示例
  • Powershell批量给文件增加前辍实例
  • Powershell使用WINDOWS事件日志记录程序日志
  • powershell操作word详解
  • 25个常用PowerShell命令总结
  • Powershell生成Windows密码算法简单学习
  • PowerShell查找数组内容、搜索数组、查询数组的方法
  • PowerShell中调用.NET对象的静态方法、静态属性和类方法、类属性例子
  • Powershell改变脚本执行优先权的代码分享

文章分类

  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell

最近更新的内容

    • powershell解决win10开始菜单和通知中心无法打开
    • Powershell中使用WMI工具例子
    • PowerShell使用Clear-Content命令删除、清空文件内容的例子
    • 用PowerShell代替批处理吧!
    • windows Powershell 快速编辑模式和标准模式
    • PowerShell脚本实现检测网络内主机类型
    • PowerShell中调用外部程序和进程操作命令例子
    • Powershell小技巧之使用WMI查询插上的U盘
    • PowerShell小技巧之获取TCP响应(类Telnet)
    • PowerShell添加本地账户脚本分享

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有