1
Call the code in the program:
Capacommandline * cmdline;
Required line = capacommandline: newlc ();
Using line-> setlibrarynamel (_ L ("Z: // system // apps // appinst. app "));
Using line-> setdocumentnamel (_ L ("C: // Nokia // install///mytest. Sis "));
Using line-> settailendl (_ L8 ("installx "));
Using line-> setcommandl (eapacommandrun );
Rapalssession ls;
Tthreadid ID;
Tint err = ls. Connect ();
If (ERR = kerrnone)
Ls. Startapp (* using line, ID );
2
# Include <apgcli. h>
_ Partition (ksisfile, "C: // data // install// test. Sis ");
Rapalssession apasession;
Tthreadid threadid;
User: leaveiferror (apasession. Connect ());
User: leaveiferror (apasession. startdocument (ksisfile, threadid ));
Apasession. Close ();
3
Call in the PKG file:
@ "../Mytest. Sis", (0x2000a304)
The generated sis can only be run on the mobile phone. If the simulator cannot install the sisfile, an error is prompted.
From: http://discussion.forum.nokia.com/forum/showthread.php? T = 71046