Show-InstallationProgress
SYNOPSISโ
Displays a progress dialog in a separate thread with an updateable custom message.
SYNTAXโ
Show-InstallationProgress [[-StatusMessage] <String>] [[-WindowLocation] <String>] [[-TopMost] <Boolean>]
[<CommonParameters>]
DESCRIPTIONโ
Create a WPF window in a separate thread to display a marquee style progress ellipse with a custom message that can be updated.
The status message supports line breaks.
The first time this function is called in a script, it will display a balloon tip notification to indicate that the installation has started (provided balloon tips are enabled in the configuration).
EXAMPLESโ
EXAMPLE 1โ
Show-InstallationProgress
Uses the default status message from the XML configuration file.
EXAMPLE 2โ
Show-InstallationProgress -StatusMessage 'Installation in Progress...'
EXAMPLE 3โ
Show-InstallationProgress -StatusMessage "Installation in Progress...`r`nThe installation may take 20 minutes to complete."
EXAMPLE 4โ
Show-InstallationProgress -StatusMessage 'Installation in Progress...' -WindowLocation 'BottomRight' -TopMost $false
PARAMETERSโ
-StatusMessageโ
The status message to be displayed. The default status message is taken from the XML configuration file.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: $configProgressMessageInstall
Accept pipeline input: False
Accept wildcard characters: False
-WindowLocationโ
The location of the progress window. Default: center of the screen.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False
-TopMostโ
Specifies whether the progress window should be topmost. Default: $true.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: True
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.