Is there a way how to display the timeout in Installation Prompt?
E.g.:
Show-ADTInstallationPrompt -Message "Uninstallation of XXX is starting. The uninstallation process will start in $timeout seconds. You can speed it up by pressing OK." -ButtonRightText 'OK' -Timeout 100
But the variable $timeout obviously does not work...
I have just tried this using the following cmd line (slightly modified from yours):
$timeout = 100
$Title = "Uninstalling XXX"
$Subtitle = "Now!"
Show-ADTInstallationPrompt -Message "Uninstallation of XXX is starting. The uninstallation process will start in $($timeout) seconds. You can speed it up by pressing OK." -ButtonRightText 'OK' -Timeout $timeout -Title $Title -Subtitle $Subtitle
I think I didn't put my question correctly. I don't want this to be static information (I can do that easily directly in the parameters) but I want this to be dynamic value (a countdown) showing how much time is left before the window is closed and the installation continues.
Just like countdown in Show-ADTInstallationRestartPrompt
You can't just reference internal function variables like that and expect it to work. Adrian's suggestion of Show-ADTInstallationWelcome is the correct approach here.