Creating installation dependencies to other components on Symbian
Article Metadata
Tested with
Compatibility
Article
Overview
This code snippet describes how to create dependencies in the PKG file from a component to other components.
This snippet can be self-signed.
PKG file
To indicate that the component being installed depends on another component, use the following statement in the PKG file:
; Component X is required
; UID Version Component name
(0x2000BABE), 0, 0, 0, {"ComponentX"}
If Component X is not installed, the following warning is displayed: "Component 'ComponentX' missing. Continue anyway?"
To indicate that the component being installed depends on a specific version (or newer) of another component, use the following statement:
; Version 3.06(1) (or newer) of Component X is required
(0x2000BABE), 3, 6, 1, {"ComponentX"}
If Component X is installed but it is not version 3.06(1) or newer, the installation fails with the following error message: "Unable to install. 'ComponentX', version 3.06(1) or newer is required." If Component X is not installed in the first place, the same warning as in the first case is displayed: "Component 'ComponentX' missing. Continue anyway?"
You can also indicate that the component being installed depends on a certain range of versions of another component:
; Version from 2 to 3.02(3) of Component X is required
(0x2000BABE), 2, *, * ~ 3, 2, 3, {"ComponentX"}
If the version range is not met, the installation fails. Note that the error message for this case seems to be somewhat inconsistent at the moment: "Unable to install. 'ComponentX', version 2.42(-1) or newer is required."
Postconditions
Dependencies between components are demonstrated.


(no comments yet)