From 0e7ff0326a7b0d4258ae818c467d81c7794ce3ff Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 13 May 2023 23:15:43 +0300 Subject: [PATCH 24/24] installer_cross: Rearrange Registry keys hierarchy Move also Freeciv-ruledit keys under Freeciv/ Key paths now: Freeciv/// where either "client-" or "ruledit" See osdn #48040 Signed-off-by: Marko Lindqvist --- .../create-freeciv-gtk-qt-nsi.sh | 57 ++++++++++--------- .../create-freeciv-ruledit-nsi.sh | 48 +++++++++------- .../create-freeciv-sdl2-nsi.sh | 53 +++++++++-------- 3 files changed, 84 insertions(+), 74 deletions(-) diff --git a/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh b/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh index 2bfd0a60d8..9b25d4f5d5 100755 --- a/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh +++ b/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh @@ -33,28 +33,31 @@ SetCompressor /SOLID lzma !define MPEXE_ID $MPEXE_ID !define GUI_NAME $4 !define WIN_ARCH $5 +!define KEYROOT "Freeciv" +!define APP_KEY_PART "client-\${GUI_ID}" + !define APPID "\${APPNAME}-\${VERSION}-\${GUI_ID}" !define MULTIUSER_EXECUTIONLEVEL Highest !define MULTIUSER_MUI !define MULTIUSER_INSTALLMODE_COMMANDLINE !define MULTIUSER_USE_PROGRAMFILES64 -!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "Software\\\${APPNAME}\\\${VERSION}\\\${GUI_ID}" +!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "Software\\\${KEYROOT}\\\${VERSION}\\\${APP_KEY_PART}" !define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME "" -!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "Software\\\${APPNAME}\\\${VERSION}\\\${GUI_ID}" +!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "Software\\\${KEYROOT}\\\${VERSION}\\\${APP_KEY_PART}" !define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME "" -!define MULTIUSER_INSTALLMODE_INSTDIR "\${APPNAME}-\${VERSION}-\${GUI_ID}" +!define MULTIUSER_INSTALLMODE_INSTDIR "\${APPNAME}-\${VERSION}-\${APP_KEY_PART}" !include "MultiUser.nsh" !include "MUI2.nsh" !include "nsDialogs.nsh" -;General +; General Name "\${APPNAME} \${VERSION} (\${GUI_NAME} client)" OutFile "Output/\${APPNAME}-\${VERSION}-\${WIN_ARCH}-\${GUI_ID}-setup.exe" -;Variables +; Variables Var STARTMENU_FOLDER Var DefaultLanguageCode @@ -69,9 +72,9 @@ Page custom DefaultLanguage DefaultLanguageLeave !insertmacro MULTIUSER_PAGE_INSTALLMODE !insertmacro MUI_PAGE_DIRECTORY -;Start Menu Folder Page Configuration +; Start Menu Folder Page Configuration !define MUI_STARTMENUPAGE_REGISTRY_ROOT "SHCTX" -!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\\\${APPNAME}\\\${VERSION}\\\${GUI_ID}" +!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\\\${KEYROOT}\\\${VERSION}\\\${APP_KEY_PART}" !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" !define MUI_STARTMENUPAGE_DEFAULTFOLDER "\$(^Name)" @@ -87,13 +90,13 @@ Page custom HelperScriptFunction !insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_INSTFILES -;Languages +; Languages !insertmacro MUI_LANGUAGE "English" EOF -### required files ### +### Required files ### cat <