Show-InstallationPrompt
SYNOPSISโ
Displays a custom installation prompt with the toolkit branding and optional buttons.
SYNTAXโ
Show-InstallationPrompt [[-Title] <String>] [[-Message] <String>] [[-MessageAlignment] <String>]
[[-ButtonRightText] <String>] [[-ButtonLeftText] <String>] [[-ButtonMiddleText] <String>] [[-Icon] <String>]
[-NoWait] [-PersistPrompt] [[-MinimizeWindows] <Boolean>] [[-Timeout] <Int32>] [[-ExitOnTimeout] <Boolean>]
[[-TopMost] <Boolean>] [<CommonParameters>]
DESCRIPTIONโ
Any combination of Left, Middle or Right buttons can be displayed. The return value of the button clicked by the user is the button text specified.
EXAMPLESโ
EXAMPLE 1โ
Show-InstallationPrompt -Message 'Do you want to proceed with the installation?' -ButtonRightText 'Yes' -ButtonLeftText 'No'
EXAMPLE 2โ
Show-InstallationPrompt -Title 'Funny Prompt' -Message 'How are you feeling today?' -ButtonRightText 'Good' -ButtonLeftText 'Bad' -ButtonMiddleText 'Indifferent'
EXAMPLE 3โ
Show-InstallationPrompt -Message 'You can customize text to appear at the end of an install, or remove it completely for unattended installations.' -Icon Information -NoWait
PARAMETERSโ
-Titleโ
Title of the prompt. Default: the application installation name.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: $installTitle
Accept pipeline input: False
Accept wildcard characters: False
-Messageโ
Message text to be included in the prompt
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-MessageAlignmentโ
Alignment of the message text. Options: Left, Center, Right. Default: Center.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: Center
Accept pipeline input: False
Accept wildcard characters: False
-ButtonRightTextโ
Show a button on the right of the prompt with the specified text
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ButtonLeftTextโ
Show a button on the left of the prompt with the specified text
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ButtonMiddleTextโ
Show a button in the middle of the prompt with the specified text
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Iconโ
Show a system icon in the prompt. Options: Application, Asterisk, Error, Exclamation, Hand, Information, None, Question, Shield, Warning, WinLogo. Default: None
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-NoWaitโ
Specifies whether to show the prompt asynchronously (i.e. allow the script to continue without waiting for a response). Default: $false.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-PersistPromptโ
Specify whether to make the prompt persist in the center of the screen every couple of seconds, specified in the AppDeployToolkitConfig.xml. The user will have no option but to respond to the prompt - resistance is futile!
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-MinimizeWindowsโ
Specifies whether to minimize other windows when displaying prompt. Default: $false.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 8
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Timeoutโ
Specifies the time period in seconds after which the prompt should timeout. Default: UI timeout value set in the config XML file.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 9
Default value: $configInstallationUITimeout
Accept pipeline input: False
Accept wildcard characters: False
-ExitOnTimeoutโ
Specifies whether to exit the script if the UI times out. Default: $true.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 10
Default value: True
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: 11
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.