Welcome Message - change wording install to uninstall during uninstall phase

Hello

I have created a package and it is working however when running the uninstall, I want to change the highlighted words in the screenshot as follows:

Snag_20a17644

  • Installed = Uninstalled
  • Installation = Uninstallation

I tried to look through the XML and could’t see anyway of changing this when the the phase is “uninstall”.

Ideally I don’t want to create customised message for uninstall phase for every language and I am hoping I have just overlooked something.

Any help is appreciated!

1 Like

If you really want to change this behaviour it is in the config.xml at line 141 for the 3.8.3 version of the PSADT.

I suggest that you run the command below, instead of changing the config.xml

Deploy-Application.exe Uninstall Silent

Hi Sven

I agree that the Silent Uninstall might be a better option rather than changing config.xml, but with some packages (not just this one) I need to notify the user to close the app so it can be uninstalled. Sometimes its not because I can’t proceed with the uninstall, but because its better to inform the user and avoid the “I was working on something and it just closed” tickets that inevitably get sent to the helpdesk.

I was hoping there was an option for the DeploymentType to change these highlighted words dynamically to read better.

I’ve tried to capture what I mean below:

DeploymentType_Install:

  • The following programs must be closed before the installation can proceed.
  • The following application is about to be installed:
  • You can choose to defer the installation until the deferral expires

DeploymentType_UnInstall:

  • The following programs must be closed before the uninstallation can proceed.
  • The following application is about to be uninstalled:
  • You can choose to defer the uninstallation until the deferral expires

**DeploymentType_Repair: **

  • The following programs must be closed before the repair can proceed.
  • The following application is about to be repaired:
  • You can choose to defer the repair until the deferral expires

Perhaps this is not possible in the currently version and I should look to submit a feature request (issue) on Github.

The dialog window text should be neutral, otherwise we will need 2 new translated strings. This will be changed in v4 however right now you would need to modify the code.

Hey luki, do you know when this update will be implemented? Looks there is still this in the 3.8.4 version of psappdeploytoolkit.
I am also interested in not touching the xml file.

Agree with Xengrath, I was looking for the same functionality, where we need to prompt the user during Install\uninstall to close application, to change the config, as you suggested Sven is not possible because the same prompt is displayed during Install, need to have ability to display different prompt for install\uninstall. we are on version 3.9.2 and it is still not available.

thanks

Hi there, what you ask was initialy implemented in my toast notificaion extension. See PSADT.ToastNotification Extension - #34 by LFM8787

It even includes repairing deployment type.

Check the github page for a more complete description.

Our PSADT packages typically contain a subfolder called “UninstallFiles”. Once I’ve prepared my script/project, I paste a duplicate of the toolkit contents except the “Files” folder into the “UninstallFiles” folder. This achieves two things:

  1. Most importantly: We point SCCM’s uninstall content path to the “UninstallFiles” folder, so that if an uninstall occurs in future, only a small amount of data (less than 2MB) is downloaded from the Distribution Point. (I wouldn’t rely on the install-content still existing in the ccmcache).

  2. Having a dedicated set of PSADT files for an Uninstall means you can make some wording tweaks in AppDeployToolkitConfig.xml i.e. changing “install” and “installation” to “uninstall” and “uninstallation”. That kind of thing.

Untitled

1 Like

Sometimes we get caught in the complex solutions and forget about the simpler ones.

Just add the following lines in Deploy-Application.ps1 after the variable declaration:

    #endregion
    ##* Do not modify section above
    ##*===============================================
    ##* END VARIABLE DECLARATION
    ##*===============================================

    $configDiskSpaceMessage = $configDiskSpaceMessage -replace $configDeploymentTypeInstall, $deploymentTypeName.ToLower()
    $configClosePromptMessage = $configClosePromptMessage -replace $configDeploymentTypeInstall, $deploymentTypeName.ToLower()
    $configDeferPromptExpiryMessage = $configDeferPromptExpiryMessage -replace $configDeploymentTypeInstall, $deploymentTypeName.ToLower()
    $configBlockExecutionMessage = $configBlockExecutionMessage -replace $configDeploymentTypeInstall, $deploymentTypeName.ToLower()
    $configRestartPromptMessage = $configRestartPromptMessage -replace $configDeploymentTypeInstall, $deploymentTypeName.ToLower()

    #  This is the problematic one, since "installed" cannot be replaced the easy way
    if ($deploymentTypeName -ne $configDeploymentTypeInstall) { $configDeferPromptWelcomeMessage = "" }

This solution works with all the versions and the strings are replaced when the script is executed.

Tested only in English and Spanish, may not work in other languages.

3 Likes

I like your solutions.

thanks

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