×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Apr 2013
    Posts
    19

    Question remove folder during uninstall

    Hi,

    My problem is that an error occurs when trying to remove a folder from the directory on the phone when uninstalling the application.
    I've surfed the web and I've found that in order to delete a folder when uninstalling the application, I must implement some rules to the package. So I implement the below
    Code:
    symbian {
      removeMyFolderContent = \
      "\"\"-\"C:\MyFolder\*.*\",FN"
      removeFiles.pkg_postrules += removeMyFolderContent 
      DEPLOYMENT += removeFiles
    }
    So when uninstalling the app, the folder is removed correctly with its content, but an error occurs when the uninstallation is finished "Removal failed"
    Any idea why that error is occurring ???
    Note that inside MyFolder, I have .jpg, .png, .mp3 .... files, and after building and runing the application I have the following line in myapplication.pkg ""-"C:\MyFolder\*.*",FN

    Best Regards

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: remove folder during uninstall

    You can not use *.* type things in pkg, you would actually need to give actual names of the files to be removed. if you want to delete with some kind of intelligence, then you would need to make an executable which you run during the uninstallation process.

  3. #3
    Registered User
    Join Date
    Apr 2013
    Posts
    19

    Re: remove folder during uninstall

    Quote Originally Posted by symbianyucca View Post
    You can not use *.* type things in pkg, you would actually need to give actual names of the files to be removed. if you want to delete with some kind of intelligence, then you would need to make an executable which you run during the uninstallation process.
    Oke, got your point. But how should I make this executable ? Can you help me concerning this issue ?

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: remove folder during uninstall

    Basically easiest way would be to make simple Symbian C++ executable, and then check wiki for help on pkg options: http://www.developer.nokia.com/Commu...e_File_Options

  5. #5
    Registered User
    Join Date
    Apr 2013
    Posts
    19

    Re: remove folder during uninstall

    Quote Originally Posted by symbianyucca View Post
    Basically easiest way would be to make simple Symbian C++ executable, and then check wiki for help on pkg options: http://www.developer.nokia.com/Commu...e_File_Options
    Ok I will try this method, and if it doesn't work I will go to swap all the contents of MyFolder to the private folder of the application.

    Thanks for your help.

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: remove folder during uninstall

    the private folder would likely work better, since teh folder should be removed along side the app, which would make it easier for you to manage

  7. #7
    Registered User
    Join Date
    Apr 2013
    Posts
    19

    Re: remove folder during uninstall

    Quote Originally Posted by symbianyucca View Post
    the private folder would likely work better, since teh folder should be removed along side the app, which would make it easier for you to manage
    Thank you symbianyucca for your kind help in this issue, i will go for the private folder solution.

Similar Threads

  1. How to uninstall S60 without Add/Remove Programs
    By j2me64 in forum Series 40 & S60 Platform Feedback Archive
    Replies: 1
    Last Post: 2009-09-14, 07:45
  2. how to remove txt file when uninstall?
    By nokia_lin in forum Symbian
    Replies: 3
    Last Post: 2009-05-11, 05:44
  3. remove directory during uninstall
    By reuvenb in forum Symbian
    Replies: 3
    Last Post: 2009-02-08, 14:59
  4. [sis] remove dir on uninstall
    By cbrueckner in forum Symbian
    Replies: 3
    Last Post: 2003-12-22, 09:23
  5. Uninstall J2ME Application also remove related RMS ?
    By adywicaksono in forum Mobile Java General
    Replies: 1
    Last Post: 2003-04-25, 05:17

Posting Permissions

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