After you install sisx or sis, it is easy to implement the automatic program of the application. You only need to modify the. pkg file. The modified section is marked in red bold below.
Source file:
& EN
# {"TestAutoStart"}, (0xEAF18DD0), 1, 0, 0
% {"Vendor-EN "}
: "Vendor"
[0x101F7961], 0, 0, 0, {"Series60ProductID "}
"$ (EPOCROOT) Epoc32 \ release \ $ (PLATFORM) \ $ (TARGET) \ TestAutoStart_0xEAF18DD0.exe "-"! : \ Sys \ bin \ TestAutoStart_0xEAF18DD0.exe"
"$ (EPOCROOT) Epoc32 \ data \ z \ resource \ apps \ TestAutoStart_0xEAF18DD0.rsc "-"! : \ Resource \ apps \ TestAutoStart_0xEAF18DD0.rsc"
"$ (EPOCROOT) Epoc32 \ data \ z \ private \ 10003a3f \ apps \ TestAutoStart_0xEAF18DD0_reg.rsc "-"! : \ Private \ 10003a3f \ import \ apps \ TestAutoStart_0xEAF18DD0_reg.rsc"
"$ (EPOCROOT) Epoc32 \ data \ z \ resource \ apps \ TestAutoStart_0xEAF18DD0.mif "-"! : \ Resource \ apps \ TestAutoStart_0xEAF18DD0.mif"
".. \ Help \ TestAutoStart_0xEAF18DD0.hlp "-"! : \ Resource \ help \ TestAutoStart_0xEAF18DD0.hlp"
".. \ Sis \ backup_registration.xml "-"! : \ Private \ EAF18DD0 \ backup_registration.xml"
S60 3rd:
& EN
# {"TestAutoStart"}, (0xEAF18DD0), 1, 0, 0
% {"Vendor-EN "}
: "Vendor"
[0x101F7961], 0, 0, 0, {"Series60ProductID "}
"$ (EPOCROOT) Epoc32 \ data \ z \ resource \ apps \ TestAutoStart_0xEAF18DD0.rsc "-"! : \ Resource \ apps \ TestAutoStart_0xEAF18DD0.rsc"
"$ (EPOCROOT) Epoc32 \ data \ z \ private \ 10003a3f \ apps \ TestAutoStart_0xEAF18DD0_reg.rsc "-"! : \ Private \ 10003a3f \ import \ apps \ TestAutoStart_0xEAF18DD0_reg.rsc"
"$ (EPOCROOT) Epoc32 \ data \ z \ resource \ apps \ TestAutoStart_0xEAF18DD0.mif "-"! : \ Resource \ apps \ TestAutoStart_0xEAF18DD0.mif"
".. \ Help \ TestAutoStart_0xEAF18DD0.hlp "-"! : \ Resource \ help \ TestAutoStart_0xEAF18DD0.hlp"
".. \ Sis \ backup_registration.xml "-"! : \ Private \ EAF18DD0 \ backup_registration.xml"
"$ (EPOCROOT) Epoc32 \ release \ $ (PLATFORM) \ $ (TARGET) \ TestAutoStart_0xEAF18DD0.exe "-"! : \ Sys \ bin \ TestAutoStart_0xEAF18DD0.exe ", FR, RI
S60 2nd:
& EN
# {"TestAutoStart"}, (0xEAF18DD0), 1, 0, 0
% {"Vendor-EN "}
: "Vendor"
[0x101F7961], 0, 0, 0, {"Series60ProductID "}
"$ (EPOCROOT) Epoc32 \ data \ z \ resource \ apps \ TestAutoStart_0xEAF18DD0.rsc "-"! : \ Resource \ apps \ TestAutoStart_0xEAF18DD0.rsc"
"$ (EPOCROOT) Epoc32 \ data \ z \ private \ 10003a3f \ apps \ TestAutoStart_0xEAF18DD0_reg.rsc "-"! : \ Private \ 10003a3f \ import \ apps \ TestAutoStart_0xEAF18DD0_reg.rsc"
"$ (EPOCROOT) Epoc32 \ data \ z \ resource \ apps \ TestAutoStart_0xEAF18DD0.mif "-"! : \ Resource \ apps \ TestAutoStart_0xEAF18DD0.mif"
".. \ Help \ TestAutoStart_0xEAF18DD0.hlp "-"! : \ Resource \ help \ TestAutoStart_0xEAF18DD0.hlp"
".. \ Sis \ backup_registration.xml "-"! : \ Private \ EAF18DD0 \ backup_registration.xml"
"$ (EPOCROOT) Epoc32 \ release \ $ (PLATFORM) \ $ (TARGET) \ TestAutoStart_0xEAF18DD0.exe "-"! : \ Sys \ bin \ TestAutoStart_0xEAF18DD0.exe ", FILERUN, RUNINSTALL, RUNWAITEND
Note:
The automatically started program should be placed in the last line of pkg. This statement is executed as soon as it is copied to "sys" bin. At this time, the resource file or something is often not copied to the target folder, so the execution fails, instead of not being executed, in general, this statement should be placed in the last row to be more secure.