This project is read-only.

Export-MSIPatchXml

Synopsis

Exports an XML representation of applicability information from a patch package.

Syntax

Export-MSIPatchXml [-Path] <string> [-FilePath] <string> [-Encoding <Encoding>] [-Formatted] [<CommonParameters>]

Description

Windows Installer defines an XML schema that is representational of a patch package - specfically its aplicability information. This allows administrators and bundle developers to not require downloading the patch package just to find out if its applicable or even already installed.

This XML file can be passed to Get-MSIPatchSequence along with other XML files or patch packages.

Parameters

-Encoding <System.Text.Encoding>

The encoding to use for the output XML file.

Required? false
Position named
Default value UTF8
Accepts pipeline input? false
Accept wildcard charactrs? false

-FilePath <String>

The path to the output XML file.

Required? true
Position 1
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? false

-Formatted <SwitchParameter>

Whether to indent the XML file.

Required? false
Position named
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? false

-Path <String>

The path to the patch package from which XML is exported.

Required? true
Position 0
Default value|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

Examples

Example 1

export-msipatchxml .\example.msp .\example.xml -formatted

Exports formatted XML from the example.msp patch package in the current directory.

Related Links

Last edited Jun 11, 2013 at 10:37 AM by heaths, version 2

Comments

No comments yet.