Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


How to install optional components

Package files can install optional components. To do this, the PKG file should include an options list. This is a list of text strings displayed to the user, which can be selected from during installation. For instance:

!({"Install sample document1 (1Kb)"}, 
  {"Install sample document2 (1Kb)"})

Each string corresponds to a PKG file variable called option1, option2 etc, whose value can be 0 to signify that the option was not selected, or 1 to signify that the option was selected. These values can be tested inside condition blocks, for instance:

If option1 = 1
; install optional file 1 to the private directory
    "sample.txt"-"!:\private\E800005A\sample.txt";
endif

If option2 = 1
; install optional file 2 to the private directory
    "sample2.txt"-"!:\private\E800005A\sample2.txt";
endif