Install PowerBuilder from a Command Prompt window or script, without displaying messages or windows during the installation process.
Prerequisites
Complete installation planning.
-
Accept the license agreement.
-
Specify the SQL Anywhere or PostgreSQL engine.
-
Configure the
silentinstall.bat
file. -
Run
silentinstall.bat
to install PowerBuilder.
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
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$
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 |
---|---|
|
Specifies the name of the products to install.
Multiple products can be separated by a slash ("/"), for example, opt=PB/PBRT/PBC/PSC/SDEV. |
|
Indicates the main installation directory. If you
omit this parameter, silentinstall installs the product to
the |
|
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. |
|
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