Hi Experts,
I am testing backup and restore. I followed steps from link http://wiki.forum.nokia.com/index.ph...B_applications and link http://wiki.forum.nokia.com/index.ph...up_and_restore
Steps I did,
1) Installed application GUI and EXE. Run it
2) Took a complete backup
3) Uninstalled Application both GUI and EXE.
4) Restored from backup
5) Application restored and I can run GUI app perfectly fine
>>>>6) My GUI app actually starts EXE on a menu command and I am not able to start EXE.<<<
I checked memory card in data mode and my EXE is restored in sys/bin however when I try to start app. I get an error -1 (not found) with RApaLsSession:StartApp
This code works fine without backup-restore.Code:TThreadId app_threadid; CApaCommandLine* cmdLine; cmdLine=CApaCommandLine::NewLC(); cmdLine->SetExecutableNameL(_L("MyExeApp.exe")); cmdLine->SetCommandL( EApaCommandRun ); cmdLine->SetOpaqueDataL(_L8("1")); RApaLsSession ls; User::LeaveIfError(ls.Connect()); TInt err = ls.StartApp(*cmdLine,app_threadid); ls.Close(); CleanupStack::PopAndDestroy(); // cmdLine TBuf<128> buf; buf.AppendNum((TInt64)err); CEikonEnv::InfoWinL(_L("Error in start App: "),buf);
I am not able to understand why I get KErrNotFound when application is present in sys/bin of memory card? and Executable file for GUI app is also in same folder but that works fine.
Few More Details:
I install both GUI and EXE via single package/sis file but since these 2 apps have difference uid so I have 2 backup_registration.xml each kept in their private folder
Please help

Reply With Quote

