MENU

Install-Application

202
0

With a need to install an exe (in particular Microsoft’s ATP – Advanced Threat Protection installer) silently at startup (only if the required version isn’t already installed); I ended up finding a script written by Dan Scott-Raynsford (https://dscottraynsford.wordpress.com/).

It worked OK but wasn’t perfect for my needs due to 2 issues; one being the spaces in the installer exe filename and the other being the use of quotes in the arguments needed to be supplied in the full installation string. The spaces in the filename could easily be resolved by editing the filename but I needed to make the passing in of multiple peculiar arguments more straight-forward anyway, therefore I may as well make the script as robust as possible.

The modified script to allow for these requirements plus some extra features and more verbose logging can be found at my GitHub repo, link below…