May 29, 2019 SCCMdeploy.dk Uncategorized 0
We all know it can be tiresome to install applications on user PC’s.
Especially the tricky ones..
And many of you, I’m sure, has found relief in “Deploy-Application.exe” – the simply brilliant PowerShell App Deployment Toolkit, – making it possible to utilize a very advanced Powershell for deploying applications.
However, the very intrusive programs like Acrobat Pro and others, needing Outlook etc to be closed to install, will either
1. fail miserably because other programs are open, or
2. totally take the user with surprise – “I did NOT get ANY message!!!!”
when one or more programs suddenly shut down..
I have therefore built a HTA message environment into (onto) the PowerShell App Deployment Toolkit.
Program name and version, the programs that need to be closed and the estimated installation time is automatically passed to the HTA’s from Deploy-Application.ps1
The above version is dual language but it’s simple to change, along with Icon and company logo, fonts etc.
When the installation ends it will show another HTA:
And of course there are ones for unistalling and when an error occurs…
The visuals are one thing. Another is the control over what happens when.
The HTAs are called through a function messageToUser with parameters as string (simple and works).
The HTA (shown at the top above) will only display if a user is active!
– If no-one is logged on the installation continues unattended
– If the PC is locked (inactive), install exits with a code 1618 (SCCM fast retry)
All you need is to edit the Deploy-Application.ps1 as usual. Fill in application, version etc. + of course the install/uninstall commands.
– Note however that I added two variables at the top.
One specifying what applications to close (no trailing blanks allowed) and one just containing a string with a time estimate
If in doubt, check out the extensive documentation online or use the built in help by running the ./AppDeployToolkit/AppDeployToolkitHelp.ps1
Download Deploy-Application-HTA as a complete demo emulating an Adobe Acrobat 2019 installation. – It does NOT actually install anything
Note: However it DOES close Outlook, Internet explorer and Acrobat, if running)
Jun 11, 2020 0
Apr 09, 2019 0
Aug 09, 2018 0
Jun 25, 2018 0
Jun 11, 2020 0
Apr 09, 2019 0
Aug 09, 2018 0
Jun 25, 2018 0