< Back

Export-MSIPatchXml

Sat Jan 18, 2020 4:43 pm

NAME 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 - specifically its

applicability information. This allows administrators and bundle developers to not require downloading the patch

package just to find out if it's applicable or even already installed.



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





PARAMETERS

-Encoding <Encoding>

The encoding to use for the output XML file.



Required? false

Position? named

Default value UTF8

Accept pipeline input? False

Accept wildcard characters? false



-FilePath <String>

The path to the output XML file.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Formatted [<SwitchParameter>]

Whether to indent the XML file.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Path <String>

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



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









-------------------------- EXAMPLE 1 --------------------------



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



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



RELATED LINKS

Get-MSIPatchSequence