Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor srinivas.symbian's Avatar
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97
    HI..
    My need is I have an application running in my mobile and some unnecessary files(eg .txt) in " C" drive. while uninstalling that application I need to detect the files and delete those unnecessary files in "C" drive in mobile. Could any body give me an idea how to do it.
    Thanks & Best Regards
    Srinivas

  2. #2
    Registered User Sorcery-ltd's Avatar
    Join Date
    Dec 2006
    Posts
    2,280
    If the files don't need to be read by anyone else then put them in your application's private directory (which is the default deployment location anyway) and they will automatically be deleted when the app is uninstalled.

    If you need to create them dynamically and store them somewhere public, so that detecting and deleting them is actually necessary, then you can create an executable that runs at uninstall time and does the task - that'll need some delving into Symbian pkg file syntax but it's all there in the docs.

    Mark

  3. #3
    Regular Contributor srinivas.symbian's Avatar
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97
    Thanks for your response. I need to remove the files stored in some where public. I read the docs Im using RR while running my application.. actually I got an example from the fallowing site. I run it for deleting files when its got uninstall.. but The files are getting deleted while running the application not while uninstalling it. I need to remove the unwanted files while uninstalling only.help me out plz..please see the link for eg.." http://wiki.forum.nokia.com/index.php/Password_Protected_Symbian_application_uninstall"........... And in AppUi.cpp instead of calling pasward class I am using the code bellow to delete files................
    _LIT(KDeleteFile,"c:\data\TrapRecordedFiles\+912030240156-12-02-2010 14-33.wav");
    CEikonEnv::Static()->FsSession().Delete(KDeleteFile);
    And the pkg file im using
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\UninstalDemo.exe" -"!:\sys\bin\UninstalDemo.exe",RR,RW

    But .. if I use this, its deletes files while running app... not when uninstalling the app..guide me plz..
    Thanks & Best Regards
    Srinivas

  4. #4
    Registered User Sorcery-ltd's Avatar
    Join Date
    Dec 2006
    Posts
    2,280
    If you use RR and don't start this executable yourself from anywhere then it will not run while your app is running. It looks like you've found the right thing to do but made a mistake in the implementation somewhere.

Similar Threads

  1. Replies: 4
    Last Post: 2010-06-15, 13:52
  2. Replies: 4
    Last Post: 2010-03-31, 17:55
  3. How to delete some files in c drive while uninstalling
    By amit.mangal in forum Symbian C++
    Replies: 14
    Last Post: 2010-02-16, 11:07
  4. Problem while uninstalling the application?
    By PopAndDestroy in forum Symbian C++
    Replies: 2
    Last Post: 2009-12-16, 19:32
  5. Replies: 2
    Last Post: 2009-01-30, 03:16

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