×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    54

    Unable to deinstall MTM on 5800

    CMsvSession:: DeInstallMtmGroup() gives KErrInUse on Nokia 5800 although it works fine on 3rd edition devices.

    Any advice?

    Thanks

  2. #2
    Super Contributor
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777

    Re: Unable to deinstall MTM on 5800

    Some time back, i have also faced the problem(different from this) with Custom MTM in 5th devices, at that time expert said "may be its an issue with newer version".

    so how did you manage to deinstall it, can you show the code.
    Regards
    $-Nitesh-$

  3. #3
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    54

    Re: Unable to deinstall MTM on 5800

    CMsvSession* session = CMsvSession::OpenSyncL(ob);
    ClearMessageEntriesL(*session);
    TInt err=session->DeInstallMtmGroup(filename);

  4. #4
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: Unable to deinstall MTM on 5800

    Chk the thread below:
    This is a known problemhttp://www.forum.nokia.com/forum/showthread.php?t=160005

    http://wiki.forum.nokia.com/index.ph...e_in_use_error
    Regards,
    Shafali

  5. #5
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    54

    Re: Unable to deinstall MTM on 5800

    Does that mean it is not solvable problem?

  6. #6
    Super Contributor
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777

    Re: Unable to deinstall MTM on 5800

    Quote Originally Posted by mobi1 View Post
    Does that mean it is not solvable problem?
    i am not sure, but you can try following things:

    1: Get the entry root by CMsvEntry *entryRoot = session->GetEntryL( KMsvRootIndexEntryId);
    2: get all the folder assosiated with your MTM like,
    CMsvEntrySelection* folderEntrySelection = entryRoot->ChildrenWithTypeL(KUidMsvServiceEntry);
    3: get its entry value by this,
    TInt index = folderEntrySelection->Count()

    CMsvEntry* entry = session->GetEntryL( folderEntrySelection->At( index) );
    CMsvStore* store=entry->ReadStoreL();
    4: and now remove all the folder with this entry,
    CMsvEntry:: DeleteL();
    5: then call TInt err = session->DeInstallMtmGroup(_("yourmtm");

    hope it will help you,
    Regards
    $-Nitesh-$

  7. #7
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    54

    Re: Unable to deinstall MTM on 5800

    I wrote the code as follows:
    CMsvEntry* entryRoot = aSession.GetEntryL(KMsvRootIndexEntryId);
    CleanupStack::PushL(entryRoot);
    CMsvEntrySelection* folderEntrySelection = entryRoot->ChildrenWithTypeL(
    KUidMsvServiceEntry);
    CleanupStack::PushL(folderEntrySelection);
    //TInt index = folderEntrySelection->Count();
    for(TInt i=0; i<folderEntrySelection->Count(); i++)
    {
    //CMsvEntry* entry = aSession.GetEntryL(folderEntrySelection->At(i));
    //CMsvStore* store = entry->ReadStoreL();
    entryRoot->DeleteL(folderEntrySelection->At(i));
    }
    CleanupStack::PopAndDestroy(folderEntrySelection);
    CleanupStack::PopAndDestroy(entryRoot);

    and I get error -21

  8. #8
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    54

    Re: Unable to deinstall MTM on 5800

    Can any one help in this?

  9. #9
    Regular Contributor
    Join Date
    Nov 2005
    Posts
    131

    Re: Unable to deinstall MTM on 5800

    You may try to close the Messaging application: on 5th edition, although you don't see it running among the applications, it has the process running in background.
    Just my two cents.

  10. #10
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    54

    Re: Unable to deinstall MTM on 5800

    It seems to be the only solution

    Thanks any way

Similar Threads

  1. s60 5th edition MTM example not available
    By shafali gupta in forum Symbian
    Replies: 18
    Last Post: 2011-01-04, 18:43
  2. Unable to restore application in certain S60v5 software
    By sunnyhk in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2010-06-10, 18:07
  3. Problem installing MTM
    By LMVERB in forum Symbian
    Replies: 1
    Last Post: 2005-09-14, 04:58

Posting Permissions

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