×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    85

    How to install/uninstall Application programmatically in S60 3rd Edition

    hi
    How to install/uninstall Application programmatically in S60 3rd_Edition

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    Moscow, Russia
    Posts
    803

    Re: How_to_install/uninstall_Application_programmatically_in_3rd_Edition

    Please check the SW Installer Launcher API.
    Regards,
    ivey

  3. #3
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    85

    Re: How_to_install/uninstall_Application_programmatically_in_3rd_Edition

    Quote Originally Posted by ivey View Post
    Please check the SW Installer Launcher API.
    hi
    thanks for your replay.
    after putting that code it is not compiling.

    these are the following errors

    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)'[]
    can you help me.

  4. #4
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    85

    Re: How_to_install/uninstall_Application_programmatically_in_3rd_Edition

    hi
    thanks for your replay.
    after putting that code it is not compiling.

    these are the following errors

    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)'[]
    can you help me.

    i included the plugins also

  5. #5
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: How to install/uninstall Application programmatically in S60 3rd Edition

    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"****

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How_to_install/uninstall_Application_programmatically_in_3rd_Edition

    Quote Originally Posted by Bhoopathi Kummara View Post
    hi
    thanks for your replay.
    after putting that code it is not compiling.

    these are the following errors

    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)'[]
    can you help me.

    i included the plugins also
    linking error just add swinstcli.lib to your mmp or to your IDE.

  7. #7
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    85

    Re: How_to_install/uninstall_Application_programmatically_in_3rd_Edition

    Quote Originally Posted by skumar_rao View Post
    linking error just add swinstcli.lib to your mmp or to your IDE.
    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.

  8. #8
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    85

    Re: How to install/uninstall Application programmatically in S60 3rd Edition

    hi
    for your reference, this is the code i am using for installing the application.


    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();
    and i am adding swinstcli.lib in mmp.

    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.

  9. #9
    Super Contributor
    Join Date
    Jun 2006
    Location
    Moscow, Russia
    Posts
    803

    Re: How to install/uninstall Application programmatically in S60 3rd Edition

    Why are you trying to install an exe? Software installer installs sis-files.
    Regards,
    ivey

  10. #10
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    85

    Re: How to install/uninstall Application programmatically in S60 3rd Edition

    hi thanx for your advice.
    i just seen that sis of one simple example is not installing on the device.
    is i have to install sisx?

    and tell me is there any changes.


    Quote Originally Posted by ivey View Post
    Why are you trying to install an exe? Software installer installs sis-files.

  11. #11
    Super Contributor
    Join Date
    Jun 2006
    Location
    Moscow, Russia
    Posts
    803

    Re: How to install/uninstall Application programmatically in S60 3rd Edition

    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

  12. #12
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: How to install/uninstall Application programmatically in S60 3rd Edition

    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

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  13. #13
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: How to install/uninstall Application programmatically in S60 3rd Edition

    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"****

  14. #14
    Registered User
    Join Date
    Jul 2008
    Posts
    21

    Thumbs up Re: How to install/uninstall Application programmatically in S60 3rd Edition

    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.

  15. #15
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: How to install/uninstall Application programmatically in S60 3rd Edition

    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"****

Similar Threads

  1. Doubts - S60 3rd Edition versus S60 3rd Edition FP1
    By juarezjunior in forum Symbian
    Replies: 4
    Last Post: 2009-04-27, 11:29
  2. Replies: 3
    Last Post: 2007-07-19, 09:25
  3. Replies: 3
    Last Post: 2007-04-20, 19:10
  4. Application backup Problem In s60 3rd Edition
    By saji_iq in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2007-02-15, 17:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •