From 0d4e2ec3a681a34839356e3ce6ff11d12ef7c279 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 13 May 2023 23:48:03 +0300 Subject: [PATCH 32/32] 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 | 33 ++++++++++--------- .../create-freeciv-ruledit-nsi.sh | 28 +++++++++------- .../create-freeciv-sdl2-nsi.sh | 33 ++++++++++--------- 3 files changed, 52 insertions(+), 42 deletions(-) diff --git a/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh b/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh index d6063706e8..b0c236cd01 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 $5 !define WIN_ARCH $6 +!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 "$2/\${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,7 +90,7 @@ Page custom HelperScriptFunction !insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_INSTFILES -;Languages +; Languages !insertmacro MUI_LANGUAGE "English" @@ -124,7 +127,7 @@ EOF cat <