InstallShield

Introduction

After you have created your software and compiled for deployment, you must make sure that you package all of the initialiation, help, dll and ocx files that your program uses (other than standard Windows dlls). You also want to make sure that when the program is installed, all files are in appropriate subdirectories of your main directory. This is difficult for users to do correctly, so programs like InstallShield have been developed to package all needed software and automatically install files in appropriate subdirectories.

Overview of the Program

InstallShield's main window consists of two pages. Each has subgroupings of tasks that are set in separate tabbed dialogs. The subgroupings on the first page are used to create the instructions that the installer will follow when installing your program. The second page creates various types of install packages and makes copies on disk or for web distribution.

Set Visual Design

This group of settings creates the basic visual image you will display and sets version numbers.

  • The name defaults to the project that created the program.
  • The application executable is the location of the main program in the Components and Files. Program Files here specifies which group the executable is in.
  • The version is read directly from the exe file
  • Company defaults to the company listed when InstallShield itself was installed.
  • The default directory is set to the value< ProgramFilesDir>\Company Name\Project Name. This allows your company to insall all of its products in one directory. In this case there is only one product so I had to alter the listing to what you see.
  • The main title appears on the openning screen when the user installs the program. You may use straight text of if you have a bitmap that may be displayed.
  • The icon is also displayed on this first screen in the position specified
  • Finally the background color can be chosen from Blue, Green, Magenta, Yellow, or Red and either be solid or dithered (gradiated to black).
The last tab just contains features for international or specialized distribution

InstallShield Objects for Borland C++

This is the place you may specify whether to include BDE or use SQL. If you do not use static linking, you will need to check on or more of the last two boxes.

Components and Files

Each of the groupings in this window represents a set of files that will be placed in one directory. The Program Files are those that are placed in the directory containing the exe file. Notice that this listing is the location of the files to be included into your install file. One word of warning, when installing ocx files make sure they are the last files in the list of files.
This dialog (the properties dialog for the group) allows you to set the conditions when the files in this group will be updated. Usually you will use the "Update files with newer version numbers" choice.

Auto-Registration

The main problem I had with creating file groupings was the auto-registration. InstallShield is supposed to know when to auto-register software (with the Windows registry). This is not always the case. For months I could not get my program to install because of auto register problems.

In this section of the groups list you will notice that html.ocx has what appears to be a group of grapes in front of it. This indicates that it InstallShield will auto register this file. Before allowing this to happen check the Version resource with a resource editor like ResourceWorkshop packaged with Borland 4.5 and 5.0?. If you see:
VALUE "OLESelfRegister",""
bring up the properties dialog and uncheck the "Allow Express to Auto-Register" checkbox.

The following is from InstallShield online help.

InstallShield Express automatically registers any file containing the "OLESelfRegister" string in the version resource. In the case of certain third party .OCXs , .OLBs .DLLs, TLBs, and .EXEs, this string may not be present. This prevents Express from automatically registering these files. To manually register a .DLL file, .OLB file, .OCX file, .TLB file or .EXE file, select the "Allow Express to Self-register this file" checkbox for the file (consult Working With Individual Files for more details).

The following documentation is presented for reference if you had manually entered the OLESelfRegister string in an earier release of Express.

Select User Interface Components

This section lets you pick the dialogs that will appear when the user installs the program. Amoung other things it allows you to set a default location for your program.

Make System File Changes

This section allows you to make any registry entries you need. These changes include locationing ini files and altering config and autoexec files. In addition, if your program will be the primary application to open certain types of files, you can make the adjustments to the registry to do this and other things.

Specifying Folders and Icons

In this section you set the icon used to represent your program and the standard place you want your program to be placed.

Disk Builder

This section allows you to build your install program in different formats. You can create versions that fit on different size media.You can also create a version that can be put on a web page that will allow a person to install directly from the web page without downloading the install file.

Create Distribution Media

When you want to create master disk copies for distribution you use this section. In addition if you choose "Path for a 1 File Installation", you will create a file suitable for distribution on the Web.