• 企业400电话
  • 微网小程序
  • AI电话机器人
  • 电商代运营
  • 全 部 栏 目

    企业400电话 网络优化推广 AI电话机器人 呼叫中心 网站建设 商标✡知产 微网小程序 电商运营 彩铃•短信 增值拓展业务
    类似rpm包管理器的Windows Installer PowerShell Module简介

    一、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包详解及实例
    上一篇:PowerShell脚本源码输出到文件的最佳写法
    下一篇:PowerShell远程安装MSI安装包、EXE可执行程序的方法
  • 相关文章
  • 

    © 2016-2020 巨人网络通讯 版权所有

    《增值电信业务经营许可证》 苏ICP备15040257号-8

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