Sunday, 2 August 2015

installation - The simplest way to uninstall any and all ArcGIS products?


What it is the simplest and most straightforward way to uninstall any and all ArcGIS products more or less in one go that might be present on a Windows machine? perhaps scriptable?


Add/Remove Programs from the Control Panel is straightforward, but when there a several products installed it's a process of click-click-click, wait for product 1 to be uninstalled, which could take some time, then click-click-click for #2, and so on. This is okay for one machine but when there are several it's real pain.



Answer




I do it with a batch file. You could write the code below as a single line, or by updating locations you could create a loop of paths/installers.


SET INSTALL_PATH=\\myNetworkShare\InstallerLocation\

MSIEXEC.EXE /X %INSTALL_PATH%\setup.msi /QB

The following KB articles provide a good starting place:


Install/Uninstall using Batch files


Silent Uninstall


Edit: just to clarify, using the 2nd article, you can use the GUID, so then you dont need to reference the original installer. I guess one method will make more sense for your script/batch file


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...