Symbian
 Developer Library

SYMBIAN OS V9.1

FEEDBACK 

[Index] [Spacer] [Previous] [Next]



How to create a simple installation file

The simplest installation file is one which simply bundles an application's files and installs them to a specified location on the target phone. The installation will not support multilingual files, or display text or run a program at install time. The process is:

  1. Create a text file with extension .pkg.

  2. Specify the package header. In the simplest installation this consists of the application's name, its UID, and its major, minor and build numbers.

  3. Specify the source location of files which should be installed and their destination on the target machine.

  4. Invoke CreateSIS on the package file to create (and sign) the installation (.sis) file.


Example

The project file for a minimal installation is provided in examples\ToolsAndUtilities\Install\HelloWorld.pkg.

A listing of the file is given below:

#{"Minimal application"},(0x10004299),1,0,0
; Only three files to install for the minimal application
"HelloWorld.exe"-"!:\sys\bin\HelloWorld.exe"
"HelloWorld_reg.rsc"-"!:\private\10003a3f\import\apps\HelloWorld_reg.rsc"
"HelloWorld.rsc"-"!:\resource\apps\HelloWorld.rsc"

The package header defines the application’s name “Minimal application”, UID (0x10004299) ,major and minor build numbers (1 , 0) and the build number (0). The second line, preceded by a semi-colon, is a comment. The final three lines specify the location of the files which should be put in the installation file, and their destination on the target machine.

To create the (signed) installation file HelloWorld.sis, invoke CreateSIS on the package file.

HelloWorld.sis can then be installed on the target machine. After installation the application may be run by selecting the HelloWorld icon on the extras bar.

[Top]


Notes

[Top]


See also