Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:FILENULL (FN) installation option does not work on S60 2nd Edition FP1 (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Code Example
Source file:
Tested with
Devices(s): Nokia 7610, Nokia 6260, Nokia 6620, Nokia 3230, Nokia 6670
Nokia 9300, Nokia 9500
Platform(s): S60 2nd Edition, Feature Pack 1
Series 80 2nd Edition
S60 2nd Edition FP1
Created: User:Technical writer 1 (20 Aug 2007)
Last edited: hamishwillee (20 Jun 2012)



This option is ignored. In other words, the file is not deleted.


The PKG file which is used to create the installation (SIS) file has several options for treating files during installation and uninstallation. FILENULL allows defining files that are created by the application and need to be deleted during uninstallation. However, this does not work in the devices mentioned above.
Due to this problem in uninstallation, the file is not removed.

How to reproduce

Use the FILENULL option in the PKG file.


There are two ways to implement a workaround. Instead of using the FILENULL option, it is possible to:

1) Use a zero-sized 'dummy' file to create these files already during installation. For example:

; creates a zero-sized configuration file
; application will write to this file when run the first time
"dummy" - "c:\system\data\myapplication.ini"

Important: Make sure that your application will correctly handle the situation where the opened file has a zero length.

2) Create a simple program to be run at removal time. This program will then manually delete the application-created files from the file system. Running the program automatically during removal is possible by defining the FILERUN (FR), RUNREMOVE (RR), and RUNWAITEND (RW) options in the .pkg file. For example:

; run our own uninstaller exe during removal
"uninst.exe" - "!:\system\apps\myapp\uninst.exe", FR, RR, RW

Example implementation of a simple uninstaller program:

This page was last modified on 20 June 2012, at 11:43.
38 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.