Archived:RUNREMOVE (RR) directive does not work as specified in some SW versions of S60 3rd Edition devices (Known Issue)
The RUNREMOVE (RR) directive in the .pkg file does not work correctly in some of the first SW releases of S60 3rd Edition devices.
Article Metadata
Tested with
Nokia E61 (SW 1.0610.04.04)
Nokia N71 (SW: 2.0613.1.12.1)
Nokia N91 (SW: 1.00.012.00 )
Compatibility
Article
Description
The following piece of code is from a .pkg file which should command the uninstaller.exe application to be run when the main application, testapp.exe, is uninstalled.
; ********************************************************************
; testapp.pkg
;
;Language - standard language definitions
&EN
; standard SIS file header
#{"testapp"},(0xE03B7C29),1,0,0
;Localised Vendor name
%{"Vendor-EN"}
;Unique Vendor name
:"Vendor"
;Supports S60 3rd Edition
[0x101F7961], 0, 0, 0, {"Series60ProductID"}
; *********************************************************************
;
; This executable will be run when ’testapp’ is uninstalled
; - Remember to use UID3 for the small exe, otherwise it won’t run
;
; *********************************************************************
"\Epoc32\release\gcce\urel\uninstaller.exe"
-"!:\sys\bin\uninstaller.exe", FR, RR, RW
; **********************************************************************
;
; These files belong to the actual ’testapp’
;
; ***********************************************************************
"\Epoc32\release\gcce\urel\testapp.exe" -"!:\sys\bin\testapp.exe"
"\Epoc32\data\z\resource\apps\testapp.rsc"
-"!:\resource\apps\testapp.rsc"
"\Epoc32\data\z\private\10003a3f\apps\testapp_reg.rsc"
-"!:\private\10003a3f\import\apps\testapp_reg.rsc"
"\Epoc32\data\z\resource\apps\testapp.mif" -"!:\resource\apps\testapp.mif"
; *************************************************************************
At least the following devices with these SW versions fail to launch the uninstaller.exe application during the uninstallation of testapp.exe.
- Nokia 3250 (SW 3.17)
- Nokia E61 (SW 1.0610.04.04)
- Nokia N71 (SW: 2.0613.1.12.1)
- Nokia N91 (SW: 1.00.012.00 )
The functionality works as specified in at least the following devices with these SW versions:
- Nokia N73 (SW: 2.06.20.0.0.5)
- Nokia N91 (SW: 1.10.030)
Solution
No workaround available for devices/SW versions reported above. This issue no longer exists in latest SW versions for S60 3rd Edition devices.
Notes:
- RUNINSTALL (RI) and RUNREMOVE (RR) options cannot be used in self-signed SIS packages.
- When using RUNWAITEND (RW) options with RUNREMOVE, the application launched on removal should complete its tasks and exit as quickly as possible. The installer is waiting for the process to complete and may appear to be stuck during this time.
See also
Archived:Using RUNREMOVE and RUNINSTALL options in SIS packages


I see the same problem on many devices including relatively new N95.
Any update on this.
Thank you for your feedback. Which sw version does the Nokia N95 have? How was the tested sis package signed - self-signed or a trusted CA?
Forum Nokia KB 14:14, 16 April 2008 (EEST)