Symbian
Symbian OS Library

FAQ-0172 How do I remove apps?

[Index][spacer] [Previous] [Next]



 

Classification: General Category: Installation
Created: 01/07/99 Modified: 09/11/2002
Number: FAQ-0172
Platform: Not Applicable

Question:
It's a simple matter to start the add/remove program (INSTAPP.APP in
\SYSTEM\APPS\INSTAPP\) with just the name of a SIS file to start an
_installation_, but does anyone know how to initiate a _removal_?

What's the magic rune I can pass as a command-line?"


Answer:
The same way - just pass in "UNINSTALL" as the tail end to the command line
The way this is called from the Add/remove control panel is to create a CApaCommandLine* cmdLine, set it up with the file name, library name etc...,
for an installation you call

cmdLine->SetTailEndL(_L("INSTALL"));

for removal

cmdLine->SetTailEndL(_L("UNINSTALL"));

Note: _LIT should be used in place of _L from ER5 onwards.