From 3d434206769d779959efecf6c477c3754a53d0dc Mon Sep 17 00:00:00 2001 From: sindoring Date: Tue, 28 Jul 2026 20:48:31 +0400 Subject: [PATCH] fix --- README.md | 4 ++++ docs/launcher_self_update.md | 5 +++++ windows/runner/CMakeLists.txt | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 21bef64..b5b9da9 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ MoonWell Launcher is the desktop launcher for MoonWell, a private World of Warcraft: Wrath of the Lich King server focused on a player-friendly experience without excessive grind and with stronger social play. +The Windows executable requests administrator privileges on startup so it can +synchronize game clients installed under protected directories such as +`Program Files`. + The launcher is responsible for: - logging in to a player's MoonWell account diff --git a/docs/launcher_self_update.md b/docs/launcher_self_update.md index d0735b6..cabc0bd 100644 --- a/docs/launcher_self_update.md +++ b/docs/launcher_self_update.md @@ -9,6 +9,11 @@ WinSparkle shows its native prompt only when a newer version is available. Missing configuration, network failures, and malformed feeds do not block the launcher. Periodic WinSparkle checks are disabled. +`MoonWell.exe` uses the Windows `requireAdministrator` execution level. Users +therefore receive a UAC prompt whenever the launcher starts. This is required +to synchronize game files installed in protected directories. The per-user +Inno Setup installer remains configured with `PrivilegesRequired=lowest`. + ## Build Configuration Pass the public feed URL at build time: diff --git a/windows/runner/CMakeLists.txt b/windows/runner/CMakeLists.txt index 394917c..c6b7f10 100644 --- a/windows/runner/CMakeLists.txt +++ b/windows/runner/CMakeLists.txt @@ -35,6 +35,11 @@ target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") +target_link_options( + ${BINARY_NAME} + PRIVATE + "/MANIFESTUAC:level='requireAdministrator' uiAccess='false'" +) # Run the Flutter tool portions of the build. This must not be removed. add_dependencies(${BINARY_NAME} flutter_assemble)