How do I Script Installs of Bentley Plant Applications?


  
 Applies To Installation
  
 Product(s):OpenPlant/AutoPLANT 
 Version(s):V8i
 Environment: N\A
 Area: N\A
 Subarea: N\A
 Original Author:Brandon Moberg, Bentley Product Advantage Group
  

Background

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.

Note: If ProjectWise is required for Plant applications it must be installed and properly working before this silent roll-out.

Note: These script instructions are for clean installations only.  If previous versions of these applications are on the workstation the script will not run.

Steps to Accomplish

________________________________________________________________

Install File Location Options:

A. 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.

B.  Installation files are placed on the local workstation and the AutoInstall.bat runs from this location.

____________________________________________________________________________________

 This exercise will follow option B.

  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.



  3. Extracting the Prerequisites and Common Tools for AutoPLANT applications file.  Once extracted cancel the installation. (This is a one time occurrence)



  4. Extracting the Process Instrumentation & Wiring application.  Once extracted cancel the installation. (This is a one time occurrence)



  5. 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 path
    REM specified with AI_UNC_SOURCE setting.
    SET AI_GET_FILES=0

    REM This setting specifies location where installer files should be copied to. Default
    REM location should be good for most cases. Change it only if default location can't
    REM 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 path
    SET AI_APSETUPS=C:\BentleyDownloads\

    REM This setting specifies if AP Prerequisites with all its dependencies
    REM must be installed.
    SET AI_INSTALL_AP_PREREQ=1

    REM This setting specifies if I&W with all its dependencies
    REM must be installed.
    SET AI_INSTALL_PIW=1


  3. 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
    )

  4. Save and Exit.

  5. 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:

Comments or Corrections?

Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!