hack windows installer to NOT reinstall freetype,zlib,sdl on upgrade

This commit is contained in:
Chris Forbes
2010-07-03 10:56:06 +12:00
parent 8018fa0aec
commit 8d88d73e53

View File

@@ -168,19 +168,25 @@ SectionEnd
Section "-Sdl" SDL Section "-Sdl" SDL
AddSize 317 AddSize 317
SetOutPath "$TEMP" IfFileExists $INSTDIR\SDL.dll done installsdl
NSISdl::download http://www.libsdl.org/release/SDL-1.2.14-win32.zip sdl.zip installsdl:
!insertmacro ZIPDLL_EXTRACT sdl.zip $INSTDIR SDL.dll SetOutPath "$TEMP"
NSISdl::download http://www.libsdl.org/release/SDL-1.2.14-win32.zip sdl.zip
!insertmacro ZIPDLL_EXTRACT sdl.zip $INSTDIR SDL.dll
done:
SectionEnd SectionEnd
Section "-Freetype" Freetype Section "-Freetype" Freetype
AddSize 583 AddSize 583
SetOutPath "$TEMP" SetOutPath "$TEMP"
NSISdl::download http://www.open-ra.org/releases/windows/freetype-zlib.zip freetype-zlib.zip IfFileExists $INSTDIR\zlib1.dll done installfreetype
Pop $R0 installfreetype:
StrCmp $R0 "success" +2 NSISdl::download http://www.open-ra.org/releases/windows/freetype-zlib.zip freetype-zlib.zip
Abort Pop $R0
ZipDLL::extractall "freetype-zlib.zip" "$INSTDIR" StrCmp $R0 "success" +2
Abort
ZipDLL::extractall "freetype-zlib.zip" "$INSTDIR"
done:
SectionEnd SectionEnd
;*************************** ;***************************