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
AddSize 317
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
IfFileExists $INSTDIR\SDL.dll done installsdl
installsdl:
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
Section "-Freetype" Freetype
AddSize 583
SetOutPath "$TEMP"
NSISdl::download http://www.open-ra.org/releases/windows/freetype-zlib.zip freetype-zlib.zip
Pop $R0
StrCmp $R0 "success" +2
Abort
ZipDLL::extractall "freetype-zlib.zip" "$INSTDIR"
IfFileExists $INSTDIR\zlib1.dll done installfreetype
installfreetype:
NSISdl::download http://www.open-ra.org/releases/windows/freetype-zlib.zip freetype-zlib.zip
Pop $R0
StrCmp $R0 "success" +2
Abort
ZipDLL::extractall "freetype-zlib.zip" "$INSTDIR"
done:
SectionEnd
;***************************