informix
DataBlade Developers Kit User's Guide
Using BladePack

Packaging for InstallShield 5.1 Installations

To package your DataBlade module, you add content to a BladePack project, assign components, customize the installation procedure, and build the package.

Important: You cannot use all BladePack options when you create an installation package for InstallShield 5.1. You can only use the options mentioned in this section.

For information on packaging DataBlade modules for UNIX, see Packaging for UNIX Installations. For information on packaging DataBlade modules for InstallShield 3.1, see Packaging for InstallShield 3.1 Installations.

To build an installation package with BladePack

  1. Open a project file:
  2. Define the content of your product, including files, directories, and registry changes.
  3. Define and assign installation components.
  4. Define optional customizations.
  5. Build the installation package.
  6. Transfer files from the build area to installation media.

Establishing Content

You can add these objects to your product in BladePack:

To add a file or directory or a change to the registry

  1. Choose Edit Insert object, where object is File to Install, Directory to Install, or Change to Registry.
  2. The object appears on the Files/Directories page.

  3. Specify the properties of the object on the Details and other pages in the item view.

The following sections describe the properties of the objects on the Files/Directories page.

Files and Directories to Be Installed

The following table lists properties you define when you add files and directories to install.

Property Description
Local name The local name of the file or directory to be installed. Choose Browse to select a file from the Open dialog box. You can have multiple operating-system-specific files to install. See Local Paths for Files for Multiple Operating Systems for more information.
Target directory The directory in which the file or directory is installed. See Specifying a Target Directory for more information.
Target operating system The operating system on which to install the file or directory.
Component The component, subcomponent, or shared component to which the file or directory is assigned. See Assigning to Components for more information on assigning to components.
Icon options Whether the file has an associated icon and information about that icon. The icon appears in the program group. Icons are typically used for applications, README files, or help files; DataBlade modules do not require icons. The default is no icon.

InstallShield 5.1 does not support deleting files and directories, file copy options, or file sharing options.

Local Paths for Files for Multiple Operating Systems

If you have files that are operating-system-specific, put them in a directory structure that is the same except for one directory, which is named for the operating system. When you add the file to your BladePack project, replace the directory named for the operating system with %OS%.

For example, if you compile your C or C++ DataBlade module on Sun Solaris and Windows NT, you have two project.bld files, one in each of these directories:

Add the project\src\c\WinNT-i386\project.bld file to the Files to Install folder, then replace WinNT-i386 with %OS%. When you build the BladePack project for Sun Solaris and Windows NT, BladePack adds the appropriate project.bld file to each project.

For a Java DataBlade module, you have only one version of the project.jar file, which is in the project/src/java directory.

Specifying a Target Directory

You have the following options in the list for the Directory on target machine field:

The target directory for the DataBlade module files (project.bld and the SQL scripts) should be the extend/project directory under the $INFORMIXDIR directory.

For InstallShield 5.1, BladePack puts files that are installed in different directories into different subcomponents; user files are put in the main component, while system files are put in a subcomponent.

Registry Changes

You can add entries to the Windows NT registry for the initialization and configuration of your DataBlade module and its associated programs.

Refer to your Microsoft Developer Studio documentation for information about the registry.

To add registry changes

  1. Choose Edit Insert Change to Registry.
  2. Complete the Registry Changes Details page in the item view.

The following table lists the properties you define when you add registry changes.

Property Description
Registry hive The standard primary registry keys under which you want to add a key:
  • HKEY_CLASSES_ROOT
  • HKEY_CURRENT_USER
  • HKEY_LOCAL_MACHINE
  • Registry path The key you want to add, expressed as a path.
    Key name The name of the key.
    Key value The value of the key.
    Component The component, subcomponent, or shared component to which the file or directory is assigned. See Assigning to Components for more information on assigning to components.

    Managing Components

    BladePack allows you to organize your product installation package into three layers: component, subcomponent, and shared component. To see the component hierarchy for your product, click the Components tab in the project view.

    Organizing an installation package into a component structure allows you to define Typical, Compact, and Custom installations. You specify whether each component or subcomponent is included in the Typical and Compact installations, and whether it is initially selected when users choose the Custom installation.

    During a Custom installation, users can choose to install any components or subcomponents. When you mark a component Custom, the component is initially selected. The user can choose to include or exclude any components, except shared components, from the installation.

    In most cases, the component level is sufficient to create Typical, Compact, and Custom installation options. For example, suppose you have created the following components (and no subcomponents) in your installation package, and marked them as shown:

    In this scheme, users install the DataBlade module, help files, and examples if they choose the Typical installation. If they choose the Compact installation, they install the DataBlade module only. If they choose the Custom installation, the DataBlade module and debugging support are preselected. They can choose to add help and examples.

    To create a component

    1. Choose Edit Insert Component.
    2. Complete the properties on the Component Details page in the item view.

    To create a subcomponent

    1. Select the component to which you want the subcomponent to be subordinate.
    2. Choose Edit Insert Subcomponent.
    3. Complete the properties on the Component Details page in the item view.

    Component Properties

    The following table lists the properties of components and subcomponents you define when you create them.

    Property Description
    Name The name of the component or subcomponent that appears in the left column on the Select Installation Components screen during a custom installation
    Description The description of the component or subcomponent that appears in the right column when the item is selected on the Select Installation Components screen during a custom installation
    Inclusion What type of install the component or subcomponent is included in:
  • Compact
  • Typical
  • Custom
  • Assigning to Components

    You must assign every item on the Files/Directories and Customization pages to a component, subcomponent, or shared component. If you try to build the project with unassigned items, the build fails and you receive an error message telling you which item is not assigned to a component.

    Initially, all files and directories that appear on the Files/Directories page are listed under the Unassigned Files and Directories folder on the Components page. Custom extensions are not shown on the Components page.

    To assign an item to a component, use one of these methods:

    Customizing the Installation

    Custom extensions for the installation program are optional.

    For InstallShield 5.1 installation packages, you can add README files for the installation program. However, after you export your project to InstallShield 5.1, you can add custom extensions to your project using the InstallShield 5.1 project wizard.

    To add a README file

    1. Choose Edit Insert Readme File.
    2. Type the path and filename or click Browse to select the file from the Open dialog box.

    Building the Installation

    When the content and organization of your installation package are complete, build and test it.

    To build, choose Build Build Installation. The Build Installation wizard is launched and prompts you for the following information:

    Installation Type

    BladePack creates a directory structure in the target directory and copies files into the tree. When you build an interactive installation package for Windows, BladePack calls InstallShield to process the files and create CD-ROM and diskette images.

    When you build a file tree installation, BladePack creates the file tree specified in the project in the target directory. A file tree build is useful for debugging the BladePack project.

    When you build the installation package with BladePack, you specify a staging directory to hold the installation files. By default, the staging directory is the project\install\InstallShield5.1\project directory. In addition to putting the Setup.exe file in the staging directory, BladePack also puts it in the project\install\cdrom directory.

    BladePack creates the InstallShield 5.1 project file, project.ipr, in the staging directory. To open the project file in InstallShield 5.1, double-click it.

    After you successfully build an interactive installation, the staging directory contains the subdirectories described in the following table.

    Directory Description
    cdrom Contains an image of the installation package that can be transferred to distribution media. DataBlade module developers can rename this directory to the name of the DataBlade module before creating a .tar file. This directory contains Setup.exe and other files that support an InstallShield installation.
    Component Definitions Contains the component definitions. The Default.cdf file contains the component-to-subcomponent relationships.
    File Groups Contains all files to be installed. The component.fgl file describes which files are in which components and subcomponents.
    Media Contains directories for each media configuration you specify. The Default.mda file describes where to build the media files.
    Registry Entries Contains the Default.rge file, which describes the registry entries created in the installation process. Registry entries are associated with components.
    Script Files Contains custom setup files and the setup.rul custom setup script.
    Setup Files Not currently used by BladePack.
    Shell Objects Contains icons registered during installation.
    String Tables\0009-English Contains custom installation screen strings in the value.shl file.
    Text Substitutions Not currently used by BladePack.

    Installation Screen Display Text

    BladePack provides default text strings for the InstallShield installation wizard screens for Windows. You can override some of these text strings. For example, in the Select Installation Type wizard, you can change the text that appears next to the words Typical, Compact, and Custom to provide your own definitions for these three types of installations. When you save a BladePack project, BladePack saves any new string definitions in the appropriate string files.

    Creating Distribution Media

    To ensure that customers can install DataBlade modules and other Informix products using common instructions, the product you distribute must conform to the Informix DataBlade module installation standard. BladePack creates an interactive installation that ensures a consistent user interface.

    To distribute multiple products with their own installations on a CD-ROM or tape, rename the cdrom directory to the name of the DataBlade module before you copy the directory and its contents to the media or into the archive file.

    For example, to install the Circle DataBlade module from CD-ROM, the installer mounts the CD-ROM, changes to the circle subdirectory, and executes the setup program.

    Important: Put the Setup.exe program in a short path. Due to a Windows limitation, if the path for Setup.exe is too long, it fails to execute.


    DataBlade Developers Kit User's Guide, Version 4.0
    Copyright © 1999, Informix Software, Inc. All rights reserved