aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/burn/engine/engine.cpp5
-rw-r--r--src/burn/engine/engine.mc7
2 files changed, 12 insertions, 0 deletions
diff --git a/src/burn/engine/engine.cpp b/src/burn/engine/engine.cpp
index 69f30e26..628708f5 100644
--- a/src/burn/engine/engine.cpp
+++ b/src/burn/engine/engine.cpp
@@ -696,6 +696,11 @@ static HRESULT RunElevated(
696 696
697 LogRedirect(RedirectLoggingOverPipe, &loggingContext); 697 LogRedirect(RedirectLoggingOverPipe, &loggingContext);
698 698
699 if (!pEngineState->internalCommand.fInitiallyElevated)
700 {
701 LogId(REPORT_ERROR, MSG_ELEVATED_ENGINE_NOT_ELEVATED);
702 }
703
699 // Create a top-level window to prevent shutting down the elevated process. 704 // Create a top-level window to prevent shutting down the elevated process.
700 hr = UiCreateMessageWindow(hInstance, pEngineState); 705 hr = UiCreateMessageWindow(hInstance, pEngineState);
701 ExitOnFailure(hr, "Failed to create the message window."); 706 ExitOnFailure(hr, "Failed to create the message window.");
diff --git a/src/burn/engine/engine.mc b/src/burn/engine/engine.mc
index 41c17270..32616721 100644
--- a/src/burn/engine/engine.mc
+++ b/src/burn/engine/engine.mc
@@ -177,6 +177,13 @@ Language=English
177Exit code: 0x%1!x! 177Exit code: 0x%1!x!
178. 178.
179 179
180MessageId=22
181Severity=Error
182SymbolicName=MSG_ELEVATED_ENGINE_NOT_ELEVATED
183Language=English
184Elevated engine process is not running with elevated privileges. Either run the bundle as a privileged user or reconfigure Windows to allow standard users to request elevation.
185.
186
180MessageId=51 187MessageId=51
181Severity=Error 188Severity=Error
182SymbolicName=MSG_FAILED_PARSE_CONDITION 189SymbolicName=MSG_FAILED_PARSE_CONDITION