×
Namespaces

Variants
Actions

Archived:Removing font file lock during uninstallation on Symbian

From Nokia Developer 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}}.

Article Metadata
Tested with
Devices(s): All (S60)
Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1
S60 3rd Edition, FP2
S60 3rd Edition FP2
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Keywords: RemoveFontFileLocksL
Created: User:Technical writer 1 (05 Dec 2008)
Last edited: hamishwillee (14 Jun 2012)

Description

Loading a custom font in an application may lead to problems when the user tries to uninstall the application while it is running. The installer is not able to remove the font file if it is in use and locked, and the uninstallation will fail.

Solution

As a workaround, it is possible to have a small executable in the the SIS package which will be run during the uninstallation (see SDK documentation on FILERUN and RUNREMOVE options used in .pkg files). This program will then release the file lock on the font(s) manually by calling

  CFbsTypefaceStore::RemoveFontFileLocksL(_L("c:\\resource\\customFont.ttf"));
This page was last modified on 14 June 2012, at 14:14.
90 page views in the last 30 days.