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. Thanks for all your past and future contributions.

SW Installer Launcher API

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 ExampleArticle
Created: ltomuta (17 Jun 2007)
Last edited: lpvalente (12 Jul 2014)

Note.pngNote: :This API is not part of the public SDK. It can be found in the SDK API Plug-in.


API Purpose

RSWInstLauncher is the client side handle to access SW Installer UI services.. It handles the installation of SISX packages, and Java MIDlets. During normal installation, various notes are displayed to the user. Through these notes, the user can control the process: continue the installation or cancel it, browse the detail information of the application etc. RSWInstSilentLauncher can be used to silently install the SISX without user intervention. We can control by giving options as parameter to RSWInstSilentLauncher SilentInstall.

Use cases

One of the use case can be to download SISX from a server and then to silently install it. It has been checked in 5500.

Example code

#include <SWInstApi.h>
#include <SWInstDefs.h>
SwiUI::RSWInstSilentLauncher iLauncher;
SwiUI::TInstallOptions iOptions;
SwiUI::TInstallOptionsPckg iOptionsPckg;
iOptions.iUpgrade = SwiUI::EPolicyNotAllowed;
iOptions.iOCSP = SwiUI::EPolicyNotAllowed;
iOptions.iDrive = 'C';
iOptions.iUntrusted = SwiUI::EPolicyNotAllowed;
iOptions.iCapabilities = SwiUI::EPolicyNotAllowed;
iOptionsPckg = iOptions;
TBufC<50> FName(KTempPath);

Error handling

The API uses Symbian OS's leave mechanism and in certain conditions the client application may panic with category SWInstSvr

Example project

Example application to install Silently:

This page was last modified on 12 July 2014, at 19:16.
87 page views in the last 30 days.