PSADT V4 Wishing to use Classic UI instead of FluentUI

Hey Guys,

Have modified Invoke-AppDeployToolkit.ps1 as follows.

##================================================
## MARK: Pre-Install
##================================================
$adtSession.InstallPhase = “Pre-$($adtSession.DeploymentType)”

## Show Welcome Message, close Internet Explorer if required, allow up to 3 deferrals, verify there is enough disk space to complete the install, and persist the prompt.
Show-ADTInstallationWelcome -CloseProcesses iexplore -AllowDefer -DeferTimes 3 -CheckDiskSpace -PersistPrompt

## Show Progress Message (with the default message).
Show-ADTInstallationProgress

Have modified PSAppDeployToolkit.psm1 as follows.

process
{
	$adtConfig = & $Script:CommandTable.'Get-ADTConfig'
	$adtConfig.UI.DialogStyle = "Classic"
	try
    {
        try
        {
            # If running in NonInteractive mode, force the processes to close silently.
            if (!$PSBoundParameters.ContainsKey('Silent') -and $adtSession -and ($adtSession.IsNonInteractive() -or $adtSession.IsSilent()))
            {
                $Silent = $true

Install dialog uses the Classic UI without any issues, throughout the install process. (Auto MSI Deployment)

However, when I disable the defer prompt as such, the install then changes back to the Fluent UI ?

## Show Welcome Message, close Internet Explorer if required, allow up to 3 deferrals, verify there is enough disk space to complete the install, and persist the prompt.
## Show-ADTInstallationWelcome -CloseProcesses iexplore -AllowDefer -DeferTimes 3 -CheckDiskSpace -PersistPrompt

## Show Progress Message (with the default message).
Show-ADTInstallationProgress

Not the end of the world, however company like the classic interface at the moment, and would be good to get this issue fixed for our non defer deployments. Is there something we can add to the PSAppDeployToolkit.psm1 to address this behaviour. Thanks in Advance, I am really looking forward to engaging more and supporting the wider deployment community. (Sorry no images im a new user and it was blocking my post.)

I don’t know enough of V4 to tell you what to change but I know you should not need to edit PSAppDeployToolkit.psm1 to do it.

Hi TAG,

I took the initiative to find how to revert the GUI from this post. Hoping there is just another line of code that would resolve this issue. Fingers crossed. psadt-v4-use-classic-ui-for-closeprocess-countdown-fluent-ui-elsewhere

1 Like

Just switch the config to Classic? No need to man-handle the toolkit like a savage beast :upside_down_face::rofl:

4 Likes

@ mjr4077au You sir are a leg-end. !! Thanks for your help. Now super happy and all working fine without previous “Savagery” :rofl:

1 Like