I. Required header files:
# Include <swinstapi. h>
# Include <swinstdefs. h>
Ii. Required lib Library:
Swinstcli. Lib
3. Required capabilities:
Trustedui
4. Install the application:
_ Partition (ktemppath, "C: // siltest. sisx ");
Caosync * waiter = caosync: newl ();
Cleanupstack: pushl (waiter );
Ioptions. iupgrade = swiui: epolicynotallowed;
Ioptions. iocsp = swiui: epolicynotallowed;
Ioptions. iDrive = 'C ';
Ioptions. iuntrusted = swiui: epolicynotallowed;
Ioptions. icapabilities = swiui: epolicynotallowed;
Ioptionspckg = ioptions;
Tbufc <200> fname (ktemppath );
// Silent insatllation
Ilauncher. silentinstall (Waiter-> istatus, fname, ioptionspckg );
Waiter-> execute ();
Cleanupstack: popanddestroy (waiter );
5. Uninstall the application:
Const tuid kmyappuid = {0x12345678 };
// Silent insatllation
Swiui: tuninstalloptions options;
Swiui: tuninstalloptionspckg optionspckg;
Options. ikillapp = swiui: epolicyallowed;
Options. ibreakdependency = swiui: epolicyallowed;
Optionspckg = options;
Ilauncher. silentuninstall (kmyappuid, optionspckg, swiui: ksisxmimetype );
Vi. References:
S60_3rd_SDK_MR_API_Plug-In_Pack_v5_43
:
Http://www.forum.nokia.com/info/sw.nokia.com/id/53439e01-f605-4491-96f4-62d003bd4c0c/S60_3rd_SDK_MR_API_Plug-In_Pack1.zip.html
Silentinst.zip
Http://wiki.forum.nokia.com/images/2/2f/SilentInst.zip