Show-InstallationWelcome red X to cancel not working

In all of my packages when the Show-InstallationWelcome message box appears, clicking the red X in the top right corner of the window does not close the installation sequence. It is behaving as though the -PersistPromt attribute is enabled but it is not enabled. I even tried -PersistPrompt:$false but it didn’t help.

How do I enable the red X to close the installation window without having to click install and running through the whole script?

Sorry that should read the Show-InstallationPrompt message box.

Hi Shaun,

This is disabled by design to prevent users from exiting the prompt without choosing a relevant installation response.

The PersistPrompt parameter forces the window to return to focus/center in case the user tries to move it off screen.


Ok that makes sense. Thanks for the reply.