Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 16:00, 23 June 2008.

How to Uninstall files/directories created by the application?

From Forum Nokia Wiki

Solution

If the names of the files to be created by the application are known at installation time, they must be added to the .pkg file as 'null files'. The format of the filename (language-independent files) in the .pkg file is as follows:

""  -  "!:\system\apps\myapp\myapp.dat", FN

where myapp.dat is a data file created by the application. FN (FILENULL) parameter means that a file does not yet exist, so it is not included in the sis file. It is created by the running application and will be deleted when the application is removed. Note that the name assigned to the source file is not important and should be empty (""). Also note that such files will not be deleted when upgrading to a later version. This ensures that files, such as .ini files, which store application preferences, are not lost in an upgrade.

If the number of application-created files (or their exact names) is not known, the case is a bit more complicated. As a solution, the .sis package could include a specific uninstall application that takes care of finding and removing the right files at uninstallation. Such an application can be run automatically during uninstallation as follows:

"\epoc32\release\armi\urel\uninst.app"  - "!:\system\apps\myapp\uninst.app", RR, RW

RR (RUNREMOVE) parameter sets the file to be run at remove (uninstall) time. RW (RUNWAITEND) indicates that the (system) remover should start the program and then wait until it has completed before resuming the installation.


Internal links

Related Discussions
Thread Thread Starter Forum Replies Last Post
Uninstalling a running symbian app BigFatGangsta General Symbian C++ 0 2003-07-22 08:55
er. errorU1073 don't know how to make mbg file. advocatee Symbian User Interface 9 2003-08-25 20:08
Regarding Killling Installer Application in 3rd edition preethi General Symbian C++ 14 2007-12-18 12:43
Markable ListBox: How do I capture an attempt to mark an entry? loginssuck Symbian User Interface 2 2006-11-27 09:23
File or Folser nmnir General Symbian C++ 4 2007-09-20 06:49
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZhardwareQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX