×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    41

    Can i run an exe application in the MDL autostart file?

    i can run APP application in the MDL autostart file, but i can not run exe Application, please help me! thanks

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

    Re: Can i run an exe application in the MDL autostart file?

    Try RProcess::Create, Resume, Close. Test on target device, autostart on emulator is a different story.

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

    Re: Can i run an exe application in the MDL autostart file?

    Hello dear,
    U absolutely can run an exe from autostart.

    U need to grab one UID from application wizard n right from there abort the creation of that application.

    1)Now paste this UID in yr exe's MMP file n in UId file.
    2)Then Paste this UID at : starter_uid
    3)Pass yr exe path at:fnAppPath
    4)Restart yr Phone.
    5)It's time to party man.

    .....
    ....
    ...
    void CclAutostart::StartAppThreadFunctionL()
    {
    #ifdef __WINS__
    const TUid starter_uid= { 0x05CCC0B0 };
    RApaLsSession ls;
    User::LeaveIfError(ls.Connect());
    CleanupClosePushL(ls);
    _LIT(filen, ""); // dummy
    TThreadId dummy;
    User::LeaveIfError( ls.StartDocument(filen, starter_uid, dummy) );
    CleanupStack::PopAndDestroy();
    #else
    TFileName fnAppPath = _L("\\system\\apps\\starter\\starter.exe");
    RProcess server;

    CleanupClosePushL(server);
    User::LeaveIfError(server.Create(fnAppPath, _L("")));
    server.Resume();

    CleanupStack::PopAndDestroy();
    #endif

    }


    Regards,
    Kiran.

  4. #4
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    280

    Re: Can i run an exe application in the MDL autostart file?

    Hi Kiran,

    Your code seems to work great both on device and Emulator.
    My problem is while installing the pkg file on device it should always be installed on the phone memory.
    Which need not be the case. The user can install it on the MMC as well.
    How can I ensure that the recognizer looks for the exe in the installed directory and not just C:.

    Thanks & Regards.

  5. #5
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    280

    Re: Can i run an exe application in the MDL autostart file?

    CompleteWithAppPath() doesnt seem to work.

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

    Smile Re: Can i run an exe application in the MDL autostart file?

    Hello dear,

    Check out the following link:
    http://discussion.forum.nokia.com/fo...ad.php?t=85731

    I hope it will help u.

    Regards.
    Kiran.

  7. #7
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    280

    Re: Can i run an exe application in the MDL autostart file?

    Thanks Kiran.
    I already tried that.

    http://discussion.forum.nokia.com/fo...=Autostart+mmc

  8. #8
    Regular Contributor
    Join Date
    Apr 2006
    Location
    India
    Posts
    383

    Re: Can i run an exe application in the MDL autostart file?

    Hi!
    U can use the namespace NEikonEnvironment if u r using 2nd edition
    U can use NEikonEnvironment::ApplicationDriveAndPath() for ur purpose.
    See the SDK for more details.

    Hope this helps u.
    Regards,
    Shilpa Kulkarni

  9. #9
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    280

    Re: Can i run an exe application in the MDL autostart file?

    Hi Shilpa,

    That wont help me because I need to search for an exe.
    NEikonEnvironment::ApplicationDriveAndPath() will return me the address
    of my recognizer.

    Regards,
    Tina

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

    Re: Can i run an exe application in the MDL autostart file?

    Quote Originally Posted by Tina_Tibrewal
    That wont help me because I need to search for an exe.
    NEikonEnvironment::ApplicationDriveAndPath() will return me the address
    of my recognizer.
    In practice it will not. NEikonEnvironment uses your ...AppUi class, and recognizers have not got one (they are not applications anyway, thus ApplicationDriveAndPath or CompleteWithAppPath have nothing to do with them).
    Try using TFindFile::FindByDir to locate a file with known name and path but unknown drive.

  11. #11
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    280

    Re: Can i run an exe application in the MDL autostart file?

    Thanks a lot Wizard_Hu..

    FindByDir() Solved the problem.

Similar Threads

  1. Cannot run command line GCCE HelloWorldBasic on Emulator
    By loginssuck in forum Symbian Tools & SDKs
    Replies: 33
    Last Post: 2008-06-21, 12:58
  2. Replies: 1
    Last Post: 2005-05-26, 14:22
  3. Replies: 0
    Last Post: 2004-03-30, 00:13
  4. Replies: 0
    Last Post: 2002-06-10, 12:24
  5. How to Access 9210 Dbms file from my desktop application?
    By Nokia_Archive in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2002-06-03, 03:46

Posting Permissions

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