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, PostgreSQL, or SQL Server 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 database engine (SQL Anywhere, PostgreSQL, or SQL Server) 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$
Set up the IIS server before running the silent installation.
Edit the SilentInstall.ini file located in the PowerServer Toolkit installation package and set the following values.
Specifies whether to install IIS automatically. For example, if the value is set to true, the IIS will be installed automatically.
bAutoInstallIIS=true
Specifies options for website. For example, if the value is set to 1, an existing website will be selected. If the value is set to 2, a new website needs to be created. And if the value is set to 3, the website will be specified later.
nWebsiteOption=1
Specifies the site name, binding port and physical path for the website that is selected by the user or will be created later. For example:
szSiteName=Default Web Site szSitePort=80 szSiteRootDir=C:\inetpub\wwwroot
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=<All/PBRT/PB/PBU/PSTK>. |
|
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\pb250" "log=C:\appeon\install.log"
In Windows PowerShell (run as an administrator):
#1: Add --% before the parameter(s):
$Env:AgreeToAppeonLicense = "true" .\SilentInstall.bat --% "opt=all" "dir=C:\appeon\pb250" "log=C:\appeon\install.log"
#2: Or add the escape character (`) before each quotation mark of the parameter.
$Env:AgreeToAppeonLicense = "true" .\SilentInstall.bat `"opt=all`" `"dir=C:\appeon\pb250`" `"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, PostgreSQL, or SQL Server
-
Microsoft .NET Framework SDK
-
Microsoft .NET SDK