Symbian calls the SIS installation package in the program

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.