Adding a README screen
during the SIS install process
You really should read this...
By now, you should have your super cool PyS60 app slick and mean and ready for the world!
It's nice to display a README during the installation process which can contain legalese stuff (like privacy agreements) or important warnings (like you should have a data plan to use this software) or extra information (like you really need a GPS to use this software).
After reviewing the agreement, we'll give people their last chance to cancel out of the operation.
So, by now you should be really familiar with Jürgen's tutorial on building python SIS files. :)
There, you will notice the last step where you use makesis to create a sis from your application's PKG file.
In his example, you will find the sample PKG file:
; Standalone Python for S60 app
;Languages
&EN
#{"mobiLen"},(0x0FFFFFFF),1,0,0
;Supports Series 60 v 2.0
(0x101F7960), 0, 0, 0, {"Series60ProductID"}
; Files to install:
"default.py" -"!:\system\apps\mobiLen\default.py"
"mobiLen.app" -"!:\system\apps\mobiLen\mobiLen.app"
"mobiLen.rsc" -"!:\system\apps\mobiLen\mobiLen.rsc"
"mobiLen.aif" -"!:\system\apps\mobiLen\mobiLen.aif"
The first step is to make a simple TXT file in the same directory as our PKG file. I'll call mine readme.txt. With that file, we will simply add the line:
"readme.txt" - "",FILETEXT, TEXTEXIT
This tells the installer to use the text file as the info screen. the second argument (TEXTEXIT), adds the ability for someone to cancel out of the installation if they chicken out. You can see the readmeSample.pkg for more info.
© Copyright David Ayman Shamma: ayman shamma•gmail com