Install SDL and Freetype into program directory.
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
!include "MUI2.nsh"
|
!include "MUI2.nsh"
|
||||||
!include "ZipDLL.nsh"
|
!include "ZipDLL.nsh"
|
||||||
!include "x64.nsh"
|
|
||||||
|
|
||||||
Name "OpenRA"
|
Name "OpenRA"
|
||||||
OutFile "OpenRA.exe"
|
OutFile "OpenRA.exe"
|
||||||
@@ -94,27 +93,16 @@ Section "-OpenAl" OpenAl
|
|||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "-Sdl" SDL
|
Section "-Sdl" SDL
|
||||||
IfFileExists $SYSDIR\SDL.dll done installsdl
|
SetOutPath "$TEMP"
|
||||||
installsdl:
|
NSISdl::download http://www.libsdl.org/release/SDL-1.2.14-win32.zip sdl.zip
|
||||||
SetOutPath "$TEMP"
|
!insertmacro ZIPDLL_EXTRACT sdl.zip $INSTDIR SDL.dll
|
||||||
NSISdl::download http://www.libsdl.org/release/SDL-1.2.14-win32.zip sdl.zip
|
|
||||||
!insertmacro ZIPDLL_EXTRACT sdl.zip $SYSDIR SDL.dll
|
|
||||||
done:
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "-Freetype" Freetype
|
Section "-Freetype" Freetype
|
||||||
IfFileExists $SYSDIR\freetype6.dll done installft
|
SetOutPath "$TEMP"
|
||||||
installft:
|
NSISdl::download http://downloads.sourceforge.net/project/gnuwin32/freetype/2.3.5-1/freetype-2.3.5-1-bin.zip freetype.zip
|
||||||
SetOutPath "$TEMP"
|
!insertmacro ZIPDLL_EXTRACT freetype.zip $OUTDIR bin\freetype6.dll
|
||||||
NSISdl::download http://downloads.sourceforge.net/project/gnuwin32/freetype/2.3.5-1/freetype-2.3.5-1-bin.zip freetype.zip
|
CopyFiles "$OUTDIR\bin\freetype6.dll" $INSTDIR
|
||||||
!insertmacro ZIPDLL_EXTRACT freetype.zip $OUTDIR bin\freetype6.dll
|
|
||||||
;Epic hack to get around bug in CopyFiles
|
|
||||||
${If} ${RunningX64}
|
|
||||||
CopyFiles "$OUTDIR\bin\freetype6.dll" $WINDIR\SysWOW64
|
|
||||||
Goto done
|
|
||||||
${EndIf}
|
|
||||||
CopyFiles "$OUTDIR\bin\freetype6.dll" $SYSDIR
|
|
||||||
done:
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
;***************************
|
;***************************
|
||||||
@@ -146,6 +134,8 @@ Section "Uninstall"
|
|||||||
Delete $INSTDIR\OpenRA.ico
|
Delete $INSTDIR\OpenRA.ico
|
||||||
Delete $INSTDIR\*.ttf
|
Delete $INSTDIR\*.ttf
|
||||||
Delete $INSTDIR\settings-netplay-*.ini
|
Delete $INSTDIR\settings-netplay-*.ini
|
||||||
|
Delete $INSTDIR\freetype6.dll
|
||||||
|
Delete $INSTDIR\SDL.dll
|
||||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA"
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user