Advanced Installation Customizations
This section details using advanced customization for your embedded installations of Pervasive PSQL. Pervasive PSQL supports the following methods for advanced installation customizations:
Changing Installation Package Size and Features Using CAB Files
The Pervasive PSQL installation includes cabinet (CAB) files that can be removed from your installation package to decrease the overall size of the installation package and avoid using unnecessary files. Removing these files automatically removes the corresponding feature from the list of available features in the graphical user interface during a custom setup.
Working with CAB Files and Future Updates
CAB files are located in the same directory as the MSI and Setup executables. CAB files beginning with an underscore (_) are required for that install type. For a complete list of required files by installation type, see Required Files.
The core set of CAB files does not change. However, updates to Pervasive PSQL will contain additional CAB files from the original set released in Pervasive PSQL v11 to account for any newly added components or features. Updates to Pervasive PSQL may require generation of additional CAB files, if there are new CAB files present. Be sure and obtain the latest set of files for the installation type and optional features you are installing.
Required Files
CAB files that are required are designated by an underscore. The following table lists the cabinet files required for each installation type.
Table 3
Optional Features
The following table lists the optional features by installation type with which they can be applied.
Table 4
Optional Feature Requirements
Certain optional features require that other components accompany them in order to function. The following table lists the optional features that require other components.
CAB File Installation Example
The following provides an example of customizing your installation using CAB files. This example installs the Workgroup engine with documentation as the only optional feature.
*Note: Documentation requires that you install the Eclipse framework and the Pervasive PSQL Control Center.
1
2
The files listed in these two steps are the only CAB files that you need in order to install the Workgroup Engine and documentation. All other CAB files may be removed from the installation package.
Developing an Embedded Installation with Custom File Picking
Another method for embedding the Pervasive PSQL installation with your application is by using custom file picking, which is sometimes referred to as cherry picking. This method allows you to select Pervasive PSQL components at the individual file level.
Please contact Pervasive Support if you want to embed the Pervasive PSQL installation by using custom file picking.
Creating Transforms to Customize your Installation
Another advanced method for customizing your embedded installation is to create a Windows Installer transform file (MST). Creating a transform file to customize your installation allows for greater flexibility in the features you select during installation, maintains the features associated with MSI technology and provides for easily applying upgrades and patches, unlike the custom file picking method for customized installations.
To generate a MSI transform, the installation database must be manipulated. There are several tools that can be used to generate a transform file. These include InstallShield, Microsoft Orca, or the MSI utilities in the Windows Platform SDK.
Creating an Embedded Installation Without Shortcuts
An example for using a transform file in a customized installation would be installing Pervasive PSQL without installing any of the shortcuts. The following outlines the steps you would follow for this type of procedure.
1
2
3
Current InstallExecuteSequence record
CreateShortcuts <null_value> 5500
Revised InstallExecuteSequence record
CreateShortcuts NOSHORTCUTS 5500
*Note: Adding an undefined property name such as 'NOSHORTCUTS' causes the action to be skipped so no shortcuts are created.
4
5
6
See the following modified examples for using the generated transform file.
Silent Install Examples Using Setup Executable
The following example creates a log file in the user's temp folder:
SetupWorkgroup_x86.exe /s /v"/qn REBOOT=ReallySuppress /leom \"%TEMP%\PSQL_version_Install.log\" TRANSFORMS=MyTransform.MST"
This example creates a log file in the user’s temp folder and specifies the license key and service install options:
SetupWorkgroup_x86.exe /s /v"/qn REBOOT=ReallySuppress PVSW_PSQL_LICENSE_KEY={key_value} PVSW_RUN_WGE_AS_SVC=Y TRANSFORMS=MyTransform.MST /leom \"%TEMP%\PSQL_version_Install.log\""
Silent Install Examples Using MSI Executable
The following example creates a log file in the user’s temp folder and specifies the license key and service install options:
msiexec.exe /i {path}\ PervasivePSQLversionWGE_x86.msi /qn REBOOT=ReallySuppress PVSW_PSQL_LICENSE_KEY={key_value} PVSW_RUN_WGE_AS_SVC=Y TRANSFORMS=MyTransform.MST /leom "%TEMP%\PSQL_version_Install.log"