I am creating a script for an installation that has a very long run time.
I would like to display a specific popup and not just the baloon when the script encounters an error.
This is because many users leave their computer or do other stuff while installation is running, and miss the baloon sometimes.
I had a look/search, instead of modifying the Main toolkit ps1 is there a way of doing it or is it not implemented ?
I’m sorry, but could you elaborate a bit more, I’m not understanding your issue.
In the Deploy-Application.ps1 script file, there’s a show dialog there by default. This will pop up if any function throws an error, unless you install in silent mode. You could modify the text there if you needed a custom message.
Are you not seeing the dialog? If so, you may be encountering a bug, can you share a log file from one of your installations.
Hi Jaegermaster,
Can you please provide the text of your deploy-application.ps1 and also what command you’re using to launch the toolkit. I’m not seeing what I need in this log file.
When this happens by builtin in PADT , we just get the little bubble in systray “installation failed”
This happens with any action that fails in installation phase with execute-process or Execute-Msi , Copy-File , etc…
I would like to create a dialog box to the user when one of these action fails “Installation failed, please try to relaunch Installation or call HelpDesk”
The way most people do deployments in an enterprise setting, I don’t think this feature would be desirable. If I deploy software to users, I don’t want users to see anything at all for the most part and certainly not any errors. They are not going to know what those errors mean and will probably call the help desk; something the business does not want as part of a large deployment. I think the feature you want will have to be something you implement in your own branch of the toolkit. All the pieces are already there for you to do so. In the Catch {} statements of a function, add a Show-Dialog function call that displays the error message that gets thrown.
Getting back , I try this and didn’t produce anything :
##*===============================================
##* END SCRIPT BODY
##*===============================================
## Call the Exit-Script function to perform final cleanup operations
Exit-Script -ExitCode $mainExitCode