×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Dec 2005
    Location
    Albacete, Spain
    Posts
    380

    Autostart muliple exe's packaged in same sis

    I have a SIS with three executables (exe1, exe2 and exe3).

    I want two of them, exe1 and exe2, to autostart when the phone boots.

    Following a lead from a previous thread, I created the SIS using the UID for exe1 (0xEB2A9C95).
    In the autostart resource (EB2A9C95.rss) for exe1 I added the paths two exe1 and exe2 in the following way:

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

    the pkg to create the sis is the following:

    Code:
    ;Language - standard language definitions
    &EN
    
    ; standard SIS file header
    #{"Exe1Project"},(0xEB2A9C95),1,0,0
    
    ;Localised Vendor name
    %{"aCompany"}
    
    ;Unique Vendor name
    :"aCompany"
    
    ;Supports Series 60 v 3.0
    [0x101F7961], 0, 0, 0, {"Series60ProductID"}
    
    ;Files to install
    
    ;GMPB Server
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\GMPBServer.exe"	-"!:\sys\bin\GMPBServer.exe",FR,RI
    "$(EPOCROOT)Epoc32\data\z\resource\apps\EB2A9C95.rsc" 			-"c:\private\101f875a\import\[EB2A9C95].rsc"
    
    ;Remove Installed files
    ""-"C:\Data\Gmpb\*",FN
    ""-"C:\Data\Gmpb\",FN
    
    ;SMS Client
    "$(EPOCROOT)Epoc32\data\z\resource\apps\GmpbSmsClient.r04"		-"!:\resource\apps\GmpbSmsClient.r04"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\GmpbSmsClient_reg.r04"	-"!:\private\10003a3f\import\apps\GmpbSmsClient_reg.r04"
    "$(EPOCROOT)epoc32\data\z\resource\apps\GmpbSmsClient.mbm" 		-"!:\resource\apps\GmpbSmsClient.mbm"
    "C:\Symbian\Carbide\workspace\GmpbSmsClient\sis\startonboot.txt"	-"!:\private\EDAAB288\startonboot.txt"
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\GmpbSmsClient.exe"	-"!:\sys\bin\GmpbSmsClient.exe",FR,RI
    
    ;SeguridadSymbian
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\SeguridadSymbian.exe"	-"!:\sys\bin\SeguridadSymbian.exe"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\SeguridadSymbian.r04"		-"!:\resource\apps\SeguridadSymbian.r04"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\SeguridadSymbian_reg.r04" -"!:\private\10003a3f\import\apps\SeguridadSymbian_reg.r04"
    "$(EPOCROOT)epoc32\data\z\resource\apps\SeguridadSymbian.mbm" -"!:\resource\apps\SeguridadSymbian.mbm"
    
    ;Remove Installed files
    ""	-"C:\Data\SS\*",FN
    ""	-"C:\Data\SS\",FN
    What I am getting is that exe2 autostarts but exe1 does not.

    Is this the correct way to do this?
    ----------------------------------------------
    Every journey starts with a small step.

  2. #2
    Regular Contributor
    Join Date
    Aug 2005
    Location
    India
    Posts
    399

    Re: Autostart muliple exe's packaged in same sis

    Never did like this. Start exe1 as autostart and from exe1 lauch exe2.

  3. #3
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Autostart muliple exe's packaged in same sis

    Through AutoStartUP API you can set autostart functionality in your root exe means the exe UID is same as PKG file and through this EXE you can launch many of the exes.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  4. #4
    Registered User
    Join Date
    Dec 2005
    Location
    Albacete, Spain
    Posts
    380

    Re: Autostart muliple exe's packaged in same sis

    after some trial and error, I finally got it right. Was only a stupid mistake:

    RESOURCE STARTUP_ITEM_INFO gmpb
    {
    executable_name = "!:\\sys\\bin\\GMPBServer.exe";
    recovery = EStartupItemExPolicyNone;
    }
    RESOURCE STARTUP_ITEM_INFO gmpbsms
    {
    executable_name = "!:\\sys\\bin\\GmpbSmsClient.exe";
    recovery = EStartupItemExPolicyNone;
    }

    instead of the previous STARTUP_ITEM_INFO
    ----------------------------------------------
    Every journey starts with a small step.

  5. #5
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Autostart muliple exe's packaged in same sis

    Quote Originally Posted by juannoguera View Post
    after some trial and error, I finally got it right. Was only a stupid mistake:

    RESOURCE STARTUP_ITEM_INFO gmpb
    {
    executable_name = "!:\\sys\\bin\\GMPBServer.exe";
    recovery = EStartupItemExPolicyNone;
    }
    RESOURCE STARTUP_ITEM_INFO gmpbsms
    {
    executable_name = "!:\\sys\\bin\\GmpbSmsClient.exe";
    recovery = EStartupItemExPolicyNone;
    }

    instead of the previous STARTUP_ITEM_INFO
    Means you can launch multiple exe from one PKG?

    If yes then can you eleborate how can di this? these Resource STARTUP_ITEM_INFO function you set in same rss file or all the exe RSS file?
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  6. #6
    Registered User
    Join Date
    Dec 2005
    Location
    Albacete, Spain
    Posts
    380

    Re: Autostart muliple exe's packaged in same sis

    Yes, I could get the two exe's to autostart. And they are packed in the same sis.

    Put the two STARTUP_ITEM_INFO in the same RSS file.

    You have to take care though, on letting the user disable the autostart feature on each exe individually. I think that this is mandatory to comply with Symbian Signed Criteria.

    I'll try to contribute this in the Wiki during the weekend.
    ----------------------------------------------
    Every journey starts with a small step.

  7. #7
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Autostart muliple exe's packaged in same sis

    Quote Originally Posted by aamitgupta View Post
    Means you can launch multiple exe from one PKG?

    If yes then can you eleborate how can di this? these Resource STARTUP_ITEM_INFO function you set in same rss file or all the exe RSS file?
    There is documentation for this in the SDK, and as I remember this use case is mentioned there as well.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  8. #8
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Autostart muliple exe's packaged in same sis

    Quote Originally Posted by juannoguera View Post
    Yes, I could get the two exe's to autostart. And they are packed in the same sis.

    Put the two STARTUP_ITEM_INFO in the same RSS file.

    You have to take care though, on letting the user disable the autostart feature on each exe individually. I think that this is mandatory to comply with Symbian Signed Criteria.

    I'll try to contribute this in the Wiki during the weekend.
    Thanks for give me the information.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

Similar Threads

  1. About embeded sis and autostart application
    By maoxizhu in forum Symbian
    Replies: 1
    Last Post: 2009-04-24, 13:08
  2. Install Jar through packaged with Sis??
    By rakeshyadav in forum Symbian
    Replies: 7
    Last Post: 2008-11-11, 14:33
  3. one SIS, two EXEs (3rd ed.)
    By darioses in forum Symbian
    Replies: 22
    Last Post: 2008-09-02, 04:19
  4. Question about Mulitiple EXEs in SIS
    By Joney.Zhang in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 3
    Last Post: 2007-02-11, 12:52
  5. Replies: 4
    Last Post: 2006-06-30, 14:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×