From c77c63a3809c0cfb16c0da72ade25f5a762b9a3b Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 24 Sep 2010 16:26:45 +1200 Subject: [PATCH] Fix #130. Windows installer now checks version of OpenAL32.dll and downloads and updates if necessary. --- packaging/windows/OpenRA.nsi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packaging/windows/OpenRA.nsi b/packaging/windows/OpenRA.nsi index bcb96e31c2..85a5f1274b 100644 --- a/packaging/windows/OpenRA.nsi +++ b/packaging/windows/OpenRA.nsi @@ -17,6 +17,8 @@ !include "MUI2.nsh" !include "ZipDLL.nsh" +!include "FileFunc.nsh" +!include "WordFunc.nsh" Name "OpenRA" OutFile "OpenRA.exe" @@ -178,7 +180,11 @@ SectionGroupEnd ;*************************** Section "-OpenAl" OpenAl AddSize 768 - IfFileExists $SYSDIR\OpenAL32.dll done installal + ClearErrors + ${GetFileVersion} $SYSDIR\OpenAL32.dll $0 + IfErrors installal 0 + ${VersionCompare} $0 "6.14.357.24" $1 + IntCmp $1 1 done done installal installal: SetOutPath "$TEMP" NSISdl::download http://connect.creativelabs.com/openal/Downloads/oalinst.zip oalinst.zip