diff options
Diffstat (limited to 'src/burn/engine/elevation.cpp')
| -rw-r--r-- | src/burn/engine/elevation.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/burn/engine/elevation.cpp b/src/burn/engine/elevation.cpp index 4d2e8544..7fd372b0 100644 --- a/src/burn/engine/elevation.cpp +++ b/src/burn/engine/elevation.cpp | |||
| @@ -402,6 +402,7 @@ static HRESULT ElevatedOnExecuteActionComplete( | |||
| 402 | 402 | ||
| 403 | extern "C" HRESULT ElevationElevate( | 403 | extern "C" HRESULT ElevationElevate( |
| 404 | __in BURN_ENGINE_STATE* pEngineState, | 404 | __in BURN_ENGINE_STATE* pEngineState, |
| 405 | __in WM_BURN reason, | ||
| 405 | __in_opt HWND hwndParent | 406 | __in_opt HWND hwndParent |
| 406 | ) | 407 | ) |
| 407 | { | 408 | { |
| @@ -450,7 +451,11 @@ extern "C" HRESULT ElevationElevate( | |||
| 450 | else if (HRESULT_FROM_WIN32(ERROR_CANCELLED) == hr) | 451 | else if (HRESULT_FROM_WIN32(ERROR_CANCELLED) == hr) |
| 451 | { | 452 | { |
| 452 | // The user clicked "Cancel" on the elevation prompt or the elevation prompt timed out, provide the notification with the option to retry. | 453 | // The user clicked "Cancel" on the elevation prompt or the elevation prompt timed out, provide the notification with the option to retry. |
| 453 | hr = HRESULT_FROM_WIN32(ERROR_INSTALL_USEREXIT); | 454 | if (WM_BURN_APPLY == reason) |
| 455 | { | ||
| 456 | hr = HRESULT_FROM_WIN32(ERROR_INSTALL_USEREXIT); | ||
| 457 | } | ||
| 458 | |||
| 454 | nResult = UserExperienceSendError(&pEngineState->userExperience, BOOTSTRAPPER_ERROR_TYPE_ELEVATE, NULL, hr, NULL, MB_ICONERROR | MB_RETRYCANCEL, IDNOACTION); | 459 | nResult = UserExperienceSendError(&pEngineState->userExperience, BOOTSTRAPPER_ERROR_TYPE_ELEVATE, NULL, hr, NULL, MB_ICONERROR | MB_RETRYCANCEL, IDNOACTION); |
| 455 | } | 460 | } |
| 456 | } while (IDRETRY == nResult); | 461 | } while (IDRETRY == nResult); |
