Community: Wiki

你在这里: You Are Here: Olet tässä: Vous êtes ici: Sie befinden sich hier: Tu sei qui: 現在のページ: Você está aqui: Вы здесь: Usted está aquí:
This page was last modified 12:00, 27 October 2008.

TSS000174 - How can I launch the installer from code to uninstall an application?

From Forum Nokia Wiki



ID TSS000174 Creation date May 8, 2003
Platform Series 80 2nd Edition Devices
Category Symbian C++ Subcategory General


Keywords (APIs, classes, methods, functions):

Overview

How can I launch the installer from code to uninstall an application?

Description

The following code demonstrates how to launch the installer to uninstall an application. SIS files in the "c:\system\install\" directory contain information about the files installed for a certain component. The uninstallation removes all files specified in the original .PKG file and finally deletes the .SIS file from the install directory.
#include <apacmdln.h>

  1. include <eikdll.h>
  2. include <instapp.h>
    CApaCommandLine* cmdLine;
    cmdLine=CApaCommandLine::NewLC();
    cmdLine->SetLibraryNameL(
    _L("z:\\System\\apps\\instapp\\instapp.app"));
    cmdLine->SetDocumentNameL(
    _L("c:\\system\\install\\MyApplication.sis"));
    cmdLine->SetCommandL(EApaCommandRun);
    cmdLine->SetTailEndL(KUninstallCommandLineTail);
    EikDll::StartAppL(*cmdLine);
    CleanupStack::PopAndDestroy(); // cmdLine

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditFurlTechnocratiMagnoliaTwitter  Share this page Share this page Invite a friend Invite a friend
E-mail Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us Regional websites: Chinese Japanese © 2008 Nokia