Archived:Uninstalling a Symbian Web Runtime app
Archived: 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): Nokia N95, Nokia 6210 Navigator
Compatibility
Platform(s): S60 3rd Edition, FP1 and FP2
Article
Created: User:Technical writer 1
(07 Aug 2008)
Last edited: hamishwillee
(06 Aug 2012)
Note: This API is not part of the public SDK. It can be found in the SDK API Plug-in.
Description
The SWInstallerLauncher API can be used to uninstall a widget by passing the appropriate MIME type "application/x-nokia-widget" and the UID of the widget.
The following sample code can be used to uninstall a widget.
_LIT8(KMIMEType,"application/x-nokia-widget");
SwiUI::RSWInstLauncher iLauncher;
User::LeaveIfError(iLauncher.Connect());
TRequestStatus status;
iLauncher.Uninstall(status, TUid::Uid(<uid of the widget>), KMIMEType);
User::WaitForRequest(status);
iLauncher.Close();
Example application
This example application silently uninstalls a widget.


I tried to follow this steps to perform uninstallation of the widget during main .SISX uninstallation, by scheduling it to run via FR, RR package file options.
While regular application launch does produce desired results (i.e. widget uninstall starting, though not silently as this article claims), when SIS runs this application during uninstallation time, nothing happens. I guess the problem is that you cannot have multiple installer processes running at the same time. Without that resolved, the solution is hardly useful. Any idea how to overcome that?
Thanks!