iaupdate/IAD/engine/controller/src/iaupdateinstalloperation.cpp
changeset 53 ae54820ef82c
parent 33 8110bf1194d1
child 66 8b7f4e561641
child 69 b18a4bf55ddb
equal deleted inserted replaced
52:92f864ef0288 53:ae54820ef82c
   203     
   203     
   204     if( install )
   204     if( install )
   205         {
   205         {
   206         // Install interface was available.
   206         // Install interface was available.
   207         // So, start installing with silent install operation.
   207         // So, start installing with silent install operation.
   208         SwiUI::TInstallOptions options(
   208         // Get silent install parameters 
   209             IAUpdateUtils::SilentInstallOptionsL( Node() ) );
   209         Usif::COpaqueNamedParams * options = Usif::COpaqueNamedParams::NewLC();
       
   210 
       
   211         IAUpdateUtils::UsifSilentInstallOptionsL ( options );
   210         
   212         
   211         operation = install->SilentInstallL( *this, options );
   213         operation = install->SilentInstallL( *this, options );
   212 
   214 
   213         if( !operation )
   215         if( !operation )
   214             {
   216             {
   215             // Could not create the operation for some reason.
   217             // Could not create the operation for some reason.
   216             IAUPDATE_TRACE("[IAUPDATE] ERROR Could not create the operation.");
   218             IAUPDATE_TRACE("[IAUPDATE] ERROR Could not create the operation.");
   217             User::Leave( KErrGeneral );
   219             User::Leave( KErrGeneral );
   218             }
   220             }
   219         
   221         CleanupStack::Pop( options );
   220         CleanupStack::PopAndDestroy( install );
   222         CleanupStack::PopAndDestroy( install );
   221         }
   223         }
   222     else
   224     else
   223         {
   225         {
   224         IAUPDATE_TRACE("[IAUPDATE] Install interface was not found.");
   226         IAUPDATE_TRACE("[IAUPDATE] Install interface was not found.");