Show-InstallationWelcome when uninstalling ?

Topics: Archive - Deployment Scripts
Sep 1, 2014 at 4:33 PM
Is there a way to use the function "Show-InstallationWelcome" to show a different message when application is uninstalling ?
Coordinator
Sep 1, 2014 at 4:43 PM
Sorry not at the moment.
Sep 1, 2014 at 6:58 PM
Ok, but how can you tell the user that you are about to uninstall the program ? "no welcome message" and a messagebox ?
Coordinator
Sep 1, 2014 at 7:44 PM
There are a few different ways you can work around it.

You could provide alternative text for the Show-InstallationWelcome message by specifying the relevant variables in the uninstallation phase of the Deploy-Application.ps1 script.

[string]$configClosePromptConfirm
[string]$configClosePromptMessage
[string]$configDeferPromptWelcomeMessage
[string]$configDeferPromptExpiryMessage
[string]$configDeferPromptWarningMessage

You could also use the extensions to reference an alternative XML file which you could call only -
If ($installPhase -match "Uninstall")

Hope that makes sense.
Sep 1, 2014 at 10:28 PM
Thanx, worked like a charm, used the parameters.

One thing, when I install Acrobat, I still get a window from acrobat installation : (Windows installer : Configuring Acrobat reader, and also process). Is there a way to hide that windows also ?
Coordinator
Sep 2, 2014 at 6:10 PM
Change default MSI parameters in the XML file from QB to QN if that is your preference or else override the default per application using -Parameters "/QN" with Execute-MSI.
Dec 28, 2014 at 11:37 AM
johann787

I ran into the same issue.. when uninstalling it show the wrong info.

How did you work around it. Could you post the needed changes.

Did not understand "PowerSheller" input on the solution.