4 ;--------------------------------
6 ; The name of the installer
9 !define VERSION GDASH
-VERSION
10 !define MINGWDIR
c:\mingw
13 OutFile "gdash-${VERSION}-installer.exe"
15 ; The default installation directory
16 InstallDir $PROGRAMFILES\GDash
18 ; Registry key to check for directory (so if you install again, it will
19 ; overwrite the old one automatically)
20 InstallDirRegKey HKLM "Software\GDash" "Install_Dir"
22 ;--------------------------------
29 UninstPage uninstConfirm
32 ;--------------------------------
34 ; The stuff to install
35 Section "GDash (required)"
42 File "include\boulder_rush.png"
43 File "include\c64_gfx.png"
44 File "include\c64_gfx_bd2.png"
45 File "include\gdash_screen.png"
46 File "include\gdash_tile.png"
48 File /oname=README
.txt
"README"
49 File /oname=TODO
.txt
"TODO"
50 File /oname=COPYING
.txt
"COPYING"
51 File /oname=COPYING_SDL
.txt
"COPYING.SDL"
52 File /oname=COPYING_GTK
.txt
"COPYING.GTK"
57 File ${MINGWDIR}\bin\libgcc_s_dw2
-1.dll
58 File ${MINGWDIR}\bin\libstdc
++-6.dll
60 ; Program files, Glib dlls
61 File ${MINGWDIR}\bin\intl
.dll
62 File ${MINGWDIR}\bin\libglib
-2.0-0.dll
63 File ${MINGWDIR}\bin\libgio
-2.0-0.dll
64 File ${MINGWDIR}\bin\libgmodule
-2.0-0.dll
65 File ${MINGWDIR}\bin\libgobject
-2.0-0.dll
66 File ${MINGWDIR}\bin\libgthread
-2.0-0.dll
68 ; Program files, GTK+ dlls
70 File ${MINGWDIR}\bin\freetype6
.dll
71 File ${MINGWDIR}\bin\libatk
-1.0-0.dll
72 File ${MINGWDIR}\bin\libcairo
-2.dll
73 File ${MINGWDIR}\bin\libexpat
-1.dll
74 File ${MINGWDIR}\bin\libfontconfig
-1.dll
75 File ${MINGWDIR}\bin\libgdk_pixbuf
-2.0-0.dll
76 File ${MINGWDIR}\bin\libgdk
-win32
-2.0-0.dll
77 File ${MINGWDIR}\bin\libgtk
-win32
-2.0-0.dll
78 File ${MINGWDIR}\bin\libpango
-1.0-0.dll
79 File ${MINGWDIR}\bin\libpangocairo
-1.0-0.dll
80 File ${MINGWDIR}\bin\libpangoft2
-1.0-0.dll
81 File ${MINGWDIR}\bin\libpangowin32
-1.0-0.dll
82 File ${MINGWDIR}\bin\libpng14
-14.dll
83 File ${MINGWDIR}\bin\libpng15
-15.dll
84 File ${MINGWDIR}\bin\zlib1
.dll
86 ; Program files, SDL dlls
88 File ${MINGWDIR}\bin\SDL
.dll
89 File ${MINGWDIR}\bin\SDL_mixer
.dll
90 File ${MINGWDIR}\bin\SDL_image
.dll
91 File ${MINGWDIR}\bin\libvorbis
-0.dll
92 File ${MINGWDIR}\bin\libvorbisfile
-3.dll
93 File ${MINGWDIR}\bin\libogg
-0.dll
94 ; the currently used sdl_img required a different version of libpng.
95 ; also requires zlib1, but that is also shipped with gtk+
96 ; also ship jpeg, so the game can load jpegs - just in case.
97 File ${MINGWDIR}\bin\libpng14
-14.dll
98 File ${MINGWDIR}\bin\libjpeg
-8.dll
103 File docs\replay_to_avi
.html
105 File docs\background
.png
107 File docs\avidemux_codec
.png
108 File docs\avidemux_fps
.png
110 ; Write the installation path into the registry
111 WriteRegStr HKLM SOFTWARE\GDash
"Install_Dir" "$INSTDIR"
113 ; Write the uninstall keys for Windows
114 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\GDash" "DisplayName" "GDash"
115 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\GDash" "UninstallString" '"$INSTDIR\uninstall.exe"'
116 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\GDash" "NoModify" 1
117 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\GDash" "NoRepair" 1
118 WriteUninstaller "uninstall.exe"
122 ; Optional section (can be disabled by the user)
123 ; The stuff to install
126 ; Set output path to the installation directory.
127 SetOutPath $INSTDIR\caves
130 File /r
/x Makefile
* /x create_makefile
.sh
"caves\*"
134 Section "Sound files"
135 SetOutPath $INSTDIR\sound
138 SetOutPath $INSTDIR\music
143 Section "Translations"
145 SetOutPath $INSTDIR\hu\LC_MESSAGES
146 File /r
${MINGWDIR}\share\locale\hu\LC_MESSAGES\gtk20
.mo
147 File /r
${MINGWDIR}\share\locale\hu\LC_MESSAGES\glib20
.mo
148 SetOutPath $INSTDIR\de\LC_MESSAGES
149 File /r
${MINGWDIR}\share\locale\de\LC_MESSAGES\gtk20
.mo
150 File /r
${MINGWDIR}\share\locale\de\LC_MESSAGES\glib20
.mo
152 SetOutPath $INSTDIR\hu\LC_MESSAGES
153 File /oname=gdash
.mo
"po\hu.gmo"
154 SetOutPath $INSTDIR\de\LC_MESSAGES
155 File /oname=gdash
.mo
"po\de.gmo"
159 ; Optional section (can be disabled by the user)
160 Section "Start Menu Shortcuts"
163 CreateDirectory "$SMPROGRAMS\GDash"
164 CreateShortCut "$SMPROGRAMS\GDash\GDash.lnk" "$INSTDIR\gdash.exe" "" "$INSTDIR\gdash.ico" 0
165 CreateShortCut "$SMPROGRAMS\GDash\README.lnk" "$INSTDIR\README.txt" "" "" 0
166 CreateShortCut "$SMPROGRAMS\GDash\Replay to AVI HOWTO.lnk" "$INSTDIR\replay_to_avi.html" "" "" 0
167 CreateShortCut "$SMPROGRAMS\GDash\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
173 ; Optional section (can be disabled by the user)
174 Section "Register *.bd and *.gds files"
176 WriteRegStr HKCR ".bd" "" "GDash.Caveset"
177 WriteRegStr HKCR ".gds" "" "GDash.Caveset"
179 WriteRegStr HKCR "GDash.Caveset" "" "GDash Caveset"
180 WriteRegStr HKCR "GDash.Caveset\DefaultIcon" "" "$INSTDIR\gdash.ico,0"
182 WriteRegStr HKCR "GDash.Caveset\shell\open\command" "" '"$INSTDIR\gdash.exe" "%1"'
183 WriteRegStr HKCR "GDash.Caveset\shell\edit\command" "" '"$INSTDIR\gdash.exe" -e "%1"'
189 ; Optional section (can be disabled by the user)
190 Section "any2gdash conversion utility"
193 File "util\any2gdash.exe"
201 ;--------------------------------
206 ; Remove registry keys
207 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\GDash"
208 DeleteRegKey HKLM SOFTWARE\GDash
209 DeleteRegKey HKCR ".bd"
210 DeleteRegKey HKCR ".gds"
211 DeleteRegKey HKCR "GDash.Caveset"
213 ; Remove shortcuts, if any
214 Delete "$SMPROGRAMS\GDash\*.*"
215 RMDir "$SMPROGRAMS\GDash"
217 ; Remove directories used