Request permissions inside the NSIS installer by setting RequestExecutionLevel to "highest" instead of "user".
This commit is contained in:
parent
9866d7c456
commit
0f6f9b0c30
|
@ -54,7 +54,7 @@ elseif(MINGW OR MSVC)
|
|||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}_wpkg")
|
||||
set(CPACK_NSIS_MUI_ICON "${CMAKE_CURRENT_SOURCE_DIR}/resources/Yerbacon.ico")
|
||||
set(CPACK_NSIS_MUI_UNIICON "${CMAKE_CURRENT_SOURCE_DIR}/resources/Yerbacon.ico")
|
||||
set(CPACK_NSIS_DEFINES "RequestExecutionLevel user")
|
||||
set(CPACK_NSIS_DEFINES "RequestExecutionLevel highest")
|
||||
set(CPACK_SYSTEM_NAME "Win32-${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}")
|
||||
set(CPACK_TOPLEVEL_TAG "Win32-${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}")
|
||||
set(CPACK_NSIS_MODIFY_PATH ON)
|
||||
|
|
Loading…
Reference in New Issue