Embedded .sis file that contains start on boot entry

Login to reply to this topic.
Wed, 2007-06-13 17:49
Joined: 2005-05-22
Forum posts: 23
Hi,

i've a sis file that contains a executable that starts on bootup. It works fine. After installation and after reboot the application starts. I call
this application a 'watchdog' for simplicity reasons and the sis file
the watchdog.sis file.

Now i want to embedd the watchdog.sis file into a parent sis file. If i install the parent sis file (which in turn installs the embedded watchdog.sis file) the watchdog application is not started on bootup anymore.

The watchdog sis file and the parent sis file have two different ID's.
The parent sis file ONLY embeds the watchdog sis file (no other binaries).

There is a documentation that says if a boot-on-startup application is embedded into a parent sis file then the 'control resource' has to be included in the parent sis file.

The control resource is the rsc file that configures the startup:
#include <startupitem.rh>

RESOURCE STARTUP_ITEM_INFO watchdog
{
   executable_name = "!:\\sys\\bin\\watchdog.exe";
   recovery = EStartupItemExPolicyNone;
}


and both PKG files (watchdog.pkg and parent.pkg) contain this line:
"p:\Epoc32\data\watchdog.rsc" - "c:\private\101f875a\import\[2000A38D].rsc"


I've played around a lot with the ID's but i do not get it working.

1) Do i have to include the 'control resource' in both PKG files or
ONLY in the parent PKG file?
2) What ID should be in [<id>] for both PKG files? The ID of the parent PKG file or always the ID of the watchdog PKG file?

thanks

mike

Wed, 2007-06-13 23:16
Joined: 2004-09-14
Forum posts: 140
Re: Embedded .sis file that contains start on boot entry
  • Login to reply to this topic.