Hi,
I want to run an exe at the time of removing an application (which is not the same app as mentioned exe file)
for that in the pkg file of application I have written the name of exe file with RR option.
in the constructL function of exe file I am trying to close the installer.
But at the time of uninstallation the application is removed successfully and there is a "System Error" just before remove screen.
Here are a few lines of code:
//// from the exe file :
Code:
void CRemoveAppUi::ConstructL()
{
const TUid KInstallerUidin3rdEd = {0x101f875a};
RWsSession& wsSession = CEikonEnv::Static()->WsSession();
TApaTaskList taskList(wsSession);
TApaTask aTask2 = taskList.FindApp(KInstallerUidin3rdEd);
if(aTask2.Exists())
aTask2.EndTask();
}
//// statement from the pkg file of first app
"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\Remove.exe" -"!:\sys\bin\Remove.exe", RR
Plz anybody tell that why this "System error" is coming and why the installed is not being closed.
Please reply as soon as possible.
Thanks in advance,
Ravi Soni