×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:How to uninstall an application programmatically in S60 2nd edition

From Nokia Developer Wiki
Jump to: navigation, search
Narendrachinni (Talk | contribs)
savaj (Talk | contribs)
(Corrected typo)
Line 2: Line 2:
 
#include <apacmdln.h>
 
#include <apacmdln.h>
 
#include <eikdll.h>
 
#include <eikdll.h>
#include <install.h>
+
#include <instapp.h>
 
</code>
 
</code>
 
{{ReviewerApproved}}
 
{{ReviewerApproved}}

Revision as of 18:05, 22 June 2010

#include <apacmdln.h>
#include <eikdll.h>
#include <instapp.h>
{{{width}}}
CApaCommandLine* cmdLine;
 
cmdLine=CApaCommandLine::NewLC();
cmdLine->SetLibraryNameL(_L("z:\\system\\apps\\install\\xyz.app"));
 
cmdLine->SetDocumentNameL(_L("c:\\system\\install\\xyzApp.sis"));
 
cmdLine->SetCommandL(EApaCommandRun);
 
cmdLine->SetTailEndL(KUninstallCommandLineTail);
 
EikDll::StartAppL(*cmdLine);
 
CleanupStack::PopAndDestroy();
54 page views in the last 30 days.