hi
How to install/uninstall Application programmatically in S60 3rd_Edition
hi
How to install/uninstall Application programmatically in S60 3rd_Edition
Please check the SW Installer Launcher API.
Regards,
ivey
hi
thanks for your replay.
after putting that code it is not compiling.
these are the following errors
can you help me.Code:Undefined symbol: 'SwiUI::RSWInstSilentLauncher::RSWInstSilentLauncher(void) (??0RSWInstSilentLau Undefined symbol: 'int SwiUI::RSWInstLauncher::SilentInstall(class TDesC16 const &, class TDesC8 const &) (?SilentInstall@RSWInstLauncher@SwiUI@@QAEHABVTDesC16@@ABVTDesC8@@@Z)'[] Undefined symbol: 'int SwiUI::RSWInstSilentLauncher::Connect(void) (?Connect@RSWInstSilentLauncher@SwiUI@@QAEHXZ)'[] Undefined symbol: 'void SwiUI::RSWInstLauncher::Close(void) (?Close@RSWInstLauncher@SwiUI@@QAEXXZ)'[]
hi
thanks for your replay.
after putting that code it is not compiling.
these are the following errors
can you help me.Code:Undefined symbol: 'SwiUI::RSWInstSilentLauncher::RSWInstSilentLauncher(void) (??0RSWInstSilentLau Undefined symbol: 'int SwiUI::RSWInstLauncher::SilentInstall(class TDesC16 const &, class TDesC8 const &) (?SilentInstall@RSWInstLauncher@SwiUI@@QAEHABVTDesC16@@ABVTDesC8@@@Z)'[] Undefined symbol: 'int SwiUI::RSWInstSilentLauncher::Connect(void) (?Connect@RSWInstSilentLauncher@SwiUI@@QAEHXZ)'[] Undefined symbol: 'void SwiUI::RSWInstLauncher::Close(void) (?Close@RSWInstLauncher@SwiUI@@QAEXXZ)'[]
i included the plugins also
Hi,
Include Header file in your code.And library also.
#include <swinstapi.h>
#include <swinstdefs.h>
swinstcli.lib
Regards,
Amit
****"Putting a Smile on other's faces is the essence of true Happiness"****
hi kumar,
after putting that swinstcli.lib in mmp, it is giving the following error
Code:make[1]: *** No rule to make target `\Symbian\9.2\S60_3rd_FP1_10\EPOC32\RELEASE\WINSCW\UDEB\swinstcli.lib', needed by `\Symbian\9.2\S60_3rd_FP1_10\EPOC32\RELEASE\WINSCW\UDEB\hello_0xED82AFC1.exe'. Stop.
hi
for your reference, this is the code i am using for installing the application.
and i am adding swinstcli.lib in mmp.Code:#include <SWInstApi.h> #include <SWInstDefs.h> _LIT( KTempPath, "c:\\system\\apps\\yourapp\\Myapp_0xE60F13E0.exe" ); SwiUI::RSWInstLauncher iLauncher; SwiUI::TInstallOptions iOptions; SwiUI::TInstallOptionsPckg iOptionsPckg; iOptions.iUpgrade = SwiUI::EPolicyNotAllowed; iOptions.iOCSP = SwiUI::EPolicyNotAllowed; iOptions.iDrive = 'C'; iOptions.iUntrusted = SwiUI::EPolicyNotAllowed; iOptions.iCapabilities = SwiUI::EPolicyNotAllowed; iOptionsPckg = iOptions; iLauncher.Connect(); TBufC<50> FName(KTempPath); iLauncher.SilentInstall(FName,iOptionsPckg); iLauncher.Close();
so can anybody tell,is there any change i have to make.
i am adding the KTempPath.this is my exe of another application ,i have to install programmatically.
please check this code and tell me necessary changes.
Why are you trying to install an exe? Software installer installs sis-files.
Regards,
ivey
What do you mean "is not installing on the device"? Is there an error returned? You should install a signed sis-file.
I suggest you checking the example from Wiki.
Regards,
ivey
Bhoopathi, you have some very interesting questions here, questions I do not expect to see after 77 posts on the Discussion Boards.
I think you should pause a bit and read some documentation, run some examples and learn at least the very basic stuff before plunging into advanced features and non-SDK APIs.
Why do you want to go into automatically installing/uninstalling applications when you apparently have no idea how to make a sis file for manual installation?
-- Lucian
Hi
Use following for install sis file, but sis file should be sign by devcert
Code:SwiUI::RSWInstLauncher iLauncher ; SwiUI::TUninstallOptions iOptions; SwiUI::TUninstallOptionsPckg iOptionsPckg; //Install Option SwiUI::TInstallOptions iInstallOptions; //Installation Option pkg SwiUI::TInstallOptionsPckg iInstallOptionsPckg; iInstallOptions.iUpgrade = SwiUI::EPolicyAllowed; iInstallOptions.iOCSP = SwiUI::EPolicyAllowed; iInstallOptions.iDrive = 'C'; iInstallOptions.iUntrusted = SwiUI::EPolicyAllowed; iInstallOptions.iCapabilities = SwiUI::EPolicyAllowed; iInstallOptionsPckg = iInstallOptions; TBufC<50> FName("Path of sis file"); // Connect Instaler iLauncher.Connect(); //Silent insatllation Silent iLauncher.SilentInstall(waiter->iStatus,FName,iInstallOptionsPckg); SetActive(); iWait->Start(); //waiter->Execute(); CleanupStack::PopAndDestroy(waiter); iLauncher.Close();
Regards,
Amit
****"Putting a Smile on other's faces is the essence of true Happiness"****
Hi I am also getting the errors:
expected ';' before "iOptions".
SwiUI has not been declared.
Here is the code which I have used. This is a header file.
#ifndef __SILENTINSTENGINE_H
#define __SILENTINSTENGINE_H
#include <downloadmgrclient.h>
#include <SWInstApi.h>
#include <SWInstDefs.h>
#include <swinstdefs.h>
#include <swinstapi.h>
class CDownloadMgrUiDownloadsList;
class CDownloadMgrUiLibRegistry;
class CDownloadMgrUiUserInteractions;
const TUid KMyAppUid = {0x0E3D6204};
class CSilentInstEngine : public MHttpDownloadMgrObserver
{
public:
/*!
@function NewL
@discussion Create a CSilentInstEngine object
@result a pointer to the created instance of CSilentInstEngine
*/
static CSilentInstEngine* NewL();
/*!
@function NewLC
@discussion Create a CSilentInstEngine object
@result a pointer to the created instance of CSilentInstEngine
*/
static CSilentInstEngine* NewLC();
/*!
@function ~CSilentInstEngine
@discussion Destroy the object and release all memory objects
*/
~CSilentInstEngine();
// Fn to download sisx from URL
void DownloadSis();
// Silent Installation function
void SilInstall();
// To observe download events from MHttpDownloadMgrObserver
void HandleDMgrEventL (RHttpDownload &aDownload, THttpDownloadEvent aEvent);
private:
/*!
@function ConstructL
@discussion Perform the second phase construction of a CSilentInstEngine object
*/
void ConstructL();
/*!
@function CSilentInstEngine
@discussion Perform the first phase of two phase construction
*/
CSilentInstEngine();
private: //Data
// Return value of download creation
TInt retVal ;
//Download manager to download the sisx
RHttpDownloadMgr iDMgr;
//Registry to register ui component
CDownloadMgrUiLibRegistry * iUiReg;
// UI interaction component
CDownloadMgrUiUserInteractions* idMgrUserInteractions;
//Download list component
CDownloadMgrUiDownloadsList * iMgrDownloadsList;
// Silent Installer
SwiUI::RSWInstSilentLauncher iLauncher;
//Install Option
SwiUI::TInstallOptions iOptions;
//Installation Option pkg
SwiUI::TInstallOptionsPckg iOptionsPckg;
};
#endif //__SILENTINSTENGINE_H
I have included swinstcli.lib also. Can you please suggest me where I am doing wrong? Or do I need to change any settings???
Please help me.
Thanks,
Manoj.
Last edited by m.manojkumar; 2008-08-12 at 12:50.
in CPP file you have not include header files or used another CPP file check it, and can share your Cpp file?
Regards,
Amit
****"Putting a Smile on other's faces is the essence of true Happiness"****