HOW TO
The problem addressed in this article is the challenge of automating the installation and upgrading of ArcGIS Pro and ArcGIS Desktop processes on multiple machines. The solution proposed is an automated installation process using a batch file script, which simplifies and streamlines the deployment across numerous computers, ensuring consistency and saving time and resources.
To automate the installation and upgrade process, the idea is to run it silently. However, its command will not be executed from the command prompt as usual, but will be preconfigured and executed with a batch file, which stores commands and helps automate tasks.
These official resources explain all the parameters that can be used to build the command depending whether you are working with ArcGIS Pro or ArcMap:
For this article's purpose, the most generic command is used as an example to explain how this batch file is created and executed.
Example for ArcGIS Pro
@echo off set InstallerPath=<Network_Shared_Folder>\ArcGISPro.msi msiexec.exe /i "%InstallerPath%" ALLUSERS=1 ACCEPTEULA=YES /qb pause
Note:
Without the INSTALLDIR parameter, the script uses the default installation location, which is %SystemDrive%\Program Files\ArcGIS\Pro and %SystemDrive%\Program Files (x86)\ArcGIS\Desktop10.8
Example for ArcMap:
@echo off set InstallerPath=<Network_Shared_Folder>\Setup.exe "%InstallerPath%" ACCEPTEULA=YES /qb pause
@echo off |
This command hides the execution of script commands from the command prompt display. |
set InstallerPath= |
Sets a variable named InstallerPath to the path where the installation file is located. (ArcGIS Pro) <Network_Shared_Folder>\ArcGISPro.msi (ArcMap) <Network_Shared_Folder>\Setup.exe |
msiexec.exe |
This is the program used by Windows to install .msi files |
/i |
Indicates that an installation is to be performed |
"%InstallerPath%" |
Uses the path to the installer files defined earlier |
/qb |
Displays a basic interface during installation |
pause |
This command pauses the Command Prompt at the script's end, allowing users to see messages for debugging and confirming successful installation or identifying errors. |
Note: With regard to the license, a license type configuration can be predefined depending on the values used in the AUTHORIZATION_TYPE (equivalent to SEAT_PREFERENCE in ArcMap) and SOFTWARE_CLASS parameters. If those parameters are not used, ArcMap requests a license with the ArcGIS Administrator, while ArcGIS Pro requests the ArcGIS Online credentials to use the default Named User license.
From the client machine where the program will be either installed or upgraded, navigate to the shared folder and execute the batch file to start the installation. Running the batch file on multiple desktops may be automated by your IT department, depending on the scale of the organization.
Get help from ArcGIS experts
Download the Esri Support App