Installation Guide
Installation Guide
PowerBuilder® 2017
FOR WINDOWS
DOCUMENT ID: ADC20231-01-2017-01
LAST REVISED: July 06, 2017
Copyright © 2017 by Appeon Limited. All rights reserved.
This publication pertains to Appeon software and to any subsequent release until otherwise
indicated in new editions or technical notes. Information in this document is subject to
change without notice. The software described herein is furnished under a license agreement,
and it may be used or copied only in accordance with the terms of that agreement.
No part of this publication may be reproduced, transmitted, or translated in any form or by
any means, electronic, mechanical, manual, optical, or otherwise, without the prior written
permission of Appeon Limited.
Appeon and other Appeon products and services mentioned herein as well as their respective
logos are trademarks or registered trademarks of Appeon Limited.
SAP and other SAP products and services mentioned herein as well as their respective logos
are trademarks or registered trademarks of SAP and SAP affiliate company.
Java and all Java-based marks are trademarks or registered trademarks of Oracle and/or its
affiliates in the U.S. and other countries.
Unicode and the Unicode Logo are registered trademarks of Unicode, Inc.
All other company and product names used herein may be trademarks or registered
trademarks of their respective companies.
Use, duplication, or disclosure by the government is subject to the restrictions set forth
in subparagraph (c)(1)(ii) of DFARS 52.227-7013 for the DOD and as set forth in FAR
52.227-19(a)-(d) for civilian agencies.
Appeon Limited, 1/F, Shell Industrial Building, 12 Lee Chung Street, Chai Wan District,
Hong Kong.
Contents
1 Installation Guide ................................................................................................... 1
2 Installation Workflow .............................................................................................. 2
3 Planning Your Installation ...................................................................................... 3
3.1 Installation Package Contents ..................................................................... 3
3.2 System Requirements .................................................................................. 3
3.3 Software Requirements ............................................................................... 3
4 Preinstallation Tasks .............................................................................................. 6
5 Starting the Common Setup Program ................................................................... 7
6 Providing Basic Information ................................................................................... 8
7 Installing PowerBuilder .......................................................................................... 9
7.1 PowerBuilder Components .......................................................................... 9
8 Completing the Setup Program ........................................................................... 11
8.1 What the Setup Program Does ................................................................. 11
8.1.1 Writable files shared by all users .................................................... 11
8.1.2 Files reserved for individual users ................................................... 12
8.1.3 Registry changes ............................................................................. 12
9 Installing in Silent (Unattended) Mode ................................................................. 13
9.1 Accepting the License Agreement ............................................................. 13
9.2 Specifying the SQL Anywhere Engine ....................................................... 13
9.3 Silent Install Commands ............................................................................ 13
10 Postinstallation Tasks ........................................................................................ 15
10.1 Upgrading Databases for jConnect for JDBC .......................................... 15
10.2 Installing Ghostscript ................................................................................ 15
10.3 Installing PostScript Drivers ..................................................................... 16
11 Activating PowerBuilder ..................................................................................... 17
11.1 Online activation ...................................................................................... 17
11.2 Offline activation ...................................................................................... 18
12 Uninstalling PowerBuilder .................................................................................. 22
13 Obtaining Help and Additional Information ........................................................ 24
13.1 Technical Support .................................................................................... 24
14 Important Disclaimers on Legal Aspects ........................................................... 25
15 Copyright / Legal Notice .................................................................................... 26
Index ........................................................................................................................ 27
Installation Guide PowerBuilder® 2017
1 Installation Guide
This guide is for anyone installing Appeon PowerBuilder 2017.
Read this guide before you run the setup program to install PowerBuilder 2017.
Note
If you are installing the PowerBuilder 2017 Universal Edition, which means you
are installing PowerBuilder as well as PowerServer, please also carefully read the
Installation Guide for PowerServer (PB Edition). PowerBuilder and PowerServer are
described as separate products from the documentation perspective, which means,
there are two sets of documents available in the PowerBuilder Universal Edition: one
for PowerBuilder (accessed from Windows Start | Appeon | PowerBuilder 2017 |
PowerBuilder 2017 Help), and the other for PowerServer (access from Windows
Start | Appeon | PowerBuilder 2017 | PowerServer Mobile | Help 2017).
2 Installation Workflow
This workflow defines a path for planning and installing PowerBuilder®.
Installing the product
Uninstalling
Chapter 12, Uninstalling PowerBuilder
• Obtain a license.
Note
If you are installing the PowerBuilder 2017 Universal Edition, please also carefully
read the software requirements for PowerServer in the Installation Requirements
section in the Installation Guide for PowerServer (PB Edition).
4 Preinstallation Tasks
This topic describes tasks to perform before installation.
• Read the release bulletins for the latest information on the products that you are
installing. Pay close attention to the Special Installation Instructions section. Release
bulletin is available on the Appeon web site at https://www.appeon.com/support/
documents/appeon_online_help/pb2017/release_bulletin_for_pb (for PowerBuilder)
and https://www.appeon.com/support/documents/appeon_online_help/pb2017/
release_bulletin_for_im (for InfoMaker).
• Make sure the drive on which you install PowerBuilder is not compressed. If compression
is enabled on the installation drive, the setup program fails.
• Make sure you have a TEMP environment variable that points to an existing directory
location with at least 300MB free space. The setup programs write files to this directory
during the installation and frees the space after the installation is complete.
• Back up any files created with earlier versions of Appeon tools. Make sure that any
PBLs you plan to migrate have been regenerated without error in your current version of
PowerBuilder before you back them up.
In addition to backing up your PBLs, back up any files that contain information you do
not want to lose, such as database files, INI files, preference information, and modified
database definition files. For more information about backing up and migrating existing
applications, see Chapter 10, Postinstallation Tasks.
• Read Section 3.3, “Software Requirements” to determine whether you need to install any
software before installing PowerBuilder 2017.
• To install from the installation package that you have downloaded from the Appeon
web site, run the Autorun.exe file.
• To install from a local network drive, follow your administrator's instructions for
accessing and running the setup program there.
Note
Click Cancel to interrupt the installation at any point during this procedure. You
can then either exit or resume the common setup. If you choose to exit, you can stop
the current installation and continue with your other selections, or end the setup
completely.
3. On the License Agreement page, read the license agreement, select the I accept the terms
of the license agreement radio button, and click Next to continue.
4. On the Customer Information page, enter your name and your company’s name.
5. On the Choose Destination Location page, click Next to accept the destination path
shown, or click Browse and select a different path, click OK, and click Next.
6. On the Choose Destination Location For Shared Files page, click Next to accept the
destination path shown, or click Browse and select a different path, click OK, and click
Next. Use the same folder for shared files for all products in this set.
7. On the Specify the SQL Anywhere Engine page, select the location of a SQL Anywhere
engine that will be used to run the demo database (PB demo DB) and click Next.
8. On the Select Products page, select PowerBuilder and click Next to continue.
Note
If you are installing the PowerBuilder 2017 Universal Edition, you can also select
to install PowerServer Mobile, PowerServer Toolkit, and PowerServer Web
Component. For installation instructions, refer to the Installing PowerServer 2017
section in the Installation Guide for PowerServer (PB Edition).
7 Installing PowerBuilder
Run the setup program to install PowerBuilder.
Prerequisites
You must have Administrator privileges to fully install this product.
Procedure
1. On the Select Products page, make sure PowerBuilder is selected, and click Next.
2. On the Select Components page, unselect any components you do not want to install, and
click Next.
You cannot unselect the PowerBuilder Base Components option.
Select or unselect the check boxes of individual components, or click Select All or
Unselect All to change all the check boxes.
The Demo Database is selected by default if you select the PowerBuilder Tutorial
component.
3. On the Select Program Folder page, select the program folder to which program icons will
be added, or specify a new one; then click Next.
4. On the Start Copying Files page, review your settings, then click Next to begin installing
files, or Back to change your selections.
5. On the InstallShield Wizard Complete page, click Finish to return to the common setup
program.
After installing, make sure users have write permission for their user profile directories
(for example, Public Documents in Windows 7), and for HKEY_CURRENT_USER in the
Windows registry.
Component Description
JDBC Driver Interface to connect to databases using JDBC.
SCC Interface Interface for connecting to any source code control system that
supports the Microsoft SCC interface.
PB Native Interface An SDK for developing extensions to PowerBuilder in C++.
Optional wizards are installed in Visual Studio 2005 and Visual
Studio .NET 2002 and 2003 if they are available on your system.
EJB Client The EJB Client PBNI extension, which enables you to develop
clients for EJBs running on J2EE-compliant servers.
Web Services The extensions and other files that enable you to create clients for
Web services using the .NET or EasySoap Web service engines.
Tutorial Source files for the tutorial in the Getting Started book. If you want
to do the PowerBuilder tutorial or use the code examples, install
SQL Anywhere if it is not already installed on your computer. When
you install PowerBuilder, the setup program creates an ODBC data
source for the demo database. If SQL Anywhere is not installed on
your system when you install PowerBuilder, setup does not install
the demo database, code examples, or tutorial files.
Demo Database A SQL Anywhere database used in the tutorial, the Code Examples
sample application, and examples in the documentation.
Code Examples The Code Examples application, which demonstrates many coding
techniques.
Translation Toolkit Tools to help you translate applications into other languages.
PowerBuilder A utility to help determine whether there are sufficient USER/GDI
Resource Monitor resources available in the operating system to open a painter.
PowerBuilder A tool that packages files required for deployment into an MSI file.
Runtime Packager
Help Files Help files for PowerBuilder.
1. On the InstallShield Wizard Complete page, click Finish to complete the installation.
If you do not unselect the check boxes on this page, setup displays the readme file.
2. On the System Reboot Required page, click Finish to reboot your computer, or choose to
reboot your computer later.
After installing PowerBuilder, always shut down and restart your computer before using it.
• Installs writable Appeon files to directories that are shared by all users
• Creates uninstall files to identify what needs to be removed if you uninstall a product
Table 8.1:
In C:\...\UserName\ subdirectory Files copied or updated
On Windows 2008, Windows 7/8.1/10: • Initialization files
(PB.INI, PBLAB170.INI,
• AppData\Local\Appeon\PowerBuilder 17.0 PBODB170.INI)
On Windows 2008, Windows 7/8.1/10: • Files for the PowerBuilder
Getting Started tutorial
• Documents\Appeon\PowerBuilder 17.0\Tutorial
The locations of writable PowerBuilder files reserved for individual use are set in
HKEY_CURRENT_USER registry entries for each PowerBuilder user. For example, the
location of the PB.INI file that is copied to each user's local application data directory is
registered under the registry key HKEY_CURRENT_USER\Software\Sybase\PowerBuilder
\17.0\InitPath.
The parameters can be listed in any order and are not case sensitive. Parameter values are
also not case sensitive.
Table 9.1:
Silent Description
installation
parameter
opt Names the product or products to install.
This parameter is optional to the Standalone Edition.
For the Universal Edition, values are:
The following example uses all parameters for the silent installation command:
silentinstall.bat "opt=pb" "dir=D:\appeon\pb170" "shr=D:
\appeon\shared" "log=D:\appeon\install.log"
When installing PowerBuilder, the silent installation writes warnings to its log file if the
setup computer does not have the correct version any of these items:
• SQL Anywhere
• Microsoft IIS
10 Postinstallation Tasks
Before using PowerBuilder after installation, you might need to perform some migration or
configuration tasks.
• Installing Ghostscript
Required if you want to use the distill method for saving DataWindows as PDF.
1. Into a temporary directory on your computer, download the self-extracting executable file
for the version of Ghostscript you want from one of the sites listed on the Ghostscript Web
site at http://ghostscript.com/.
5. Select a manufacturer (for example, HP) and a printer with the designation PS (such as
HP LaserJet Series 4050 PS).
Note
Some printers do not handle images correctly. For example, the HP Color LaserJet
PS does not display images in the PDF output, and the HP LaserJet 4/4M Plus PS 600
displays color images using greyscale.
6. Accept the default name or enter a shorter name for the printer.
1. Select the Distill Custom PostScript check box on the Data Export property page for
PDF export.
2. On the Print Specifications page, specify the printer name (added to the Printer Settings
dialog in Step 6 in the previous procedure).
• To use the print driver in a script, set the Distill.CustomPostScript and Printer properties.
For example:
dw_1.Object.DataWindow.Export.PDF.Distill.CustomPostScript=1
dw_1.Object.DataWindow.Printer="HP LaserJet Series 4050
PS"
11 Activating PowerBuilder
Starting from PowerBuilder 2017, the developer is required to log in and activate
PowerBuilder first before using it. If you do not have a valid account to log in, please contact
your license administrator to create an account for you. And depending on whether the
machine where PowerBuilder is installed has Internet access or not, the account should be
assigned with an online license or offline license by your license administrator.
Note
This section talks about activating PowerBuilder only, if you want to activate
PowerServer (PB Edition), please follow the License Management section in the
PowerServer Configuration Guide for .NET in the PowerServer Help. PowerServer
Help is a standalone help which can be accessed from Windows Start | Appeon |
PowerBuilder 2017 | PowerServer Mobile | Help 2017 after installation.
Alternatively, you can also read this document which is published on the Appeon
web site, to understand the complete process of licence activation for PowerBuilder,
InfoMaker, and PowerServer, including assigning a license to an account, activating/
de-activating a license etc.
Note
This section talks about activating PowerBuilder only, if you want to activate
PowerServer (PB Edition), please follow the License Management section in the
PowerServer Configuration Guide for .NET in the PowerServer Help. PowerServer
Help is a standalone help which can be accessed from Windows Start | Appeon |
PowerBuilder 2017 | PowerServer Mobile | Help 2017 after installation.
Alternatively, you can also read this document which is published on the Appeon
web site, to understand the complete process of licence activation for PowerBuilder,
InfoMaker, and PowerServer, including assigning a license to an account, activating/
de-activating a license etc.
• If Activation with Internet connection is selected, make sure your current machine can
access Internet, and the offline license will be activated by the Appeon license server
immediately after you click Activate.
• If Activation without Internet connection is selected, you will need to take the following
steps to activate the offline license:
1. Click Generate Client Request to create the client request (a text string), and then
click Copy Client Request to copy the string to the clipboard.
2. Transfer the string to a machine with Internet connection, and visit the License
Activation web page by this URL: https://www.appeon.com/license/get/activation-
code?type=activation. On the web page, paste the string to the text box and then click
Submit. A server response (another text string) is generated.
3. Transfer the server response string back to PowerBuilder, and paste the string to the
Server Response text box, and then click Activate.
Once the offline license is activated successfully, you will be logged in to PowerBuilder IDE.
To view the corresponding license information, click the menu Help | Offline License
Management | License Info in the PowerBuilder IDE.
• If Renew with Internet connection is selected, make sure your current machine can
access Internet, and the offline license will be renewed by the Appeon license server
immediately after you click Renew.
• If Renew without Internet connection is selected, you will need to take the following
steps to renew the offline license:
2. Click Copy Client Request to get the request string, and transfer the string to a
machine with Internet connection.
3. On the machine with Internet connection, visit the License Renewal web page by this
URL: https://www.appeon.com/license/get/activation-code?type=renewal. On the web
page, paste the string to the text box and then click Submit. A response string will be
generated if the license is renewed successfully by the Appeon license server.
4. Transfer the response string back to the PowerBuilder IDE, and paste the string to the
Server Response text box, and then click Renew.
The renewal license will take effect the day after the current license expires.
• If Upgrade with Internet connection is selected, make sure your current machine can
access Internet, and the offline license will be upgraded by the Appeon license server
immediately after you click Upgrade.
• If Upgrade without Internet connection is selected, you will need to take the following
steps to upgrade the offline license:
2. Click Copy Client Request to get the request string, and transfer the string to a
machine with Internet connection.
3. On the machine with Internet connection, visit the License Upgrade web page by this
URL: https://www.appeon.com/license/get/activation-code?type=upgrade. On the web
page, paste the string to the text box and then click Submit. A response string will be
generated if the license is upgraded successfully by the Appeon license server.
4. Transfer the response string back to the PowerBuilder IDE, and paste the string to the
Server Response text box, and then click Upgrade.
• If Deactivation with Internet connection is selected, make sure your current machine can
access Internet, and the offline license will be deactivated by the Appeon license server
immediately after you click Deactivate and confirm the deactivation in the dialog box.
• If Deactivation without Internet connection is selected, you will need to take the
following steps to deactivate the offline license:
1. Click Deactivate / Copy Deactivation Request to generate and copy the request string.
Although the offline license is deactivated from PowerBuilder immediately after you
click Deactivate, you should not stop here, because you should also deactivate the
license from the Appeon license server to release the license for the subsequent use.
The string is by default saved to the Users\<username>\AppData\Local\Temp
\PBLicenseDeactivate\DeactivateCode.txt file.
3. On the machine with Internet connection, visit the License Deactivation web page by
this URL: https://www.appeon.com/license/get/activation-code?type=deactivation. On
the web page, paste the copied string to the text box and then click Submit. You will be
prompted if the license is de-activated successfully from the Appeon license server.
12 Uninstalling PowerBuilder
This topic describes how to uninstall PowerBuilder.
When you start to uninstall PowerBuilder, you will be asked to deal with the license first:
• If you are using an online license, when you uninstall PowerBuilder with Internet
connection, you will be automatically logged out PowerBuilder when the uninstall process
starts; when you uninstall PowerBuilder without Internet connection, you will be prompted
to contact your license administrator to de-activate your license on the website and then the
uninstall process starts.
• If you are using an offline license, you can uninstall PowerBuilder without deactivating
the license (if you want to continue using the license on this computer), or deactivate
the license and uninstall PowerBuilder (if you want to move the license to a different
computer).
For how to log out PowerBuilder or deactivate an offline license, refer to Log out or De-
activating an offline license.
Use one of these methods to run the setup maintenance program for the product that you want
to uninstall:
1. Make a backup copy of any files you might want to reuse (such as DB, INI, and PBL
files) if you plan to reinstall.
2. Open the Control Panel from the Start menu and double-click the Add/Remove
Programs button.
3. On the Install/Uninstall tab page, select the product to uninstall, click Add/Remove,
and click Yes when prompted to confirm that you want to uninstall the tool.
4. If you are prompted to delete a shared file, click the appropriate response.
If the usage count for a system file in the registry indicates that the file is no longer
being used, the setup maintenance program asks if you want to delete the file. Some
applications do not increment the usage count; therefore, do not delete a file unless
you are sure it is not being used by another application.
• Silent uninstallation
See Section 9.3, “Silent Install Commands”.
• Folder items
• Program folders
• Program directories
The setup maintenance program deletes file and icon groups, as well as system and user path
settings in the registry and INI files. Simply deleting directories does not fully uninstall these
products.
Note
The setup program increments the usage count in the registry for each shared Appeon
DLL and each shared system DLL. The setup maintenance program decrements that
count. The setup maintenance program does not try to delete a shared DLL until the
usage count reaches zero.
Note
Unlike the setup program, the setup maintenance program has no Back or Cancel
button. Once you click Yes in the procedure below, the program cannot be stopped.
To read or print PDF documents, you need Adobe Acrobat Reader, which is available as a
free download from the Adobe Web site.
Note
A more recent release bulletin, with critical product or document information added
after the product release, may be available from the Product Documentation Web site.
system requirements, 3
Index uninstalling interactively, 22
installation, 3
, 13
package contents, 3
A PowerBuilder, 9
activate PowerBuilder, 17 silent, 13
ADO.NET starting the common setup, 7
data access, software requirements, 3
driver for PowerBuilder, 9 J
J2EE server, required for EJB client
C development, 3
common setup program jConnect for JDBC, upgrading database, 15
completing, 11 JDBC
providing basic information, 8 connectivity, software requirements, 3
results, 11 PowerBuilder component, 9
starting, 7 upgrading database for jConnect, 15
JDK, required software, 3
D
demo database L
PowerBuilder component, 9 license, 17
SQL Anywhere required for, 3 accepting in a silent installation, 13
disk space requirements, 3 license, SySAM
providing information during interactive
E installation, 8
EJB client
PowerBuilder component, 9 M
software requirements, 3 memory requirements, 3
migrating applications to PowerBuilder, 15
F
MobiLink synchronization, software
FDCCFederal Desktop Core Configuration,
requirements, 3
11
features, PowerBuilder, 3
N
Federal Desktop Core Configuration, 11
native database interface
files, shareable and user-specific installed, 11
PowerBuilder component, 9
FO processor, for saving DataWindows as
PDF, 3 O
G OLE
Ghostscript, for saving DataWindows as controls, software requirements, 3
PDF, 3, 15 DB driver, PowerBuilder component, 9
operating systems supported, 3
H
hardware requirements, 3 P
help files PB Native Interface, PowerBuilder
PowerBuilder, 9 component, 9
PB.INI file, 11, 11
I PDF, saving DataWindows as, 3
IM.INI file, 11 permissions, required for users, 9
InfoMaker PostScript driver, required for distill save
installing in silent mode, 13 PDF method, 16
PowerBuilder W
before installing, 6 Web services client
before using, 15 PowerBuilder component, 9
common setup program, 7 software requirements, 3
components, 9 Windows registry
installation package contents, 3 changes made by installation, 11
installing in silent mode, 13 write permissions required, 9
installing interactively, 7, 9 workflow, installation, 2
PowerBuilder component, 9
Resource Monitor, 9
Runtime Packager, 9
Runtime Packager, software requirements,
3
software requirements, 3
system requirements, 3
uninstalling interactively, 22
PowerBuilder license, 17
R
required software, automatically installed, 7
requirements
software, 3
system, disk space, hardware, and
memory, 3
S
sample applications
PowerBuilder component, 9
software requirements, 3
SCC interface, PowerBuilder component, 9
silentinstall command, 13
for PowerBuilder, 13
SQL Anywhere
preparing for jConnect, 15
starting setup program
download image, installing from, 7
system requirements, 3
T
translation toolkit, PowerBuilder component,
9
tutorials and examples
PowerBuilder component, 9
software requirements, 3
U
unattended installationsilentinstall command,
13
uninstalling PowerBuilder, 22