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

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