Is there a way to run a PSAppDeployToolkit that just shows a message in the middle of the screen, and it doesn’t go away until the computer reboots?
Yes, if you are using PSADT v4.0.x you can use this:
Although in some cases it’s more fun to just send a plain PowerShell Stop-Computer
command
Thank you also is there a way to have it display until the presence of a file is detected? The install is happening via another process, not being installed via PS App Deploy Toolkit, but I wanted the PS App Deploy Toolkit to launch upon startup and wait for a folder/file to exist before it closes
I don’t understand your logic of having the install and detection for the existance of a file in two separate processes, this ‘could’ all be possible within a single PSADT (PowerShell App Deploy Toolkit) script.
The benefit of a single PSADT script is you can build (script) your correct sequence of events and ensure each step is logged, so you have a record of what happened when.
The PSADT deployment script is laid out with 3 main sections and within these sections there are “Pre”, “Install/Uninstall/Repair” and “Post” sub sections, so you can insert your relavent tasks both before and after the install (or uninstall or repair) occur.
As an example:
I built a script to deploy the latest version of our chosen network software, due to the behaviour of this installer I had to force user behaviour.
So my scripted install displays an initial notification (Show-ADTInstallationWelcome
), warning users that this software requires a restart at the end (which must be carried out within 15 minutes of completion), I configured this with three deferrals, so the user can postpone the install until later if they need to.
When it installs (i.e. the user has clicked continue or they have run out of deferrals), it checks the VPN is not currently connected (if it is, it prompts them to close certain business apps (using Show-ADTInstallationProgress
within a while loop) before continuing with the install / upgrade. When complete, the Show-ADTInstallationRestartPrompt
is used to prompt the user the restart with a 15 minute countdown. They either click restart or let the countdown run its course and it automatically restarts.