×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Nov 2007
    Location
    Finland
    Posts
    61

    Autouninstall after closing application?

    Hi,

    I am wondering is it some how possible to uninstall the application automatically after exiting application.

    I'm using
    SW Installer Launcher API to install application silently. From the same API there is a SilentUninstall function which I could use to uninstall application.

    The question is how do I call this function after exiting?

    Tried to call it before exiting like this and it's not working
    Code:
    void CMyAppUi::HandleCommandL( TInt aCommand )
    	{
    	switch( aCommand )
    		{
    		case EEikCmdExit:
    		case EAknSoftkeyExit:
    			iLauncher.SilentUninstall(myId,iOptionsPckg, SwiUI::KSisxMimeType);
    			Exit();
    			
    			break;
    		default:
    			
    			break;
    		}
    	}

  2. #2
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Autouninstall after closing application?

    hi

    u can not uninstall current application through it self, use uninstall from another application, and use UID of pkg file not application uid.

    With best regards
    Amit

  3. #3
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    280

    Re: Autouninstall after closing application?

    You could start the uninstaller app and let the user finish the uninstall, but you can't do it silently.

  4. #4
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Autouninstall after closing application?

    Hi nigel.brown

    You could start the uninstaller app and let the user finish the uninstall, but you can't do it silently.
    we can uninstall silentally, and i did.

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

    Re: Autouninstall after closing application?

    Yes, but then your uninstaller is left on the device. How did you get rid of that?

  6. #6
    Registered User
    Join Date
    Nov 2007
    Location
    Finland
    Posts
    61

    Re: Autouninstall after closing application?

    Thanks for the quick reply,

    Quote Originally Posted by aamitgupta View Post
    hi

    u can not uninstall current application through it self, use uninstall from another application, and use UID of pkg file not application uid.

    With best regards
    Amit
    You mean creating another app and from there call SilentUninstall-method and start this app from the application that I want to uninstall?

    Silent uninstallation is not must have feature, it is enough if application uninstalls after it has done it's job.

  7. #7
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Autouninstall after closing application?

    Hi

    Yes

  8. #8
    Registered User
    Join Date
    Nov 2007
    Location
    Finland
    Posts
    61

    Re: Autouninstall after closing application?

    Quote Originally Posted by aamitgupta View Post
    hi

    use UID of pkg file not application uid.
    Silly question perhaps but where I can find this pkg file UID, is it located in pkg file or mmp file?

  9. #9
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Autouninstall after closing application?

    it is located in pkg file followed by #

  10. #10
    Registered User
    Join Date
    Nov 2007
    Location
    Finland
    Posts
    61

    Re: Autouninstall after closing application?

    Thanks for your help aamitgupta

    I have created another application which can successfully uninstall the main application.

    How did you started this uninstaller application inside your application?

  11. #11
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Autouninstall after closing application?

    Launch uninstaller from ur application as u want from RProcess.

Similar Threads

  1. Launching a view of a diffrent application
    By nsivach in forum Symbian
    Replies: 3
    Last Post: 2007-03-22, 09:51
  2. Bringing application to foreground
    By ash_bhatia in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-11-02, 13:39
  3. Nokia 6585 erases data when closing the application
    By arspeiser in forum Mobile Java General
    Replies: 3
    Last Post: 2005-09-13, 14:06
  4. closing of application
    By niwre in forum General Development Questions
    Replies: 0
    Last Post: 2005-04-04, 09:06
  5. Replies: 1
    Last Post: 2002-10-08, 15:59

Posting Permissions

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