Heim  >  Artikel  >  php教程  >  Einführung in das Windows Installer PowerShell-Modul ähnlich dem RPM-Paketmanager

Einführung in das Windows Installer PowerShell-Modul ähnlich dem RPM-Paketmanager

高洛峰
高洛峰Original
2017-01-07 14:05:562380Durchsuche

1. Einführung in das Windows Installer PowerShell-Modul

Das Windows Installer PowerShell-Modul ist ein Open-Source-Projekt, das auf der Open-Source-Projektwebsite CodePlex gespeichert ist. Im Folgenden finden Sie die Projektbeschreibung auf der Homepage.

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.

2. Hauptfunktionen des Windows Installer PowerShell-Moduls:

1. Fragen Sie die auf dem System installierten Produkte und Patches ab
2 🎜>3. Produkte und Patches installieren, reparieren und deinstallieren


Weitere verwandte Artikel ähnlich der Einführung des Windows Installer PowerShell-Moduls von RPM-Paketmanager, bitte achten Sie auf PHP Chinese Net!

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn