Change buttons on Show-InstallationWelcome

image

Show-InstallationWelcome -CloseApps ‘PBIDesktop’ -DeferTimes 3 -AllowDeferCloseApps -ForceCloseAppsCountdown 1800

How can I move the Close Programs button to the right most and move the defer button to the left most (and have no middle button)???

I have found how to change the text on the buttons, but not the functions.

Show-InstallationWelcome uses Show-WelcomePrompt function to actually display the GUI to the user.

The Show-WelcomePrompt function is where the GUI is defined.
This controls where the [Defer] button shows up:

		## Button Defer
		$buttonDefer.DataBindings.DefaultDataSourceUpdateMode = 0
		If (-not $showCloseApps) {
			$buttonDefer.Location = New-Object -TypeName 'System.Drawing.Point' -ArgumentList 14,4
		}
		Else {
			$buttonDefer.Location = New-Object -TypeName 'System.Drawing.Point' -ArgumentList 160,4
		}

You seem resourceful so I’m sure you’ll figure it out.

FYI: This is the old, hard way of doing GUIs. The PSADT guys might at some point update it to using XAML so don’t bother trying to learn too much how it all works.

1 Like

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