RAD Studio |  |

Deploying applications
Collapse All
Topics

Name | Description
Deploying BDE Applications | Warning: The Borland Database Engine (BDE) has been deprecated, so BDE will not be enhanced. For instance, BDE will never have Unicode support. You should not undertake new development with BDE. Consider migrating your existing database applications from BDE to dbExpress. The Borland Database Engine (BDE) defines a large API for interacting with databases. Of all the data access mechanisms, the BDE supports the broadest range of functions and comes with the most supporting utilities. It is the best way to work with data in Paradox or dBASE tables. Database access for an application is provided by various... more
Deploying dbExpress Database Applications | dbExpress is a set of thin, native drivers that provide fast access to database information.
Deploying On Apache Servers | WebBroker supports Apache version 1.3.9 and later for DLLs and CGI applications. Modules and applications are enabled and configured by modifying Apache's httpd.conf file (normally located in your Apache installation's \conf directory).
Accommodating Varying Color Depths | To account for all deployment computers not being configured with the same color availability, the safest way is to use graphics with the least possible number of colors. This is especially true for control glyphs, which should typically use 16-color graphics. For displaying pictures, either provide multiple copies of the images in different resolutions and color depths or explain in the application the minimum resolution and color requirements for the application.
Deploying ActiveX Controls | ActiveX controls that you create need to be registered on the deployment computer before use. Installation programs such as InstallAware Express automate this registration process. To manually register an ActiveX control, choose RunActiveX Server in the IDE, use the TRegSvr demo application in \Bin or use the Microsoft utility REGSRV32.EXE (not included with Windows 9x versions). DLLs that support an ActiveX control also need to be distributed with an application.
Application Files, Listed by File Name Extension | The following types of files may need to be distributed with an application. Application files
Borland Database Engine | Warning: The Borland Database Engine (BDE) has been deprecated, so BDE will not be enhanced. For instance, BDE will never have Unicode support. You should not undertake new development with BDE. Consider migrating your existing database applications from BDE to dbExpress. You can use the Borland Database Engine (BDE) to provide database access for standard Delphi data components. See the BDEDEPLOY document for specific rights and limitations on redistributing the BDE (see C:\Program Files\Common Files\Borland Shared\BDE). You should use InstallAware Express (or other certified installation program) for installing the BDE. InstallAware Express creates the necessary registry... more
Considerations When Dynamically Resizing Forms and Controls | If the forms and visual controls for an application are dynamically resized, accommodate all aspects of the resizing process to ensure optimal appearance of the application under all possible screen resolutions. Here are some factors to consider when dynamically resizing the visual elements of an application: The resizing of forms and visual controls is done at a ratio calculated by comparing the screen resolution of the development computer to that of the computer onto which the application installed. Use a constant to represent one dimension of the screen resolution on the development computer: either the height or the width, in... more
Considerations When Not Dynamically Resizing | If the forms and visual controls that make up an application are not dynamically resized at runtime, design the application's elements for the lowest resolution. Otherwise, the forms of an application run on a computer configured for a lower screen resolution than the development computer may overlap the boundaries of the screen. For example, if the development computer is set up for a screen resolution of 1024x768 and a form is designed with a width of 700 pixels, not all of that form will be visible within the desktop on a computer configured for a 640x480 screen resolution.
DLL Locations | You can install DLL files used only by a single application in the same directory as the application. DLLs that will be used by a number of applications should be installed in a location accessible to all of those applications. A common convention for locating such community DLLs is to place them either in the Windows or the Windows\System directory. A better way is to create a dedicated directory for the common .DLL files, similar to the way the Borland Database Engine is installed.
Deploying Applications: Overview | Once your application is up and running, you can deploy it. That is, you can make it available for others to run. A number of steps must be taken to deploy an application to another computer so that the application is completely functional. The steps required by a given application vary, depending on the type of application. The following sections describe these steps when deploying the following applications: Deploying General Applications Deploying Database Applications Deploying Web Applications Programming for Varying Host Environments Software License Requirements
Deploying Database Applications | Applications that access databases involve special installation considerations beyond copying the application's executable file onto the host computer. Database access is most often handled by a separate database engine, the files of which cannot be linked into the application's executable file. The data files, when not created beforehand, must be made available to the application. Multi-tier database applications require additional handling on installation, because the files that make up the application are typically located on multiple computers. Since several different database technologies (ADO, BDE, dbExpress, and InterBase Express) are supported, deployment requirements differ for each. Regardless of which you are... more
Deploying General Applications | Beyond the executable file, an application may require a number of supporting files, such as DLLs, package files, and helper applications. In addition, the Windows registry may need to contain entries for an application, from specifying the location of supporting files to simple program settings. The process of copying an application's files to a computer and making any needed registry settings can be automated by an installation program, such as InstallShield Express. Nearly all types of applications include the following issues: Using installation programs Identifying application files Helper applications DLL locations Database and Web applications require additional installation steps. For... more
Deploying Web Applications | Some Delphi applications are designed to be run over the World Wide Web, such as those in the form of Server-side Extension DLLs (ISAPI and Apache), CGI applications, and ActiveForms. The steps for deploying Web applications are the same as those for general applications, except the application's files are deployed on the Web server. Here are some special considerations for deploying Web applications: For BDE database applications, the Borland Database Engine (or alternate database engine) is installed with the application files on the Web server. For dbExpress applications, the dbExpress DLLs must be included in the path. If... more
Fonts | Windows comes with a standard set of TrueType and raster fonts. Linux comes with a standard set of fonts, depending on the distribution. When designing an application to be deployed on other computers, realize that not all computers have fonts outside the standard sets. Text components used in the application should all use fonts that are likely to be available on all deployment computers. When use of a nonstandard font is absolutely necessary in an application, you need to distribute that font with the application. Either the installation program or the application itself must install the font on the deployment... more
Helper Applications | Helper applications are separate programs without which your application would be partially or completely unable to function. Helper applications may be those supplied with the operating system, by CodeGear, or by third-party products. An example of a helper application is the InterBase utility program Server Manager, which administers InterBase databases, users, and security. If an application depends on a helper program, be sure to deploy it with your application, where possible. Distribution of helper programs may be governed by redistribution license agreements. Consult the helper program documentation for specific information.
Identifying Application Files | Besides the executable file, a number of other files may need to be distributed with an application. Application files Package files Merge modules ActiveX controls
Merge Modules | InstallAware Express is based on Windows Installer (MSI) technology. With MSI-based setup tools such as InstallAware Express, you can use merge modules for deploying runtime packages. Merge modules provide a standard method that you can use to deliver shared code, files, resources, Registry entries, and setup logic to applications as a single compound file. The runtime libraries have some interdependencies because of the way they are grouped together. The result of this is that when one package is added to an install project, the install tool automatically adds or reports a dependency on one or more other packages. For... more
Deploying Multi-tiered Database Applications (DataSnap) | DataSnap provides multi-tier database capability to Delphi applications by allowing client applications to connect to providers in an application server. Install DataSnap along with a multi-tier application using InstallAware (or other CodeGear-certified installation scripting utility). See the DEPLOY document (found in the main Delphi directory) for details on the files that need to be redistributed with an application. Also see the REMOTE document for related information on what DataSnap files can be redistributed and how.
Package Files | If the application uses runtime packages, those package files need to be distributed with the application. InstallShield Express handles the installation of package files the same as DLLs, copying the files and making necessary entries in the Windows registry. You can also use merge modules for deploying runtime packages with MSI-based setup tools including InstallShield Express. See Merge modules for details. CodeGear recommends installing the runtime package files supplied by CodeGear in the Windows\System directory. This serves as a common location so that multiple applications would have access to a single instance of the files. For packages you... more
Programming for Varying Host Environments | Due to the nature of various operating system environments, there are a number of factors that vary with user preference or configuration. The following factors can affect an application deployed to another computer: Screen resolutions and color depths Fonts Operating system versions Helper applications DLL locations
Screen Resolutions and Color Depths | The size of the desktop and number of available colors on a computer is configurable and dependent on the hardware installed. These attributes are also likely to differ on the deployment computer compared to those on the development computer. An application's appearance (window, object, and font sizes) on computers configured for different screen resolutions can be handled in various ways: Design the application for the lowest resolution users will have (typically, 640x480). Take no special actions to dynamically resize objects to make them proportional to the host computer's screen display. Visually, objects will appear smaller the higher the resolution is... more
Software License Requirements | The distribution of some files associated with Delphi applications is subject to limitations or cannot be redistributed at all. The following documents describe the legal stipulations regarding the distribution of these files:
Using Installation Programs | Simple applications that consist of only an executable file are easy to install on a target computer. Just copy the executable file onto the computer. However, more complex applications that comprise multiple files require more extensive installation procedures. These applications require dedicated installation programs. Setup toolkits automate the process of creating installation programs, often without needing to write any code. Installation programs created with Setup toolkits perform various tasks inherent to installing Delphi applications, including: copying the executable and supporting files to the host computer, making Windows registry entries, and installing the Borland Database Engine for BDE database applications.... more
Operating System Versions | When using operating system APIs or accessing areas of the operating system from an application, there is the possibility that the function, operation, or area may not be available on computers with different operating system versions. To account for this possibility, you have a few options: Specify in the application's system requirements the versions of the operating system on which the application can run. It is the user's responsibility to install and use the application only under compatible operating system versions. Check the version of the operating system as the application is installed. If an incompatible version of the operating... more

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!