hack windows installer to NOT reinstall freetype,zlib,sdl on upgrade
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
;***************************
|
;***************************
|
||||||
|
|||||||
Reference in New Issue
Block a user