Customtext parameter

Requesting help on what is probably a noob user question.
My installation welcome message box does not display my custometext. Shouldnt it just be:
-CustomText:$True
and if the XML file has the WelcomePrompt_CustomMessage set in all the languages it should just work?

Here is my configuration line:

Show Welcome Message, allow up to 1 deferrals, verify there is enough disk space to complete the install, and persist the prompt

	Show-InstallationWelcome -CustomText:$true -CheckDiskSpace -PersistPrompt

I have never used the -CustomText parameter before but it’s a switch so to use it just say -CustomText without the :$true

Like this:

	Show-InstallationWelcome -CustomText -CheckDiskSpace -PersistPrompt

But custom text to what? What text. :slight_smile:

The help for Show-InstallationWelcome is not very explicit and show no examples.

After reading the code for the Show-InstallationWelcome function in AppDeployToolkitMain.ps1 This is what I’ve figured out:

  • -CustomText is a [Switch] that defaults to $false. So first you need to just use -CustomText to use it.
  • The comment and the help say: “Custom message must be populated for each language section in the XML” The XML file here is AppDeployToolkitConfig.xml
  • the Show-InstallationWelcome function doesn’t say where in the XML to place this custom message. e.g. There is no such thing as a <InstallationWelcome_CustomMessage> in AppDeployToolkitConfig.xml
  • There is only ONE show function that is mentioned in the XML and has a CustomText variable: Show-WelcomePrompt
  • AppDeployToolkitConfig.xml does have this:
        <WelcomePrompt_CustomMessage></WelcomePrompt_CustomMessage>

You can try that but being it’s so poorly documented and poorly commented, I wouldn’t be surprised they remove it for PSADT v4. (I’d remove it. It’s too confusing to use)

1 Like

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