You are currently reviewing an older revision of this page.
In many instances Network Administrators have to roll-out a "silent" or scripted installation of the Plant applications. In this example we will describe the supported procedure for this requirement.
Please Note: These script instructions are for clean installations only. If previous versions of these applications are on the workstation the script will not run.
Install File Location Options:
1. Installation files are placed on a network drive and the AutoInstall.bat file is configured to point to and copy the files down to the local C:\BENTLEYDOWNLOADS\ location during the script.
2. Installation files are placed on the local workstation and the AutoInstall.bat runs from this location.
This exercise will follow option 2.
1. Download all required install files to the default C:\BentleyDownloads\ location. In this example we will download and script install the following applications:
2. Run both install applications one time just to extract the files (DO NOT COMPLETE THE INSTALL) as shown below. Please note we will be extracting all files to C:\BentleyDownloads\. Once the files are extracted make sure and cancel the installation. The goal is just to receive the files so they can be scripted.
Extracting the Prerequisites and Common Tools for AutoPLANT applications file. Once extracted cancel the installation. (This is a one time occurrence)
Extracting the Process Instrumentation & Wiring application. Once extracted cancel the installation. (This is a one time occurrence)
Once the files are extracted make sure and cancel the installation. The goal is just to receive the files so they can be scripted. Notice the picture below outlining installation folders extracted:
Modification of the AutoInstall.bat file.
In this outline we are only scripting the installs for the AutoPLANT Prerequisites and Bentley I&W applications.
1. Browse to and edit the C:\apr64081110182en\AutoInstall.bat file. In this example we are using Notepad ++ for all editing.
2. Modify the AutoInstall.bat as outlined below:
In this example we modified the following variables:
REM This setting controls if script will try to copy files from AI_UNC_SOURCE to AI_APSETUPS.REM You can copy files manually to AI_APSETUPS if you can't copy them from UNC pathREM specified with AI_UNC_SOURCE setting.SET AI_GET_FILES=0
REM This setting specifies location where installer files should be copied to. DefaultREM location should be good for most cases. Change it only if default location can'tREM be used (e.g. not enough space in disk).REM NOTE: Don't forget to include trailing slash.REM if AI_GET_FILES=0 then set AI_APSETUPS as the actual installation pathSET AI_APSETUPS=C:\BentleyDownloads\
REM This setting specifies if AP Prerequisites with all its dependenciesREM must be installed.SET AI_INSTALL_AP_PREREQ=1
REM This setting specifies if I&W with all its dependenciesREM must be installed.SET AI_INSTALL_PIW=1
Find the %PROCESSOR_ARCHITECTURE% section. This is the location where custom folder names and actual install file names are to be configured as outlined below:
In this step we modified the following 8 variables:
IF "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( SET AP_PREREQ_PATH=apr64081110182en\ SET AP_Modeler_PATH=Modeler\Modeler_x64\ SET AP_PID_PATH=PID\PID_x64\ SET AP_PIW_PATH=prins081110182en\PIW_x64\ SET HTA_FILE=PrerequisitesGUI_x64.hta SET Modeler_MSI=Modeler_x64.msi SET PID_MSI=PID_x64.msi SET PIW_MSI=PIW_x64.msi ) ELSE ( SET AP_PREREQ_PATH=apr64081110182en\ SET AP_Modeler_PATH=Modeler\Modeler\ SET AP_PID_PATH=PID\PID\ SET AP_PIW_PATH=prins081110182en\PIW_x64\ SET HTA_FILE=PrerequisitesGUI_x64.hta SET Modeler_MSI=Modeler.msi SET PID_MSI=PID.msi SET PIW_MSI=PIW_x64.msi )
3. Save and Exit.
4. Run the batch program using an application that supports .bat files. Make sure that the application is running using Administrative Rights and executes the application as shown below:
The point of this lesson is just to familiarize the end user who will be configuring this silent installation with the Bentley AutoInstall.bat file and its variables. It is very important though that these silent installs are used on workstations that:
a. Does not have previous versions of the Bentley applications installed. If so they would have to be uninstalled first.
b. User is logged in with Administrative rights and the application used to run the .bat is ran with Administrative Privileges.