The following functions can be used in PKG file:
The package() function returns true if a package with the specified UID is installed, returns false otherwise.
The following example code installs foo.txt if a package exists with package UID 0x11223344 .
In the following example code, the exists() function installs the exists.txt file, if test.txt exists.
The first parameter to the appprop() function must be the package UID of the package file, in which the property is defined. The second parameter must be the property ID ( propid ) for which the property is to be retrieved.
The following example code tests the capabilities of another PKG file on which it is dependent:
The version () function returns true if the specified package exists on the Symbian device and its version satisfies the condition specified by the function parameters. Otherwise, it returns false.
In the following example, if the package with pUID 0x10000042 is installed on the device and its version is less than 1.1.1, the condition returns true. If the package does not exist or the package version does not satisfy the condition, it returns false:
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License v1.0.