Namespaces
Variants
Actions

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

Jump to: navigation, search



Article Metadata

Compatibility
Platform(s): S60 1st Edition
S60 2nd 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 08:53.
89 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