CS001097 - Creating dependencies to other components
From Forum Nokia Wiki
| ID | CS001097 | Creation date | September 16, 2008 |
| Platform | S60 3rd Edition, MR | Tested on devices | Nokia E65 |
| Category | Symbian C++ | Subcategory | Files/Data |
| Keywords (APIs, classes, methods, functions): |
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.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What components does the Nokia M2M Gateway 2.0 S. P. Edition include? | Nokia_FAQ | Nokia M2M | 1 | 2002-05-13 22:39 |
| creating ui | aliffsyazwan | Carbide.c++ and CodeWarrior Tools | 2 | 2007-07-19 13:20 |
| problem with MIDP applications | ferozekadamapuzha | Mobile Java General | 1 | 2003-05-06 12:25 |
| Talk to the Guru: Eco(ding) | kevin_s2f | General Symbian C++ | 7 | 2008-10-08 10:35 |
| from CFbsBitmap to struct and back | miguelbl | Symbian Media (Graphics & Sounds) | 4 | 2006-07-03 14:20 |

