×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    113

    Uninstall problem in SWI::Uninstall()........

    Dear Sir,

    My requirement is to uninstall java apps like ( helloworld.jar) from s60 device programmetically. I have read so many thread in wiki & discussion board for using SWIInstaller api for install & uninstall apps.

    currently I am able to uninstall all apps with file extention sis,sisx,wgz file. but problem to unstall jar, jarx, jad file means not able to uninstall any java file format. when ever i used to uninstall java file its give error msg like " Curropted file "
    I guess its proble of correct MIME type. please suggest correct mime type for all java apps which is running in S60 sdk. for more details see code below-
    Code:
    	   // for Uninstall
    	    SwiUI::RSWInstLauncher	iInstall;		
    	    
    	    // for uninstall
    	    SwiUI::TUninstallOptions	iUninstallOptions;
    	    SwiUI::TUninstallOptionsPckg	iUninstallOptionsPckg;
    	    
    	    iInstall.Connect();
    	   RApaLsSession lsSession;
    	   TApaAppInfo appInfo;
    	   
    	  const TUid appUid = {0xE6CA6403};
    	   TInt offSet;
     
    		User::LeaveIfError( lsSession.Connect() );
    		CleanupClosePushL( lsSession );   
    		lsSession.GetAllApps();   // gets all install apps
    				
    		HBufC* string=HBufC::NewL(100);
    		
    	    while( lsSession.GetNextApp( appInfo ) == KErrNone )
    		 {			 			           
    	     string = appInfo.iCaption.Alloc();
    	     TBuf<256> name, Name1;
    	     name.Copy(string->Des()); // name of apps
    	     
    	     Name1 = appInfo.iUid.Name(); // uid of apps
    	     
    	        		TLex ilex;
    	    		TUint32 change,change1;
    	    		ilex.Assign(myptr);
    	    		ilex.Val(change, EHex);
    
    iInstall.Uninstall(TUid::Uid(change),SwiUI::KJarMIMEType);  // not uninstall 
    	    iInstall.Close();
    	   CleanupStack::PopAndDestroy(); // file, lsSession, fs
    I have also used
    HTML Code:
    http://www.developer.nokia.com/Community/Wiki/CS000817_-_Installing_and_uninstalling_MIDlets_programmatically
    tread not able to uninstall.

    Please help if possible!!!

    Regards,
    Satish

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,089

    Re: Uninstall problem in SWI::Uninstall()........

    And if you uninstall the java app manually from app manager , does it gets removed successfully?

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    113

    Re: Uninstall problem in SWI::Uninstall()........

    Dear Sir,
    thanx for reply!!!

    when ever i remove or uninstall java apps manually its uninstall.

    above code is working fine in sis & widget apps but not for java.

    when ever i see the details of application then-

    Name- test
    version- 1.0
    supplier- unknown
    status- installed
    domain catagory- untrusted thirdpary
    format- java tm
    type- unknown

    Please suggest!!

    Regards,
    Satish

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,089

    Re: Uninstall problem in SWI::Uninstall()........

    See if you can find something useful in this link,though it does not matches the error as you are getting, but still you can refer it:

    http://www.developer.nokia.com/Commu...n-Coding/page2

  5. #5
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: Uninstall problem in SWI::Uninstall()........

    Hello,
    i think, but i'm not sure (never had time to look deeper into), that what you need is RSisRegistry API, as mentioned here:
    http://www.developer.nokia.com/Commu...ogrammatically
    look into GoodbyeHell/group/epoc32.zip for headers and libraries
    compatibility is not guaranteed, but you could give it a try, at least... :-)
    regards
    pg

Similar Threads

  1. Uninstall Problem
    By honour88 in forum Symbian
    Replies: 3
    Last Post: 2010-11-04, 17:58
  2. Uninstall problem
    By NightStalkerDNS in forum Mobile Java General
    Replies: 1
    Last Post: 2010-01-16, 08:31
  3. Uninstall extra SIS files at uninstall time
    By rob_savageminds in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-11-01, 22:47
  4. Run App on Uninstall problem
    By JamesLockett in forum Symbian
    Replies: 1
    Last Post: 2006-07-07, 12:36
  5. Uninstall Problem
    By SymVian in forum Symbian
    Replies: 1
    Last Post: 2006-01-20, 11:41

Posting Permissions

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