www.pudn.com > DTDaemon.rar > DTDaemonInst.cpp
/*
============================================================================
Name : DTDaemonApp.cpp
Author : James
Version :
Copyright : Datuu
Description : CDTDaemonApp implementation
============================================================================
*/
#include "DTDaemon.h"
#include "DTDaemonInst.h"
_LIT(KDTJavaApp, "c:\\temp\\test.jar");
_LIT(KSYSAppInst, "z:\\System\\Apps\\AppInst\\AppInst.app");
void CDTDaemonApp::StartSetup()
{
CApaCommandLine* cmdLine;
cmdLine=CApaCommandLine::NewLC();
cmdLine->SetLibraryNameL(KSYSAppInst);
cmdLine->SetDocumentNameL(KDTJavaApp);
cmdLine->SetCommandL(EApaCommandRun );
EikDll::StartAppL(*cmdLine);
CleanupStack::PopAndDestroy(); // NewLC has put the pointer of CApaCommandLine to CleanupStack
}