Show-ADTInstallationWelcome skip extra confirmation

Using the function Show-ADTInstallationWelcome, when I have an executable listed in this function and that executable was running,

Show-ADTInstallationWelcome -CloseProcesses excel -AllowDefer -DeferTimes 3 -CheckDiskSpace -PersistPrompt

After closing the application to be closed, a confirmation dialogue to proceed appears.

Is it possible to skip this additional confirmation dialogue with the 2 buttons ‘Defer (x remain)’ and ‘Install’?

I think you would solve this by using the -AllowDeferCloseProcesses switch instead of -AllowDefer, so your command should now look like:

Show-ADTInstallationWelcome -CloseProcesses excel -AllowDeferCloseProcesses -DeferTimes 3 -CheckDiskSpace -PersistPrompt

Have a look at the reference for Show-ADTInstallationWelcome here:

Thanks Adrian. I have the command line below, however I still see a second defer prompt after closing the process.

Show-ADTInstallationWelcome -PromptToSave -CloseProcesses 'excel' -BlockExecution -AllowDeferCloseProcesses -NoMinimizeWindows -DeferDays 3 -PersistPrompt -CheckDiskSpace

With a similar command line on 3.10.2 the installation would continue straight away after closing processes, that were in the command line.

I would say it works like this by design. You don’t get 2 dialogues it’s just that the existing dialogue changes to still give the user the Defer option if he closes the app himself without clicking the “Close Apps & Install” button.

If you close the app(s) with the “Close Apps & Install” button it you get an “automatic” close and install experience.

1 Like

As an example (to prove @JFP’s excellent explanation), if before you launch the PSADT script / deployment make sure Excel in not running, then the install should commence without the Show-ADTInstallationWelcome screen displaying

Switching to the Classic UI the installation continues without prompting for an additional confirmation. This is the behavior in 3.10.2. I can live with the classic UI, though it would be nice if the Fluent UI worked the same way as the classic UI.

Sounds like it should be raised as a potential bug, you can do this here:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.