Show-InstallationWelcome Even if No Apps Are Running

I’ve been using PSADT for years and years now, and suddenly have a new use case… I’m deploying a new version of a CAD application, and need the installation welcome prompt to show up even if the specified apps aren’t running and the deadline is past. I need users to be aware that the install is about to happen so they can check their work into our PLM system.

I’ve tried just about every combination of parameters for Show-InstallationWelcome and can’t get it to do what I want. This doesn’t feel like a strange use case, but maybe it was never planned for? Am I going to have to launch a dummy process before running Show-InstallationWelcome to get it to always show up?

Appreciate any pointers!

Hi Rigalin,

If I understand your situation correctly you always want a dialog to show up to warn the user that an installation of the CAD application is going to start. Show-InstallationWelcome isn’t the best funtion to use in this case as you have noticed. I would suggest you use Show-InstallationPrompt instead. Here is some example code:


#Example 1:

Show-InstallationPrompt -Message '        
        Warning !!!
        An installation of Application X has started.
        Please save all your data before continuing with the Installation.
        ' -ButtonMiddleText 'Continue' -PersistPrompt

#Example 2:

$usrResponse = Show-InstallationPrompt -Message '        
        Warning !!!
        An installation of Application X has started.
        Please save all your data before continuing with the Installation.
        Do you want to continue with the installation now?
        ' -ButtonRightText 'No' -ButtonLeftText 'Yes'
        If($usrResponse -eq 'No')
		{
		    Exit-Script -ExitCode 69002 #Exiting with a unique error code that will indicate that the user clicked on No.
        }