×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    12

    Auto start application when installation finished

    Hey guys!

    I have a question.
    How to start application ( exe ) after installation is finished?

    I read that we can put commands ( ,FR,RI ) in pkg file:

    So.. i have take helloworld example which is located in SDK ( S60_3rd_FP2_SDK_2\S60CppExamples\helloworldbasic).

    and add:
    "..\..\..\epoc32\release\gcce\urel\HelloWorldBasic.exe" -"!:\sys\bin\HelloWorldBasic.exe", FR, RI

    HelloWorldBasic doesn't start after installation is finished.. Anyone know why??? I put this above command in the end of pkg file so other resources are already copied. Installation successfully finished but helloWorld doesn't starts...

    Must have application (exe) some other start/exit implementation as in HelloWorldBasic example that will be starded after installation??

    Second question:
    How can i run wgz application with symbian.. Maybe with SW Installer launcher api??

    I want that when sis installation is finished it automatically run my installer.exe which then run wgz file..

    I'll be very grateful for any help.

    Thank you very much.

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008
    Posts
    333

    Re: Auto start application when installation finished

    to autostart an application after installation, you can add ",FILERUN,RUNINSTALL" in your .pkg file:

    "MyApp.APP"-"!:\system\apps\ MyApp\ MyApp.app",FILERUN,RUNINSTALL

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    12

    Re: Auto start application when installation finished

    But this doesn't work for me..

    If i add this ( FILERUN,RUNINSTALL ) to pkg, HelloWorldBasic doesn't start automatically

    What can i do to run this example automatically after installation?
    Can anyone try it?

    Example is in CppExamples after SDK installation.
    e.g: C:\S60\devices\S60_3rd_FP2_SDK_2\S60CppExamples\helloworldbasic

    Thanx!

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: Auto start application when installation finished

    If you search for FILERUN in the SDK Help, the answer is there:
    Quote Originally Posted by SDK Help, "SW Installation"
    Can I launch my application during the install/uninstall procedure?

    Your application must be certified in order to use FILERUN and launch it during install/uninstall. Self-signed applications cannot be launched.

  5. #5
    Registered User
    Join Date
    Oct 2008
    Posts
    12

    Re: Auto start application when installation finished

    wizard_hu: thank you

    So.. my problem is that sis is only self-signed.. so cannot be run after installation.

    I have a just one question. FR , RI arguments runs application DURING installation.. It is posible to run it only AFTER installation ( when installation is finished )?

    Thank everyone!

  6. #6
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Auto start application when installation finished

    Hi,
    What do you mean by "run after installation"?? Actually your application will rrun only once the installation is finished and on completion it will start you application that is the reason you place your app in the end so that all the components used by application are installed and then the application is launched.
    Maximus
    S60 Developer
    Impossible is nothing

  7. #7
    Regular Contributor
    Join Date
    Nov 2007
    Location
    Pune, India
    Posts
    94

    Re: Auto start application when installation finished

    Hi markos123,

    Look at this link
    http://discussion.forum.nokia.com/forum/showthread.php?t=144551

    Hope this helps...
    Regards,
    Amey

  8. #8
    Registered User
    Join Date
    Oct 2008
    Posts
    12

    Re: Auto start application when installation finished

    yogpan:

    I want that when "sis" installation is finished it runs my "installer.exe" which then run "wgz" WRT - widget file ( installation ).

    So sis installation must be finished that other installation manager ( WRT ) can be run..

  9. #9
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Auto start application when installation finished

    Hi,
    In that case what you can do is to programmatically install the WRT - widget file from your application once it is running.Check this link to know more about how to do it programmatically
    http://wiki.forum.nokia.com/index.ph...r_Launcher_API
    Maximus
    S60 Developer
    Impossible is nothing

  10. #10
    Registered User
    Join Date
    Oct 2008
    Posts
    12

    Re: Auto start application when installation finished

    yogpan:

    Thank you very much.. it works on Emulator

    I'm using method of SW Launcher API

    IMPORT_C TInt SwiUI::RSWInstLauncher::Install ( RFile & aFile )

    i declare path like this :
    _LIT(KPath,"c:\\widget.wgz");
    TBufC<50> FName( KPath );
    iLauncher.Install( FName );

    like i said.. it works okey in emulator..
    But how can i set path that will bi run in mobile phone??
    How to set relative path? Above path is in emulators c folder

    I have widget.wgz is !:/sys/bin/ and /data directory on phone.

  11. #11
    Registered User
    Join Date
    Oct 2008
    Posts
    12

    Re: Auto start application when installation finished

    Just one question:

    On which folder in phone is good to copy external program that will be run later?

    I want to put Widget.wgz to folder on which i can run with Launcher API later.


    e.g.: !:\private\10003a3f\import\apps\ ?

  12. #12
    Registered User
    Join Date
    Dec 2006
    Posts
    187

    Re: Auto start application when installation finished

    i have an exe application and in pkg file i have the line

    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\MyExe.exe" -"!:\sys\bin\MyExe.exe" ,FR,RI


    when i intall it, exe does not auto start itself after installaion.

  13. #13
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Auto start application when installation finished

    note that RI & RR will not work with self signed SIS files.

Similar Threads

  1. j2me application installation time for 3rd ed devices?
    By rayappan in forum Mobile Java General
    Replies: 1
    Last Post: 2008-10-14, 12:42
  2. Removing application from auto start list
    By atul_kulkarni in forum Symbian
    Replies: 2
    Last Post: 2008-08-22, 13:18
  3. Replies: 33
    Last Post: 2008-01-16, 10:43
  4. problem with auto start application
    By sanjaychavada in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-08-09, 13:25
  5. How to start an application via Bluetooth on Nokia 6670?
    By anummiah in forum Mobile Java General
    Replies: 3
    Last Post: 2006-01-05, 11:05

Posting Permissions

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