×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    26

    Thumbs down c++ installer API?

    I try to develop an application which downloads application and then installs it.

    Can anyone tell me symbian installer API?

    Thanks a lot!

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: c++ installer API?

    you could start the installation process by opening the sis file with RApaLsSession.

    yucca

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    26

    Re: c++ installer API?

    yucca,

    could you give more details? for example, some code.

    thanks,

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    26

    Re: c++ installer API?

    yucca,

    did you mean that I should use the API StartDocument?

    ---------------------------------------------------------------------------
    StartDocument()
    TInt StartDocument(const TDesC& aFileName, const TDataType& aDataType, TThreadId& aId, TLaunchType aLaunchType=ELaunchNewApp);
    ---------------------------------------------------------------------------

    If so, I just need to specify my sis file name, data type, and thread id. Could you let me know what TDataType is for sis?

    Thanks,

    mobileworm

  5. #5
    Registered User
    Join Date
    Sep 2005
    Posts
    26

    Re: c++ installer API?

    my fault. There is another API without TDataType parameter.

    StartDocument()
    TInt StartDocument(const TDesC& aFileName, TThreadId& aId, TLaunchType aLaunchType=ELaunchNewApp);

  6. #6
    Registered User
    Join Date
    Sep 2005
    Posts
    26

    Re: c++ installer API?

    yucca,

    StartDocument does launch the application installer. However, it always complains corrupted file when I run it with emulator. Must I use device? Also, for series 60 SDK 3.0, is there any security implication with the application installer?

    Thanks in advance!

    Mobileworm

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: c++ installer API?

    StartDocument has been working well in real devices, for 3.0 I don't know yet.

    yucca

  8. #8
    Registered User
    Join Date
    Oct 2005
    Posts
    13

    Re: c++ installer API?

    One question I would have is of flow control:

    If you naively start the installer via RApaLsSession, then you have no way of knowing if the install was actually SUCCESFUL or not. Does anyone have any insight into how to actually know if the install worked or not?

  9. #9
    Regular Contributor
    Join Date
    Mar 2005
    Location
    Mumbai
    Posts
    212

    Re: c++ installer API?

    If u r downloading an application then it will install on its own,

    u just have to specify the correct path for the sis/jar file. As soon as it is downloaded the installer will start on its own. Just like it happens in the wap browsers.


  10. #10
    Registered User
    Join Date
    Oct 2005
    Posts
    13

    Re: c++ installer API?

    Quote Originally Posted by rathodavinash
    If u r downloading an application then it will install on its own,


    u just have to specify the correct path for the sis/jar file. As soon as it is downloaded the installer will start on its own. Just like it happens in the wap browsers.

    Not exactly.

    The issue is that if you move a sis file to the phone (within your application) and then launch it naievely via RApaLsSession it simply kicks off a process that goes out and installs it via the system installer.

    The problem is that you have NO IDEA what this process is REALLY doing. What if the user runs out of disk space? What if they decide to cancel the installation? What if the application was already on the phone and the installer decided not to install it? For an application utilizing the installer these are all very important questions to answer as we may want to take remedial action if the install does not work.

    Its not enough to just launch the process and hope for the best. It would be really useful if there was some method to verify that the installation ACTUALLY succeeded or not.

Similar Threads

  1. PC Suite error: (Code: Init IMediaControl2) HELP?!
    By chunkyspudmonkey in forum General Development Questions
    Replies: 29
    Last Post: 2008-06-30, 11:47
  2. Cryptography (cryptalg) API on Series 60?
    By cbrueckner in forum Symbian Networking & Messaging (Closed)
    Replies: 20
    Last Post: 2006-10-31, 12:05
  3. How to play AMR file in Nokia3200 using Nokia UI API
    By amitkumar_j2me in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-06-16, 09:14
  4. Cryptography (cryptalg) API on Series 60?
    By cbrueckner in forum Symbian
    Replies: 0
    Last Post: 2003-05-08, 11:16
  5. Cryptography (cryptalg) API on Series 60?
    By cbrueckner in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-05-08, 11:12

Posting Permissions

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