Installing in Silent (Unattended) Mode

Install PowerBuilder from a Command Prompt window or script, without displaying messages or windows during the installation process.

Prerequisites

Complete installation planning.

  1. Accept the license agreement.

  2. Specify the SQL Anywhere or PostgreSQL engine.

  3. Configure the silentinstall.bat file.

  4. Run silentinstall.bat to install PowerBuilder.

Accepting the License Agreement

Accept the Appeon license agreement before running the silent installation.

Edit the silentinstall.bat file located in the installation package and change the value of AgreeToAppeonLicense from false to true.

set AgreeToAppeonLicense=true

Specifying the database engine

Specify the location of a SQL Anywhere engine (or a PostgreSQL engine and its login information) before running the silent installation.

Edit the pbsetup.iss file located in the PowerBuilder IDE installation package and set the value of szDBClientToolDir.

szDBClientToolDir=C:\Program Files\SQL Anywhere 17\Bin64

or

szDBClientToolDir=C:\Program Files\PostgreSQL\12\bin

For PostgreSQL, you will also need to specify the IP address, port number, user name, and password of the database.

szIP=127.0.0.1
szPort=5432
szUserName=postgres
szPassword=$Password$

Silent Install Commands

This topic describes the silentinstall command syntax for PowerBuilder.

To run the silent installation from a Windows Command Prompt, run this command in the installation package:

silentinstall.bat
[ "opt=product" "dir=directoryName" "log=logFileName" ]
[ { help | /? } ]

The parameters can be listed in any order and are not case sensitive. Parameter values are also not case sensitive.

Silent installation parameter

Description

opt

Specifies the name of the products to install.

  • All Installs PowerBuilder IDE, PowerBuilder Runtime, PowerBuilder Compiler, PowerServer (PB Edition), PowerServer Toolkit, PowerServer Help, PowerServer Web Component, and SnapDevelop (including .NET DataStore and PowerScript Migrator).

  • PB Installs only PowerBuilder IDE

  • PBRT Installs only PowerBuilder Runtime

  • PBC Installs only PowerBuilder Compiler

  • PSM Installs only PowerServer (PB Edition)

  • PST Installs only PowerServer Toolkit

  • PSH Installs only PowerServer Help

  • PSWC Installs only PowerServer Web Component

  • SDEV Installs only SnapDevelop

  • DWEXP Installs only .NET DataStore

  • MIGR Installs only PowerScript Migrator

Multiple products can be separated by a slash ("/"), for example, opt=PB/PBRT/PSM/PST.

dir

Indicates the main installation directory. If you omit this parameter, silentinstall installs the product to the sysDriver\Program Files\Appeon\productName directory, where sysDriver is the main computer drive, and productName is PowerBuilder 2019 R3.

log

Names the log file for the installation. If you omit this parameter, the log file is written to the system Temp directory with the file name, silentinstall.log.

help or /?

Displays command syntax and parameters instead of running the command.


The following example uses all parameters for the silent installation command:

silentinstall.bat "opt=pb" "dir=D:\appeon\pb190" "log=D:\appeon\install.log"

When installing PowerBuilder, the silent installation writes warnings to its log file if the computer does not have the correct version of any of these items:

  • SQL Anywhere or PostgreSQL

  • Microsoft .NET Framework

  • Microsoft .NET Framework SDK

  • Microsoft IIS