×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    25

    Silent Installer problem

    Hi ALL,

    In my app(that auto starts after installation process ) i'm using RSWInstSilentLauncher for silent install purpose.

    The problem is that on E71(on some F/W) i'm getting KSWInstErrBusy error.

    when i try to check is Installer is running:

    Code:
       TFileName executableName;
       executableName.Copy( _L("Installer"));
       executableName.Trim();
       executableName.Append(_L("*")); 
     
       TBool situationFlag = EFalse; 
       TFindProcess processSearch;
       TFullName processFullName;
       while( processSearch.Next( processFullName ) == KErrNone) 
       {
          if( processFullName.Match(executableName) != KErrNotFound ) 
          {
             return ETrue;
          }
       }
       return situationFlag;
    the result is TRUE.

    Please, HELP!!!

  2. #2
    Regular Contributor
    Join Date
    Aug 2005
    Location
    India
    Posts
    399

    Re: Silent Installer problem


  3. #3
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Silent Installer problem

    is that error comes everytimes?

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    25

    Re: Silent Installer problem

    my code is working almost all devices( that i tested )

    instead of E71

    200.21.118
    27-11-2008
    RM-357

    before i run silent install i wait about 30 second and still getting KSWInstErrBusy error.

    also, i tried to kill Installer.exe process, but it is not so easy task.

    YES, it comes everytime.

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    25

    Re: Silent Installer problem

    Just got the report that the same thing on N95(don't know the F/W, because on my N95 the things is working)

    this is my code

    Code:
    CLauncherApp* CLauncherApp::NewL()
    {
        CLauncherApp* self = CLauncherApp::NewLC();
        CleanupStack::Pop(self);
        return self;
    }
    
    CLauncherApp* CLauncherApp::NewLC()
    {
        CLauncherApp* self = new (ELeave) CLauncherApp;
        CleanupStack::PushL(self);
        self->ConstructL();
        return self;
    }
    
    CLauncherApp::CLauncherApp() : CActive(CActive::EPriorityStandard)
    {
    	iLauncher = NULL;
    }
    
    CLauncherApp::~CLauncherApp()
    {
    	CActiveScheduler::Stop();
    	delete iLauncher;
    	delete iActiveScheduler;
    }
    
    void CLauncherApp::ConstructL()
    {
    	iActiveScheduler = new (ELeave) CActiveScheduler;
    	CActiveScheduler::Install(iActiveScheduler);
    
    	CActiveScheduler::Add(this);
    }
    
    void CLauncherApp::Install( TDesC &aFileName )
    {
    	if(iLauncher)
    	{
    		iLauncher->Close();
    		delete iLauncher;
    		iLauncher = NULL;
    	}
    
    	iLauncher = new (ELeave )SwiUI::RSWInstSilentLauncher();
    
    	iOptions.iUpgrade = SwiUI::EPolicyAllowed;
    	iOptions.iOCSP = SwiUI::EPolicyNotAllowed;
    	iOptions.iDrive = 'C';   
    	iOptions.iUntrusted = SwiUI::EPolicyAllowed; 
    	iOptions.iCapabilities = SwiUI::EPolicyAllowed; 
    	iOptions.iKillApp = SwiUI::EPolicyAllowed; 
    	iOptions.iUpgradeData = SwiUI::EPolicyAllowed; 
    	iOptions.iOverwrite = SwiUI::EPolicyAllowed; 
    	iOptions.iDownload = SwiUI::EPolicyNotAllowed; 
    	iOptions.iPackageInfo = SwiUI::EPolicyAllowed;
    	
    	iOptionsPckg = iOptions;
    	
    	TInt err = iLauncher->Connect();
    	iLauncher->SilentInstall(iStatus, aFileName,iOptionsPckg);
    	SetActive();   
    	iWait.Start();
    }
    
    
    void CLauncherApp::StartInstallationL()
    {
    	User::After(10000000);
    
    	StartProgressNoteL();
    	iGlobalProgressDialog->UpdateProgressDialog(1,5);
    
            iInstallState = EPips;
    	Install(FName);
    }
    
    void CLauncherApp::DoCancel()
    {
        iWait.AsyncStop();
    }
    
    void CLauncherApp::RunL()
    {
    	iWait.AsyncStop();
    
    
    	if( iInstallState == EPips )
    	{
    		iInstallState = ESsl;
    		FName.Zero();
    		FName.Copy(KSslFile);
    		UpdateProcessL(2);
    		Install(FName);
    	}
    	else if( iInstallState == ESsl )
    	{
    		iInstallState = EGlib;
    		FName.Zero();
    		FName.Copy(KGlibFile);
    		UpdateProcessL(3);
    		Install(FName);
    	}
    	else if( iInstallState == EGlib )
    	{
    		iInstallState = EStdCpp;
    		FName.Zero();
    		FName.Copy(KStdFile);
    		UpdateProcessL(4);
    		Install(FName);
    	}
    	else if( iInstallState == EStdCpp )
    	{
    		iInstallState = EVas;
    		FName.Zero();
    		FName.Copy(KVasFile);
    		UpdateProcessL(5);
    		Install(FName);
    	}
    	else
    	{
    	    CAknGlobalNote  *confirmationDialog = CAknGlobalNote ::NewL();
    	    confirmationDialog->ShowNoteL(EAknGlobalConfirmationNote ,KInstalled);		
    	}
    }
    
    void CLauncherApp::StartProgressNoteL()	
    {
    	TBuf16<70> note1;
    	note1.Copy(_L("Installing"));
    	TRequestStatus aStatus;
    	iGlobalProgressDialog = CAknGlobalProgressDialog::NewL(); 
    	iGlobalProgressDialog->ShowProgressDialogL( aStatus, note1, R_AVKON_SOFTKEYS_EMPTY, 5 );
    }
    
    void CLauncherApp::UpdateProcessL(TInt aProgress)
    {
       if(iGlobalProgressDialog)
       {
    	   iGlobalProgressDialog->UpdateProgressDialog(aProgress, 5);	
       }
    }
    
    GLDEF_C TInt E32Main()
    {
    	CTrapCleanup* cleanup = CTrapCleanup::New(); // get clean-up stack
    	CLauncherApp *iLauncherApp = new CLauncherApp();
    	iLauncherApp->ConstructL();
    
    	TRAPD(error,iLauncherApp->StartInstallationL());
    	__ASSERT_ALWAYS(!error, User::Panic(KApplicationName,error));
    
    	delete iLauncherApp;
    	delete cleanup; // destroy clean-up stack
    
        return 0;
    }

Similar Threads

  1. [moved] problem in creating combined installer (sis) for jad and .exe
    By amit.mangal in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 7
    Last Post: 2009-11-06, 12:08
  2. How about a simple silent mode delay!!!
    By gsgriffin in forum General Development Questions
    Replies: 2
    Last Post: 2008-01-25, 02:04
  3. About 6230 Bt Problem
    By eerkek in forum Bluetooth Technology
    Replies: 17
    Last Post: 2005-02-08, 12:33
  4. 7210 Silent Problem
    By MarkMckim in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-18, 12:36
  5. 3501i Silent Problem
    By MarkMckim in forum Mobile Java General
    Replies: 0
    Last Post: 2003-03-05, 16:58

Posting Permissions

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