×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    15

    How to uninstall app. 3rd

    a=iLauncher.SilentUninstall(KMyAppUid ,iUnOptionsPckg, SwiUI::KSisMimeType) ;
    or
    a=iLauncher.Uninstall( KMyAppUid, SwiUI::KSisMimeType);

    Doesn't work! Nothing Happend!

    CApaCommandLine* cmdLine;
    cmdLine=CApaCommandLine::NewLC();

    TFileName name;

    name = CEikonEnv::Static()->EikAppUi()->Application()->AppFullName();

    cmdLine->SetExecutableNameL(name);
    cmdLine->SetDocumentNameL(_L("C:\\nokia\\installs\\SilentInst.SIS"));
    cmdLine->SetTailEndL(_L8("UNINSTALLX"));
    cmdLine->SetCommandL(EApaCommandRun);
    RApaLsSession ls;
    TThreadId id;
    TInt err0 = ls.Connect();
    if(err0 == KErrNone)
    {
    ls.StartApp(*cmdLine,id);
    }
    ls.ClearFsSession();
    ls.Close();

    Doesn't work also!Nothing Happend!

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

    Re: How to uninstall app. 3rd

    I have never seen the "UNINSTALLX" method to work. Anyway, could you debug the Uninstall/SilentUninstall and see any errors etc. generated.

    (in device you could use RFile etc. for file logging)

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    279

    Re: How to uninstall app. 3rd

    I had the same problem. Thanks for the code!

    a=iLauncher.Uninstall( KMyAppUid, SwiUI::KSisMimeType);
    should become
    a=iLauncher.Uninstall( KMyAppUid, SwiUI::KSisxMimeType );
    Does this help?

  4. #4
    Registered User
    Join Date
    Sep 2003
    Posts
    15

    Re: How to uninstall app. 3rd

    yes,i change param to KSisxMimeType ,it's runing!

  5. #5
    Registered User
    Join Date
    Sep 2003
    Posts
    15

    Re: How to uninstall app. 3rd

    But app. can't uninstall itself!

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

    Re: How to uninstall app. 3rd

    Quote Originally Posted by makegame View Post
    But app. can't uninstall itself!
    Yep, that has been discussed plenty of times in here already.

Similar Threads

  1. Problem in installing an app on a 3rd phone.
    By smilesnigam in forum Symbian
    Replies: 8
    Last Post: 2008-06-12, 11:46
  2. uninstall app to s60 simulator
    By Pando in forum Symbian Tools & SDKs
    Replies: 17
    Last Post: 2008-03-22, 02:18
  3. System error when I launch the app 3rd edition
    By asmobease in forum Symbian Tools & SDKs
    Replies: 14
    Last Post: 2007-09-30, 10:48
  4. app icon - 3rd edition
    By Bill_Murray in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-06-18, 17:36
  5. Run App on Uninstall problem
    By JamesLockett in forum Symbian
    Replies: 1
    Last Post: 2006-07-07, 12:36

Posting Permissions

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