Added provisions to NSIS script to install Python standard library (Lib and DLLs dirs).

This commit is contained in:
Sergey Popov 2008-11-18 16:39:10 +00:00
parent 297a217fb5
commit 9b2e60e696

View file

@ -144,6 +144,15 @@ Section "Battle for Wesnoth" BfWSection
File packaging\windows\wesnoth_editor-icon.ico
%NSIS_INSTALL_FILES
; install python stuff
SetOutPath "$INSTDIR\Lib"
File /nonfatal /r /x .* /x *.pyc /x *.pyo Lib\*.*
SetOutPath "$INSTDIR\DLLs"
File /nonfatal /r /x .* DLLs\*.*
SetOutPath "$INSTDIR"
;Store installation folder
WriteRegStr SHCTX "Software\Battle for Wesnoth\%version" "" $INSTDIR
@ -191,7 +200,8 @@ FunctionEnd
Section "Uninstall"
;ADD YOUR OWN FILES HERE...
RMDir /r "$INSTDIR\Lib"
RMDir /r "$INSTDIR\DLLs"
%NSIS_UNINSTALL_FILES
Delete "$INSTDIR\wesnoth_editor-icon.ico"
RMDir /r "$INSTDIR\manual"