×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor
    Join Date
    Jan 2010
    Posts
    69

    RApaLsSession::GetAllApps() can not get .exe server?

    All:
    I want to check a server exe(console exe) exist in phone list, so i use RApaLsSession::GetAllApps() ;
    but in fact, it list all app except for console exe. as the funs is follow

    TBool CServerInstaller::IsServerExist(const TDesC& aAppFullName)
    {
    TInt num = 0;
    TInt errCode(KErrNone);
    RApaLsSession ls;
    User::LeaveIfError(ls.Connect());
    CleanupClosePushL(ls);
    User::LeaveIfError(ls.GetAllApps());
    ls.AppCount(num);
    TApaAppInfo appInfo;
    for (TInt i = 0; i < num; i++)
    {
    if (KErrNone == ls.GetNextApp(appInfo))
    {
    if (KErrNone == aAppFullName.CompareC(appInfo.iFullName))
    return ETrue;
    }
    }
    CleanupStack::PopAndDestroy();
    return EFalse;
    }

    Is there some additional setting in above fun, or other way to fetch all Apps include console exe?
    please help me,thank you!

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: RApaLsSession::GetAllApps() can not get .exe server?

    It is not about console.exe. It is about the lack of _reg.rsc for console.exe. RApaLsSession does not read the \sys\bin folder, it lists data from the registration files.

  3. #3
    Regular Contributor
    Join Date
    Jan 2010
    Posts
    69

    Re: RApaLsSession::GetAllApps() can not get .exe server?

    Quote Originally Posted by wizard_hu_ View Post
    It is not about console.exe. It is about the lack of _reg.rsc for console.exe. RApaLsSession does not read the \sys\bin folder, it lists data from the registration files.
    Thank you, wizard_hu_
    As RApaLsSession can not suit for my mind, so I try TFindProcess, but i still can not find my exe, I use follow func

    TBool CServerInstaller::IsServerExist(const TDesC& aAppFullName)
    {
    TFindProcess fp;
    TFullName procName;
    RProcess proc;
    while (fp.Next(procName) == KErrNone)
    {
    User::LeaveIfError(proc.Open(procName));
    TFileName aAppName = proc.FileName();
    proc.Close();
    WRITE16_FD(_L("AppFileName: %S"), aAppName);
    ....}
    }
    whether TFindProcess is the same reason as RApaLsSession, Is TFindProcess only find Running process?
    I may be want a way to read the \sys\bin folder, then decide whether special exe is installed on devices,
    what can i do for this purpose?

    Besides, could you tell me the different about System Task manage api such as RApaLsSession TFindProcess and so on
    thank you very much!

  4. #4
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: RApaLsSession::GetAllApps() can not get .exe server?

    Hi,

    TFindProcess tells whether the process is running or not. If you wish to read sys\bin folder you can do that but you might need ALL FILE capability.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  5. #5
    Regular Contributor
    Join Date
    Jan 2010
    Posts
    69

    Re: RApaLsSession::GetAllApps() can not get .exe server?

    Quote Originally Posted by kkrish View Post
    Hi,

    TFindProcess tells whether the process is running or not. If you wish to read sys\bin folder you can do that but you might need ALL FILE capability.
    thankyou, I only want to detect whether a exe is exist on devices, So it no need to apply "ALL FILE capability" for it.
    you means there is no Task API can detect a .exe which have already installed but lack of _reg.rsc and is not running?

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: RApaLsSession::GetAllApps() can not get .exe server?

    Checking for a given (known) .exe file can be done via attempting to create a process for it (RProcess::Create).
    The installer registry knows about files which are installed (including .exe files), just this API is not present in the public SDK-s. Getting it may be still easier than getting AllFiles capability though. It should be perfect for detecting anything what is installed.
    However listing all built-in .exe files is not possible this way either.

  7. #7
    Registered User
    Join Date
    Sep 2009
    Posts
    5

    Re: RApaLsSession::GetAllApps() can not get .exe server?

    TInt num = 0;
    RApaLsSession ls;
    User::LeaveIfError(ls.Connect());
    CleanupClosePushL(ls);
    User::LeaveIfError(ls.GetAllApps());
    ls.AppCount(num);
    TApaAppInfo appInfo;
    for (TInt i = 0; i < num; i++)
    {
    ls.GetNextApp(appInfo);
    if (appInfo.iUid == aUid)
    {
    CleanupStack::PopAndDestroy();
    return ETrue;
    }
    }
    CleanupStack::PopAndDestroy();
    return EFalse;

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: RApaLsSession::GetAllApps() can not get .exe server?

    And, what now?

  9. #9
    Registered User
    Join Date
    Oct 2010
    Posts
    66

    how to get the installed application ???????Problem to get all application

    Hello Friends.....
    i got success to list out installed application using RApaLsSession, but some application is not list out i am using

    RApaLsSession apaLsSession;
    apaLsSession.GetAllApps();,


    i don't know what is the reason behind it..? can anybody tell me how can i get all installed application.
    (for example, i tried to install Skype from OVI store on device, but it is not shown in list of my application ??)

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: how to get the installed application ???????Problem to get all application

    [Merged your question to an existing thread, see answers in the previous posts]

  11. #11
    Registered User
    Join Date
    Oct 2010
    Posts
    66

    Re: how to get the installed application ???????Problem to get all application

    I am able to get applications which has blue icons(in installed application option of device), but the application which has Red icon is not fetched in my list ....???? What is the reason behind it.??
    pls...tell me

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

    Re: how to get the installed application ???????Problem to get all application

    These color codes do not sound familiar to me. In fact I have checked the Application manager now. On my N8, more or less everything has a gray puzzle-piece icon with a red square in the bottom-right corner. While on my E7, the same applications (still, in the Application manager) have a 2x2 icon built from gray squares, but the top-right tile is a tilted blue puzzle-piece.
    Anyway, as it already appears in this thread, RApaLsSession provides information from the registration resource files (the _reg.rxx thing). When there is no registration file, the given application is not visible to RApaLsSession.

Similar Threads

  1. Reg: RApaLsSession.GetAllApps() method
    By krishnasrivatsa.n in forum VoIP
    Replies: 0
    Last Post: 2010-07-13, 12:51
  2. Replies: 2
    Last Post: 2009-06-14, 09:12
  3. Replies: 8
    Last Post: 2008-12-19, 15:07
  4. Odd Client Server Problem, Not Finding EXE
    By ViruDoshi in forum Symbian
    Replies: 0
    Last Post: 2006-03-13, 02:38

Posting Permissions

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