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 before running the silent installation.

Edit the SilentInstall.ini file located in the PowerBuilder IDE installation package and set the value of szDBClientToolDir.

For example, for SQL Anywhere:

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

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

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

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 case insensitive. Parameter values are also case insensitive.

Silent installation parameter

Description

opt

Specifies the name of the products to install.

  • All Installs PowerBuilder IDE, PowerBuilder Runtime, PowerBuilder Compiler, PowerServer Toolkit, SnapDevelop IDE, .NET DataStore, and PowerScript Migrator.

  • PB Installs only PowerBuilder IDE

  • PBRT Installs only PowerBuilder Runtime

  • PBC Installs only PowerBuilder Compiler

  • PSTK Installs only PowerServer Toolkit

  • SDEV Installs only SnapDevelop IDE

  • DWEXP Installs only .NET DataStore

  • MIGR Installs only PowerScript Migrator

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

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.

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.


Following are examples for the silent installation command.

In Windows Command Prompt (run as an administrator):

set AgreeToAppeonLicense=true
silentinstall.bat "opt=all" "dir=C:\appeon\pb210" "log=C:\appeon\install.log"

In Windows PowerShell (run as an administrator):

Use the PowerShell escape character -- the grave-accent (`) -- before each quotation mark of the parameter.

$Env:AgreeToAppeonLicense = "true"
.\SilentInstall.bat `"opt=all`" `"dir=C:\appeon\pb210`" `"log=C:\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