Skip to main content

Get-MsiExitCodeMessage

SYNOPSIS

Get message for MSI error code

SYNTAX

Get-MsiExitCodeMessage [-MsiExitCode] <Int32> [<CommonParameters>]

DESCRIPTION

Get message for MSI error code by reading it from msimsg.dll

EXAMPLES

EXAMPLE 1

Get-MsiExitCodeMessage -MsiErrorCode 1618

PARAMETERS

-MsiExitCode

{{ Fill MsiExitCode Description }}

Type: Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

You cannot pipe objects to this function.

OUTPUTS

System.String

Returns the message for the MSI error code.

NOTES

This is an internal script function and should typically not be called directly.

http://msdn.microsoft.com/en-us/library/aa368542(v=vs.85).aspx

https://psappdeploytoolkit.com