Add more variables in NSIS script. fix executable name
This commit is contained in:
parent
26d0b8339f
commit
e4b3ca7109
@ -6,6 +6,10 @@
|
|||||||
|
|
||||||
!define INSTALLSIZE 10072
|
!define INSTALLSIZE 10072
|
||||||
|
|
||||||
|
!define FREETYPEDLL libfreetype-6.dll
|
||||||
|
!define JPEGDLL libjpeg-9.dll
|
||||||
|
!define PNGDLL libpng16-16.dll
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Include Modern UI
|
;Include Modern UI
|
||||||
|
|
||||||
@ -73,7 +77,7 @@ FunctionEnd
|
|||||||
|
|
||||||
Function .onInstSuccess
|
Function .onInstSuccess
|
||||||
MessageBox MB_YESNO "Run GrafX2 now ?" IDNO norun
|
MessageBox MB_YESNO "Run GrafX2 now ?" IDNO norun
|
||||||
Exec $INSTDIR\bin\grafx2.exe
|
Exec $INSTDIR\bin\grafx2-${API}.exe
|
||||||
norun:
|
norun:
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
@ -93,10 +97,10 @@ Section "Grafx2" SecProgram
|
|||||||
File ..\bin\SDL.dll
|
File ..\bin\SDL.dll
|
||||||
File ..\bin\SDL_ttf.dll
|
File ..\bin\SDL_ttf.dll
|
||||||
nosdl:
|
nosdl:
|
||||||
File ..\bin\libfreetype-6.dll
|
File ..\bin\${FREETYPEDLL}
|
||||||
File ..\bin\libjpeg-9.dll
|
File ..\bin\${JPEGDLL}
|
||||||
File ..\bin\zlib1.dll
|
File ..\bin\zlib1.dll
|
||||||
File ..\bin\libpng16-16.dll
|
File ..\bin\${PNGDLL}
|
||||||
SetOutPath "$INSTDIR\share\grafx2"
|
SetOutPath "$INSTDIR\share\grafx2"
|
||||||
File ..\share\grafx2\gfx2.gif
|
File ..\share\grafx2\gfx2.gif
|
||||||
File ..\share\grafx2\gfx2def.ini
|
File ..\share\grafx2\gfx2def.ini
|
||||||
@ -157,7 +161,7 @@ SectionEnd
|
|||||||
Section "Desktop shortcut" SecShortcut
|
Section "Desktop shortcut" SecShortcut
|
||||||
|
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
CreateShortCut "$DESKTOP\Grafx2.lnk" "$INSTDIR\bin\grafx2.exe" "" "" "" SW_SHOWNORMAL
|
CreateShortCut "$DESKTOP\Grafx2.lnk" "$INSTDIR\bin\grafx2-${API}.exe" "" "" "" SW_SHOWNORMAL
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
@ -182,17 +186,17 @@ Section "un.SecProgram"
|
|||||||
|
|
||||||
;ADD YOUR OWN FILES HERE...
|
;ADD YOUR OWN FILES HERE...
|
||||||
Delete "$INSTDIR\gfx2.ico"
|
Delete "$INSTDIR\gfx2.ico"
|
||||||
Delete "$INSTDIR\bin\grafx2.exe"
|
Delete "$INSTDIR\bin\grafx2-${API}.exe"
|
||||||
Delete "$INSTDIR\src-${VERSION}.tgz"
|
Delete "$INSTDIR\src-${VERSION}.tgz"
|
||||||
Delete "$INSTDIR\share\grafx2\gfx2.gif"
|
Delete "$INSTDIR\share\grafx2\gfx2.gif"
|
||||||
Delete "$INSTDIR\share\grafx2\gfx2def.ini"
|
Delete "$INSTDIR\share\grafx2\gfx2def.ini"
|
||||||
Delete "$INSTDIR\bin\SDL_image.dll"
|
Delete "$INSTDIR\bin\SDL_image.dll"
|
||||||
Delete "$INSTDIR\bin\SDL.dll"
|
Delete "$INSTDIR\bin\SDL.dll"
|
||||||
Delete "$INSTDIR\bin\libjpeg-9.dll"
|
|
||||||
Delete "$INSTDIR\bin\libfreetype-6.dll"
|
|
||||||
Delete "$INSTDIR\bin\SDL_ttf.dll"
|
Delete "$INSTDIR\bin\SDL_ttf.dll"
|
||||||
|
Delete "$INSTDIR\bin\${JPEGDLL}"
|
||||||
|
Delete "$INSTDIR\bin\${FREETYPEDLL}"
|
||||||
Delete "$INSTDIR\bin\zlib1.dll"
|
Delete "$INSTDIR\bin\zlib1.dll"
|
||||||
Delete "$INSTDIR\bin\libpng16-16.dll"
|
Delete "$INSTDIR\bin\${PNGDLL}"
|
||||||
Delete "$INSTDIR\bin\stdout.txt"
|
Delete "$INSTDIR\bin\stdout.txt"
|
||||||
Delete "$INSTDIR\bin\stderr.txt"
|
Delete "$INSTDIR\bin\stderr.txt"
|
||||||
RMDir "$INSTDIR\bin"
|
RMDir "$INSTDIR\bin"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user