Discussion Board

Results 1 to 5 of 5
  1. #1
    Hello!

    I've noted that
    SilentUninstall does not work if app UID is from Legacy UID Range (0x1xxxxxxx).
    It returns -1.
    For apps which UID is from V9 protected UID range (0x2xxxxxxx) it works as expected (returns 0 and uninstall application).
    E.g. uninstallApp: 0x2004411b - works OK
    uninstallApp: 0x10152d27 - returns -1

    Both apps were downloaded from ovi store...


    Why?

    Code:
    void DeviceHelper::uninstallApp(TUid id)
    {
    	RDebug::Print( _L("uninstallApp: %x"), id);
    	SwiUI::RSWInstSilentLauncher inst;
    	inst.Connect();
    	SwiUI::TUninstallOptions options;
    	SwiUI::TUninstallOptionsPckg optionsPckg;
    	options.iKillApp = SwiUI::EPolicyAllowed;
    	options.iBreakDependency = SwiUI::EPolicyAllowed;
    	optionsPckg = options;
    	TInt res = inst.SilentUninstall( id, optionsPckg, SwiUI::KSisxMimeType );
    	inst.Close(); 
    	RDebug::Print(_L("%d"), res);
    }

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    I would re-check whether the UID is really the package UID, i.e. it could be application UID, but could be indeed that the sis file UID is different.

  3. #3
    I use UID from TApaAppInfo class. If this is not a package UID then how to obtain the package UID of installed app?

    And a bit more info for test app 10152d27. I've debugged thad process name for the application is:
    javamidp.exe[102033e6]0005 (not expected appname[10152d27]0001).
    Maybe it helps to understand why it is not uninstalled and how to uninstal such application?

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    I don't think there are any APIs which with you could reliably know the package in which any executable would have been installed with. Anyway, I would not see the point on making a custom uninstaller application, I would suggest you would let users to use the normal application manager for any uninstalaltion purpose.

  5. #5
    Thanks!

    I've found the reason.
    SwiUI::KJavaMIMEType - the app is uninstalled if use this mime type for test application, not KSisxMimeType.

Similar Threads

  1. Allocation of 0x1xxxxxxx (1st/2nd Ed) UIDs? Would 0x2 series do just fine?
    By urjaman in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 3
    Last Post: 2012-01-30, 18:40
  2. Using carbide for legacy applications
    By danatsea in forum Symbian C++
    Replies: 4
    Last Post: 2008-12-05, 13:18
  3. Legacy UID
    By Shilpa13 in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 9
    Last Post: 2007-05-07, 11:27
  4. How to get UID for legacy range (class 1)?
    By Leanid in forum Symbian C++
    Replies: 6
    Last Post: 2007-04-12, 18:48
  5. Legacy Nokia Phones
    By kcooke in forum General Development Questions
    Replies: 0
    Last Post: 2003-06-03, 20:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved