From 808236e0fd1be7d4f1b0a05457c80be05377aa81 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Tue, 16 Feb 2021 20:14:22 +0100 Subject: [PATCH] Run the 'x86' version of IDNMInstaller only on 32-Bit version of Windows XP. --- etc/NSIS/setup.nsi | 12 ++++++++---- src/Config.h | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/etc/NSIS/setup.nsi b/etc/NSIS/setup.nsi index ce095c22..5a13f072 100644 --- a/etc/NSIS/setup.nsi +++ b/etc/NSIS/setup.nsi @@ -555,6 +555,11 @@ FunctionEnd RMDir /r ${options} "$INSTDIR\redist" !macroend +!macro InstallRedist srcdir filename + File /a `/oname=$PLUGINSDIR\${filename}` `${srcdir}\${filename}` + ExecWait `"$PLUGINSDIR\${filename}" /passive` +!macroend + ;-------------------------------- ;Install Files ;-------------------------------- @@ -604,11 +609,10 @@ Section "-Install Runtime Libraries" ${If} ${AtMostWinXP} ${AndIfNot} ${FileExists} `$SYSDIR\normaliz.dll` !insertmacro PrintProgress "$(LAMEXP_LANG_STATUS_VCREDIST)" - File /a `/oname=$PLUGINSDIR\idndl.x86.exe` `${PrerequisitesDir}\IDNMInstaller\idndl.x86.exe` - ExecWait `"$PLUGINSDIR\idndl.x86.exe" /passive` ${If} ${RunningX64} - File /a `/oname=$PLUGINSDIR\idndl.x64.exe` `${PrerequisitesDir}\IDNMInstaller\idndl.x64.exe` - ExecWait `"$PLUGINSDIR\idndl.x64.exe" /passive` + !insertmacro InstallRedist '${PrerequisitesDir}\IDNMInstaller' 'idndl.x64.exe' + ${Else} + !insertmacro InstallRedist '${PrerequisitesDir}\IDNMInstaller' 'idndl.x86.exe' ${EndIf} ${EndIf} SectionEnd diff --git a/src/Config.h b/src/Config.h index 1a4e2b3c..2588a820 100644 --- a/src/Config.h +++ b/src/Config.h @@ -35,7 +35,7 @@ #define VER_LAMEXP_MINOR_LO 9 #define VER_LAMEXP_TYPE RC #define VER_LAMEXP_PATCH 2 -#define VER_LAMEXP_BUILD 2289 +#define VER_LAMEXP_BUILD 2291 #define VER_LAMEXP_CONFG 2188 ///////////////////////////////////////////////////////////////////////////////