Subject: [基础] 如何创建Sis文件(一、概叙)
Lee
Administrator
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 0
Credits 18567
Posts 133
Money 189
Reading Access 200
Registered 13-3-2007
Status Offline
Post at 29-3-2007 13:10  Profile | Blog | P.M. 
如何创建Sis文件(一、概叙)

概叙

SIS文件是一种标准,它是方便的发布Symbian 应用程序的方式:

1. 最终用户可以利用Symbian 操作系统手机中所携带的安装程序或者从电脑的连通性软件也进行安装/卸载SIS包。
2. SIS文件使用内嵌机制来部署共享资料库和应用升级。
3. SIS文件格式紧密 (采用了zlib 压缩技术)

SIS文件通过计算机中的makesis工具生成,在所有的C++ SDK中可以使用:[attach]32[/attach]
makesis工具有两个输入:
应用文件(可执行文件,源文件,数据文件等)
PKG文件,其包含关于如何创建SIS文件包的说明。

PKG文件是正确创建包的关键。它可以通过SISAR工具自动生成或手工写入。当你使用NOKIA应用程序向导创建工程时,向导将创建一个默认的PKG文件(文件放置在 %project directory%\install目录下)。

Makesis的用法

创建SIS文件的命令行语句如下:

makesis [flags] source [destination]

| Flags | Meaning | Comment |
| -v | Verbose | 打印输出到屏幕|
| -h | Help |显示使用信息|
| -s | Stub | 为包中所定义的每种语言生成剩余的SIS文件,扩展名为.sxx,xx 为语言编码,如.s10|
| -p password | Password | 当用加密的密钥文件来标记SIS文件时指定的密码 |
| -d directory | Directory |如果没有指定完整的路径时可用该路径搜索source文件|

参数source为PKG文件名,并且是必填参数。
参数destination 为目标文件名。如果没有被指定,他将使用PKG文件名,并用sis扩展名来创建。

PKG文件概叙

PKG文件是一个文本文件,它包含了应用程序或文件的安装信息,由以下部分组成:
-所支持的语言
-头文件,包括被安装组件名称和创建的版本信息。
-产品/平台版本的兼容性
-包的签名资料(可选)
-包的详细信息

包的详细信息包括:
-选择行
-条件块
-安装的独立语言文件
-language-dependent文件,只有一种将被安装
-性能行
-所需组件
-嵌入的SIS文件
-注释

下面用一个简单的PKG文件为例介绍各个选项:

;
; Installation file for DummyLC application
; (c) NewLC 2003
;
;Languages
&EN,FR
;
; UID is the app's UID
;
#{"DummyLC","BetaLC"},(0x0010D003),1,01,12,TYPE=SISAPP
;
;Supports Series 60 v 0.9
(0x101F6F88), 0, 0, 0, {"Series60ProductID","Series60ProductID"}
;
; Display Release notes
;
"release.txt" - "", FILETEXT, TEXTCONTINUE
;
; Install language dependent data
;
{
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\DummyLC.r01"
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\DummyLC.r02"
}-"!:\system\apps\DummyLC\DummyLC.rsc"
;
; Files to install
;
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\DummyLC.app"          - "!:\system\apps\DummyLC\DummyLC.app"
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\DummyLC.aif"         -"!:\system\apps\DummyLC\DummyLC.aif"
;
; Install and run a server
;
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\RunMe.exe"         -"!:\system\apps\DummyLC\RunMe.exe",FR,RI
;
; Install shared component
;
@"..\..\Common\DLL\Install\newlcdll.sis",(0x1000FD000)
;
; Make sure the configuration file is removed on uninstall
;
""-"C:\system\apps\DummyLC\DummyLC.ini",FN

下一个部分将介绍该文件的详细内容
请看: 如何创建Sis文件(二、PKG文件格式)


 Attachment: Your usergroup does not have permission to access attachments




有其他问题请加入Symbian开发群参与讨论:群 ①:623041已满,群②:36865776已满 请加群③:76404484
Top
Lee
Administrator
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 0
Credits 18567
Posts 133
Money 189
Reading Access 200
Registered 13-3-2007
Status Offline
Post at 29-3-2007 13:53  Profile | Blog | P.M. 
How to create a SIS file- Overview

Overview
SIS files is a standard and convenient way to distribute Symbian applications:
End users can install/uninstall a SIS package either from a PC using connectivity software, or from an Symbian OS phone using an on-board installation program.
SIS files have embedded mechanism that allow deployment of shared libraries or application upgrades
The SIS file format is compact (it uses zlib compression)

SIS files are generated on a PC using the makesis tool, available with in all C++ SDKs:[attach]33[/attach]
The Makesis tool has two inputs:
your application files (executables, resources, data files...)
a PKG file that contains instructions on how to create the SIS package.

This PKG file is the key to create a correct package. It can be generated automatically using the SISAR tool or written manually. The Nokia Application Wizard creates a default PKG file when you use it to start a project (it is located in the %project directory%\installdirectory).

Makesis usage
The command line syntax for creating a SIS file is :

makesis [flags] source [destination]

Flags  Meaning  Comment  
-v  Verbose  Prints output to the screen  
-h  Help  Shows the usage information  
-s  Stub  Generates a residual sis file for each language defined in the package file. The extension is .sxx, where xx is the number of the language, e.g. .s10  
-p password  Password  Specifies the password when an encrypted private key file is used to digitally sign the sis file.  
-d directory  Directory  The directory that is searched for source file if its full path is not specified.  

source is the name of the pkg file and is the only mandatory parameter.
destination is name of the destination file. If not specified, this is derived from the name of the pkg file, but with a sis file extension.

The PKG file overview
A pkg file is a text file which contains installation information for applications or files. It consists of the following parts:
the supported languages
the package header, including the name of the component to be installed and its build and version information
product / platform version compatibility
package signature details (optional)
package details

The package details can contains:
options line
condition blocks
language independent files to install
language-dependent files, of which only one will be installed
capabilities line
requisite components
embedded SIS files
comments

Here is a sample PKG file we will use to browse each of these options:

;
; Installation file for DummyLC application
; (c) NewLC 2003
;
;Languages
&EN,FR
;
; UID is the app's UID
;
#{"DummyLC","BetaLC"},(0x0010D003),1,01,12,TYPE=SISAPP
;
;Supports Series 60 v 0.9
(0x101F6F88), 0, 0, 0, {"Series60ProductID","Series60ProductID"}
;
; Display Release notes
;
"release.txt" - "", FILETEXT, TEXTCONTINUE
;
; Install language dependent data
;
{
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\DummyLC.r01"
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\DummyLC.r02"
}-"!:\system\apps\DummyLC\DummyLC.rsc"
;
; Files to install
;
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\DummyLC.app"          - "!:\system\apps\DummyLC\DummyLC.app"
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\DummyLC.aif"         -"!:\system\apps\DummyLC\DummyLC.aif"
;
; Install and run a server
;
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\RunMe.exe"         -"!:\system\apps\DummyLC\RunMe.exe",FR,RI
;
; Install shared component
;
@"..\..\Common\DLL\Install\newlcdll.sis",(0x1000FD000)
;
; Make sure the configuration file is removed on uninstall
;
""-"C:\system\apps\DummyLC\DummyLC.ini",FN

The details of this file will be studied in the next section.

原文地址


 Attachment: Your usergroup does not have permission to access attachments




有其他问题请加入Symbian开发群参与讨论:群 ①:623041已满,群②:36865776已满 请加群③:76404484
Top
 


All times are GMT+8, the time now is 9-9-2010 20:07

CopyRight © Symbianx.cn 2007 Powered By Discuz! 5
Clear Cookies - Contact Us - Symbian OS系统[S60,UIQ]开发中文翻译论坛 - Archiver

本站原文版权归原文作者所有,本站译文版权归本站所有,如需转载请注明原文和译文出处,否则追究法律责任