4.1.0 Show-ADTInstallationPrompt - Feedback

just for information

Praise to the developers
PSADT 4.1.0
If it works and stays there until the time expires or you press the OK button, only then will it install. However, you will need to set Show-ADTInstallationProgress again.

 #region Wait for Install
    Write-ADTLogEntry -Message "Message befor Installation"
	# nur Deutsch
    if ($MyLanguage -like "de-DE"  ) 
        {
        $MyMessage="10 min wait"
        }

    # nur French
    if ($MyLanguage -like "fr-Fr" ) 
        {
        $MyMessage="10 min wait"
        }

    if ($MyLanguage -ne "de-DE" -and $MyLanguage -ne "fr-Fr" ) {$MyMessage="noLanguage"}
 
    $MyUser=(Get-ADTLoggedOnUser).Username
    Write-ADTLogEntry -Message "angemelderter User: $MyUser"
    Write-ADTLogEntry -Message "Sprache: $MyLanguage" 
    Write-ADTLogEntry -Message "$MyMessage" 
    if ($MyUser) {if (!$adtSession.UseDefaultMsi) {Show-ADTInstallationPrompt -Title 'Installation - Hälg Group IT Helpdesk'  -Message $MyMessage -ButtonRightText 'OK' -Icon Information -Timeout 600} }

    ## Show Progress Message after Wait
    Show-ADTInstallationProgress
#endregion Wait for Install

PSADT has always closed the progress dialog when displaying a prompt. This is typically got convenience so you don't have overlapping dialogs.

1 Like

Thanks for the info and for fixing it. The main thing is that it waits until OK is confirmed or the timer has expired.

2 Likes