Enable close "X" button in Show-InstallationPrompt

Hello guys,

i want in the “Show-InstallationPrompt” Function that the [X] button assigned the same result like a klick on the “no” button. That [X] is default without of any funktion and there is no minimize and maximize button.
I tried $formInstallationPrompt.ControlBox = $True and other things already. To remove that [X] is also an option.


Seems as though no one wants to talk about buttons

to remove the X Button you need to set
$formInstallationPrompt.ControlBox = $False