×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Startup List API and MMC restoration not working simultaneously

    Hi all,

    I have an application, which starts an .exe on phone start up. This is done using startup management list api and it is working fine.

    When i install this app on my memory card, and then remove this memory card and insert it on another new phone (formatted), then this application doesn't install automatically.

    However, if I simply comment the startup registration file (the one which is put into c:\private\101f875a\import\) in the package file and remake the sis and try the above experimentation, the app installs itself on the second phone as well and works just fine.

    Is this a known issue or has anyone every solved this ?

    thanks for any help !
    Amit Kankani
    Nokia Developer Champion

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

    Re: Startup List API and MMC restoration not working simultaneously

    Try this:

    Put a launcher application in a dedicated sis file together with its registration file.

    Your sis file will copy this file on the phone (e.g. in its private folder).

    In your main application's settings you will provide the Autostart: on/off setting with the following behavior:
    - when turned on the setting will trigger the launcher sis to be installed [silently]
    - when turned off the launcher application will be uninstalled [silently]

    The launcher sis file will remain untouched thus it will cause no problems with the application propagation. The only downside is that it is yet another sis file that you will have to pass through Symbian Signed but with good design you will only have to do this once and then re-use it for all your applications.
    -- 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

  3. #3
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: Startup List API and MMC restoration not working simultaneously

    thanks for the help... this seems to be a good solution..

    well i have some queries on that...

    1. when i move the memory card to new device, how will i automatically trigger the launch the auto start sis installation.
    2. when i uninstall my application, how do i uninstall the other silently installed sis file
    3. Also on first install, it is by default set to autoStart, how can i achieve this with this design ?

    Also never tried lauching the installation silently, any guides to it?
    Amit Kankani
    Nokia Developer Champion

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

    Re: Startup List API and MMC restoration not working simultaneously

    Quote Originally Posted by amitkankani View Post
    thanks for the help... this seems to be a good solution..

    well i have some queries on that...

    1. when i move the memory card to new device, how will i automatically trigger the launch the auto start sis installation.
    2. when i uninstall my application, how do i uninstall the other silently installed sis file
    3. Also on first install, it is by default set to autoStart, how can i achieve this with this design ?

    Also never tried launching the installation silently, any guides to it?
    Let's start with #3, which in my personal opinion is not the best solution, you should not expect the user to allow an application to be autostarted before even having a look at it. The default setting should be off, then on first run (or rather just before the first clean exit) you can prompt the user if the would like that this application be autostarted on phone's boot.

    #2 is a valid point and requires some design changes ... how about if the utility SIS file is in fact of type PU and has the same package UID as the main application? All the components will be uninstalled at the same time but then the option of uninstalling the launcher in order to turn off the autostart is not working anymore, you'll have to use some other mechanism to prevent the autostart (e.g. public .ini file).

    #1 You won't. The application will default to autostart off and you carry on from there.

    Please note that while this entire scheme might be a smart idea I've never took the time of testing it. Let's see if there are any other flaws in it and maybe we can make it work.

    As for the silent [un]install the API is included in the SDK API Plug-ins and the operation requires TrustedUI capability.
    -- 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

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: Startup List API and MMC restoration not working simultaneously

    Amit,

    If your problem is concerned with UNI-09: Reinstallation and mass memory storage, then for Autostart behavior you can raise a waiver.
    UNI-09.EX3: Application uses the Nokia "Startup List Management API"
    This exception can apply where the SIS file uses the Nokia Start-Up API. If this API is used the .pkg file will contain a line similar to the following:
    "data\data\[0x12345678].rsc"-"c:\private\101f875a\import\[12345678].rsc"
    Where the UID is specified by the developer.
    Also you can find lengthy discussion on SDN: http://developer.symbian.com/forum/t...art=0&tstart=0

    Kiran.
    Nokia Developer Wiki Moderation team

  6. #6
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: Startup List API and MMC restoration not working simultaneously

    hi Kiran, bulls eye...
    I guess this is a simple thing to do, and more over, I have not much time (got time till tomorrow, which is too less).

    Will definitely give a thought to the great ideas presented to solve the issue, but will settle for the waiver option now...

    thanks
    Amit Kankani
    Nokia Developer Champion

  7. #7
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: Startup List API and MMC restoration not working simultaneously

    But one more thing...

    is this
    UNI-09.EX3:
    documented anywhere ? I couldn't find any reference
    Amit Kankani
    Nokia Developer Champion

  8. #8
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Smile Re: Startup List API and MMC restoration not working simultaneously

    Quote Originally Posted by amitkankani View Post
    But one more thing...

    is this
    UNI-09.EX3:
    documented anywhere ? I couldn't find any reference
    It has been added in the latest Test case which has been put under implementation from 19th May-2008.

    Download it from here: https://developer.symbian.com/wiki/d...+Test+Criteria

    Kiran.
    Nokia Developer Wiki Moderation team

  9. #9
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: Startup List API and MMC restoration not working simultaneously

    thanks for the update... that will definitely help.
    Amit Kankani
    Nokia Developer Champion

  10. #10
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: Startup List API and MMC restoration not working simultaneously

    Quote Originally Posted by amitkankani View Post
    thanks for the update... that will definitely help.
    Amit, also consider UNI-11 test case as you are using Auto start behavior in your application.

    Kiran.
    Nokia Developer Wiki Moderation team

  11. #11
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: Startup List API and MMC restoration not working simultaneously

    Yes I have taken care of that... Thanks for the reminder anyways.
    Amit Kankani
    Nokia Developer Champion

  12. #12
    Regular Contributor
    Join Date
    May 2007
    Posts
    320

    Re: Startup List API and MMC restoration not working simultaneously

    Quote Originally Posted by amitkankani View Post
    Yes I have taken care of that... Thanks for the reminder anyways.
    Hi Amit,
    Have you done Silent installation & autostart an application? Please give me some idea how to do that. I succeeded in Silent installation but couldn't succeed in autostart an application.

    Please tell me the way so that I can achieve that.

    Regards,
    ash_21.
    Life is Short..... Live it with Positive Attitude...

  13. #13
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: Startup List API and MMC restoration not working simultaneously

    http://wiki.forum.nokia.com/index.ph...Management_API

    this should help you on auto start of the application...
    Amit Kankani
    Nokia Developer Champion

Posting Permissions

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