equal
deleted
inserted
replaced
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."); |