Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

How can I define conditionals to the .pkg file for comparing S60 platform versions?

From Wiki
Jump to: navigation, search



Article Metadata
Compatibility
Platform(s): S60 1st Edition
S60 2nd Edition
S60 2nd Edition (initial release)
S60 1st Edition
Article
Created: User:Technical writer 2 (30 Apr 2004)
Last edited: hamishwillee (14 Jun 2012)

Overview

How can I define conditionals to the .pkg file for comparing S60 platform versions?

Description

There are about six base files which are installed to all platforms and one conditional file which is installed only to the Nokia 7610 and to a device where the platform version is greater than the platform of the Nokia 7610.  Can I determine the platform version?

Solution

Note that most pkg lines are valid within a condition block. However, the following line types may not be used: languages, package-header, package signature, requisites, and capabilities.
Unfortunately ,the platform version are defined as requisites, and therefore they cannot be used within a condition block.  Regardless of the platform, Nokia devices have a directory "z:\system\install" that contains sis files named with the syntax "Series60vx.x.sis"
For example, a Nokia 7610-dependent component can be installed as
IF exists("z:\system\install\Series60v2.1.sis")
; 7610 dependent component
ELSEIF exists("z:\system\install\Series60v2.6.sis")
; S60 Platform 2.6 dependent component
ELSE
; S60 1.x dependent component
ENDIF

This page was last modified on 14 June 2012, at 05:53.
24 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×