×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor
    Join Date
    May 2010
    Posts
    152

    How to use FR, RI, RR options in pkg file?

    Hi,

    I want that whenver my application is installed it should start automatically (no problem if it runs in the background), and it should run (and come to foreground) also whenever someone tries to uninstall it.

    My application is dependent on a few files and I am unable to understand that where and how to use these three options (FR, RI, RR) in the pkg file.

    Can anybody plz help me to solve this issue?

    Thanks in advance.
    Ravi Soni

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,025

    Re: How to use FR, RI, RR options in pkg file?


  3. #3
    Regular Contributor
    Join Date
    May 2010
    Posts
    152

    Re: How to use FR, RI, RR options in pkg file?

    Quote Originally Posted by vineet.jain View Post
    thanks vineet for your reply. I have gone through the document you mentioned and it helped a lot.
    Now I am facing another problem and that is :

    I am using the RR option in the package file and my application starts as soon as it is uninstalled.
    BUT in case my application is already running(in background) and then it is uninstalled (with the same RR option in pkg file). the device hangs at the "Remove" screen.

    Is it bcoz that one instance of the application is already running and we are trying to run it again. or the reason is diffrent.

    Kindly guide me, I want that if the application is running and it is tried to be removed than also it should open (or atleast the device should not hang on "Remove" screen)

    Thanks and Regards,
    Ravi Soni
    Last edited by raviksoni; 2010-11-30 at 07:05.
    Ravi Soni

  4. #4
    Regular Contributor
    Join Date
    May 2010
    Posts
    152

    System error on using RR option in pkg file

    Hi,

    I want to run an exe at the time of removing an application (which is not the same app as mentioned exe file)
    for that in the pkg file of application I have written the name of exe file with RR option.

    in the constructL function of exe file I am trying to close the installer.
    But at the time of uninstallation the application is removed successfully and there is a "System Error" just before remove screen.

    Here are a few lines of code:
    //// from the exe file :
    Code:
    void CRemoveAppUi::ConstructL()
    {
    	const TUid KInstallerUidin3rdEd = {0x101f875a};	
    	RWsSession& wsSession = CEikonEnv::Static()->WsSession();
    	TApaTaskList taskList(wsSession);
    	TApaTask aTask2 = taskList.FindApp(KInstallerUidin3rdEd);
    	
    	if(aTask2.Exists())
    		aTask2.EndTask();
    }
    //// statement from the pkg file of first app
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\Remove.exe" -"!:\sys\bin\Remove.exe", RR
    Plz anybody tell that why this "System error" is coming and why the installed is not being closed.

    Please reply as soon as possible.

    Thanks in advance,
    Ravi Soni
    Ravi Soni

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

    Re: System error on using RR option in pkg file

    ",RR" does not mean anything as I know, it should be ",FR,RR". An ",FR,RR,RW" would be the real safe bet.
    Otherwise placing Remove.exe as the first deployable in the .pkg file is a good idea (otherwise the files preceding it may get removed), and it should be a GUI-less executable, preferably without external dependencies.

    The Wiki page is nice, but if you search for RR in the SDK Help, that may be even nicer.

    EDIT: merged your threads, keep things compact.

  6. #6
    Regular Contributor
    Join Date
    May 2010
    Posts
    152

    Re: System error on using RR option in pkg file

    Quote Originally Posted by wizard_hu_ View Post
    ",RR" does not mean anything as I know, it should be ",FR,RR". An ",FR,RR,RW" would be the real safe bet.
    Otherwise placing Remove.exe as the first deployable in the .pkg file is a good idea (otherwise the files preceding it may get removed), and it should be a GUI-less executable, preferably without external dependencies.

    The Wiki page is nice, but if you search for RR in the SDK Help, that may be even nicer.

    EDIT: merged your threads, keep things compact.
    Thanks for the quick reply wizard_hu,

    I tried using this RR statement above all the other files in pkg file (with FR and RW options), still it was not working, although its not a GUI-less application (but GUI-based). I will try it with a GUI less application.

    And can u plz tell that can I use the main app exe file only with RR and RI,FR options together. I tried it once but it didn't work when :

    The application is running in background and we try to remove our app, in such case it stuck on "Remove" screen for a long time and do not get un-installed.

    But it worked when the application is not running in background.

    Can you plz tell how to fix this problem.

    Thanks
    Ravi Soni

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

    Re: System error on using RR option in pkg file

    Here everything is about speed. The uninstaller may continue running pretty soon, so you have to shut it down as fast as you can. And startup of a GUI application can not be compared to a standalone executable which starts with a TFindProcess immediately as the first line in E32Main, search for the SWI process in 2-3 lines, and shut it down in the 5th one. You do not even need a Cleanup Stack for such a code.

  8. #8
    Regular Contributor
    Join Date
    May 2010
    Posts
    152

    Re: System error on using RR option in pkg file

    Thanks wizard_hu,

    I will try as u suggested.
    Ravi Soni

  9. #9
    Registered User
    Join Date
    Jun 2012
    Location
    India
    Posts
    15

    Re: How to use FR, RI, RR options in pkg file?

    hi In my application...when i on the device then my application is launching but i dont want ..PLz help me as..soon as possible
    Thanks
    Jayesh Verma

  10. #10
    Registered User
    Join Date
    Jun 2012
    Location
    India
    Posts
    15

    Re: System error on using RR option in pkg file

    Sir,
    In my application when device ON then My aplication is Launch But idont want this so Plz help me as soon as possible argent ..
    Thanks
    Jayesh Verma

  11. #11
    Registered User
    Join Date
    Jun 2012
    Location
    India
    Posts
    15

    Re: System error on using RR option in pkg file

    How to send application in backgroun ..plz help me
    I used this but its not working
    const TUid KUidAdCallHandlerApp =
    {
    0xEF2A5D67
    };
    TApaTaskList taskList(CEikonEnv::Static()-> WsSession());
    TApaTask task2 = taskList.FindApp(KUidAdCallHandlerApp);
    task2.SendToBackground();
    Plz help me as soon as possible
    Jayesh Verma

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

    Re: System error on using RR option in pkg file


Similar Threads

  1. PreInstall and ....,FR,RI in PKG files
    By zzf073 in forum Symbian
    Replies: 2
    Last Post: 2010-04-05, 04:38
  2. Autostart application after install RI,FR
    By neverma in forum Symbian
    Replies: 1
    Last Post: 2010-03-11, 08:34
  3. [moved] Executing an .exe after uninstall with FR,RR options
    By rsiudak in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 6
    Last Post: 2009-10-07, 14:53
  4. Replies: 3
    Last Post: 2008-07-08, 07:29
  5. Can i run two different exe at FR,RI
    By aamitgupta in forum Symbian
    Replies: 4
    Last Post: 2008-03-14, 15:07

Posting Permissions

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