![Symbian Developer Library](../../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
This example package file shows the use of an options list and the
exists()
function to conditionally install some files.
; PKG file designed to show conditional installation
&EN
%{"Symbian Software Ltd."}
:"Symbian Software Ltd."
#{"ConditionalInstall"}, (0x10000041), 1, 2, 3
!({"Option1"},{"Option2"},{"Option3"})
if exists("c:\private\10000041\import\InstTest\romeo.txt")
"text\romeo.txt"-"!:\private\10000042\import\InstTest\romeo1.txt"
else
"text\romeo.txt"-"!:\private\10000042\import\InstTest\romeo.txt"
endif
if (option1 = 1) AND (option2 = 1)
"files\tbit.gif"-"!:\private\10000042\import\InstTest\tbit.gif"
endif
if version(0x10000042, <, 2, 0, 0)
"text\prev2.txt"-"!:\private\10000042\import\InstTest\prev2.txt"
elseif version(0x10000042,>=,2,0,0) AND version(0x10000042, <, 3, 0, 0)
"text\v2.txt"-"!:\private\10000042\import\InstTest\v2.txt"
elseif version(0x10000042,>=,3,0,0) AND version(0x10000042, <, 4, 0, 0)
"text\v3.txt"-"!:\private\10000042\import\InstTest\v3.txt"
else
"text\postv3.txt"-"!:\private\10000042\import\InstTest\postv3.txt"
endif