From 78f85aa6efdeb8ada9afb5083dc75e645aa34e8c Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Tue, 10 Jun 2025 12:21:41 +0800 Subject: Windows menu shortcut & InstallDir without version Referring to cpack-generators(7) manual, I don't know what to replace the in CPACK_NSIS__INSTALL_DIRECTORY with, but in CPACK_NSIS_INSTALL_ROOT explanation, it mentions the full directory presented to the end user, and from that we can conclude the variable we need to set for customisation is just CPACK_PACKAGE_INSTALL_DIRECTORY. --- indra/newview/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 4e6531e22b..d7d2860fd9 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -1970,6 +1970,8 @@ if (WINDOWS) set(CPACK_NSIS_URL_INFO_ABOUT https://${VIEWER_PACKAGE_DOMAIN_NAME}) set(CPACK_NSIS_CONTACT $ENV{USER}@${VIEWER_PACKAGE_DOMAIN_NAME}) set(CPACK_NSIS_WELCOME_TITLE "Welcome to ${VIEWER_BINARY_NAME}!") + set(CPACK_NSIS_MENU_LINKS Megapahit.exe "Megapahit Viewer") + set(CPACK_PACKAGE_INSTALL_DIRECTORY ${VIEWER_BINARY_NAME}) if (FALSE) add_custom_command( -- cgit v1.2.3