Namespaces
Variants
Actions

Creating installation dependencies to other components on Symbian

Jump to: navigation, search
Article Metadata

Tested with
Devices(s): Nokia E65

Compatibility
Platform(s): S60 3rd Edition, MR

Article
Created: tapla (04 Sep 2008)
Last edited: hamishwillee (01 Aug 2012)

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.

This page was last modified on 1 August 2012, at 07:39.
112 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved