• 技术文章 >php教程 >PHP开发

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

    小葫芦小葫芦2017-01-07 14:05:56原创1007
    一、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.验证产品和补丁


    更多类似rpm包管理器的Windows Installer PowerShell Module简介相关文章请关注PHP中文网!

    声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理
    上一篇:制作nginx的RPM包教程 下一篇:制作PHP的RPM包详解及实例
    大前端线上培训班

    相关文章推荐

    • Laravel 5.3 学习笔记之 错误&日志• SQL Server 触发器• 一个嵌入式Linux系统的键盘驱动实现 (1)• Zend Framework教程之Zend_Config_Ini用法分析• PHP URL地址获取函数代码(端口等) 推荐

    全部评论我要评论

  • 取消发布评论发送
  • 1/1

    PHP中文网