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 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 set AgreeToAppeonLicense from false to true.

set AgreeToAppeonLicense=false

Specifying the SQL Anywhere Engine

Specify the location of a SQL Anywhere engine before running the silent installation.

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

szSqlAnywhereDir=C:\Program Files\SQL Anywhere 16\Bin64

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" "shr=sharedDirectoryName" "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, PowerServer (PB Edition), PowerServer Toolkit, PowerServer Help, PowerServer Web Component, and SnapDevelop.

  • PB Installs only PowerBuilder

  • 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/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 R2.

shr

Indicates the shared directory for PowerBuilder. If you omit this parameter, this directory installs to sysDriver\Program Files\Appeon\Shared.

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" "shr=D:\appeon\shared" "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

  • Microsoft .NET Framework

  • Microsoft .NET Framework SDK

  • Microsoft IIS