Added provisions to NSIS script to install Python standard library (Lib and DLLs dirs).
This commit is contained in:
parent
297a217fb5
commit
9b2e60e696
1 changed files with 11 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue