January 31, 2018 fiducheah

Bulk of the script taken from and added detection of version number on top of the display name:

Check if a Program Is Installed Using PowerShell 3

I’m using PS App Deploy Toolkit to detect old version of ArcGIS (9.3.1770), uninstall and eventually install 10.5.1.

uninstall-section

 

The install section will look like this.  If you don’t populate the variable declaration section the Handle Zero-Config MSI Installation bit will execute instead.  I suggest you populate it.

 

install-section

 

Leave a Reply

Your email address will not be published. Required fields are marked *