diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2022-09-02 16:12:42 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2022-09-03 15:29:26 -0500 |
| commit | 237bdc6a97c0dd455da99c16e6b3b7cac4c79e86 (patch) | |
| tree | 1f2c789a7aa752e068fac8a4ca08815d13bf527a /src/burn/engine/elevation.cpp | |
| parent | 7728e34e48a4fdb710ecc92dd8dca833bff3993f (diff) | |
| download | wix-237bdc6a97c0dd455da99c16e6b3b7cac4c79e86.tar.gz wix-237bdc6a97c0dd455da99c16e6b3b7cac4c79e86.tar.bz2 wix-237bdc6a97c0dd455da99c16e6b3b7cac4c79e86.zip | |
Add WixCanRestart and make wixstdba elevate for restart when required.
Fixes 5499
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); |
