make installer script for version 2.5
This commit is contained in:
		
							parent
							
								
									8e94f338df
								
							
						
					
					
						commit
						98e4c6ff87
					
				@ -1,356 +1,221 @@
 | 
				
			|||||||
;NSIS Modern User Interface
 | 
					;NSIS Modern User Interface
 | 
				
			||||||
;Based on the Example Script written by Joost Verburg
 | 
					;Based on the Example Script written by Joost Verburg
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;--------------------------------
 | 
					!define VERSION 2.5
 | 
				
			||||||
;Include Modern UI
 | 
					
 | 
				
			||||||
 | 
					;--------------------------------
 | 
				
			||||||
  !include "MUI2.nsh"
 | 
					;Include Modern UI
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;--------------------------------
 | 
					  !include "MUI2.nsh"
 | 
				
			||||||
;General
 | 
					
 | 
				
			||||||
 | 
					;--------------------------------
 | 
				
			||||||
  ;Name and file
 | 
					;General
 | 
				
			||||||
  Name "Grafx2"
 | 
					
 | 
				
			||||||
  OutFile "grafx2-2.4.2023.win32.exe"
 | 
					  ;Name and file
 | 
				
			||||||
 | 
					  Name "Grafx2"
 | 
				
			||||||
  ;Default installation folder
 | 
					  OutFile "grafx2-${VERSION}.win32.exe"
 | 
				
			||||||
  InstallDir "$PROGRAMFILES\Grafx2"
 | 
					
 | 
				
			||||||
  !define MULTIUSER_INSTALLMODE_INSTDIR "Grafx2"
 | 
					  ;Default installation folder
 | 
				
			||||||
  
 | 
					  InstallDir "$PROGRAMFILES\Grafx2"
 | 
				
			||||||
  ;Get installation folder from registry if available
 | 
					  !define MULTIUSER_INSTALLMODE_INSTDIR "Grafx2"
 | 
				
			||||||
  InstallDirRegKey HKCU "Software\Grafx2" ""
 | 
					  
 | 
				
			||||||
 | 
					  ;Get installation folder from registry if available
 | 
				
			||||||
  ;Request application privileges for Windows Vista
 | 
					  InstallDirRegKey HKCU "Software\Grafx2" ""
 | 
				
			||||||
  RequestExecutionLevel user
 | 
					
 | 
				
			||||||
 | 
					  ;Request application privileges for Windows Vista
 | 
				
			||||||
;--------------------------------
 | 
					  RequestExecutionLevel user
 | 
				
			||||||
;Interface Settings
 | 
					
 | 
				
			||||||
 | 
					  SetCompressor /SOLID LZMA
 | 
				
			||||||
  !define MUI_ABORTWARNING
 | 
					;--------------------------------
 | 
				
			||||||
 | 
					;Interface Settings
 | 
				
			||||||
;--------------------------------
 | 
					
 | 
				
			||||||
;Pages
 | 
					  !define MUI_ABORTWARNING
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  !define  MUI_WELCOMEFINISHPAGE_BITMAP vector.bmp
 | 
					;--------------------------------
 | 
				
			||||||
  !define MUI_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH
 | 
					;Pages
 | 
				
			||||||
  !insertmacro MUI_PAGE_WELCOME
 | 
					
 | 
				
			||||||
  !define MULTIUSER_EXECUTIONLEVEL Highest
 | 
					  !define  MUI_WELCOMEFINISHPAGE_BITMAP vector.bmp
 | 
				
			||||||
  !define MULTIUSER_MUI
 | 
					  !define MUI_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH
 | 
				
			||||||
  !define MULTIUSER_INSTALLMODE_COMMANDLINE
 | 
					  !insertmacro MUI_PAGE_WELCOME
 | 
				
			||||||
  ;!define MUI_HEADERIMAGE_BITMAP logo_scenish.bmp
 | 
					  !define MULTIUSER_EXECUTIONLEVEL Highest
 | 
				
			||||||
  ;!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
 | 
					  !define MULTIUSER_MUI
 | 
				
			||||||
  !insertmacro MUI_PAGE_LICENSE "..\doc\gpl-2.0.txt"
 | 
					  !define MULTIUSER_INSTALLMODE_COMMANDLINE
 | 
				
			||||||
  !include MultiUser.nsh
 | 
					  ;!define MUI_HEADERIMAGE_BITMAP logo_scenish.bmp
 | 
				
			||||||
  !insertmacro MULTIUSER_PAGE_INSTALLMODE
 | 
					  ;!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
 | 
				
			||||||
  !insertmacro MUI_PAGE_COMPONENTS
 | 
					  !insertmacro MUI_PAGE_LICENSE "..\doc\gpl-2.0.txt"
 | 
				
			||||||
  !insertmacro MUI_PAGE_DIRECTORY
 | 
					  !include MultiUser.nsh
 | 
				
			||||||
  !insertmacro MUI_PAGE_INSTFILES
 | 
					  !insertmacro MULTIUSER_PAGE_INSTALLMODE
 | 
				
			||||||
  
 | 
					  !insertmacro MUI_PAGE_COMPONENTS
 | 
				
			||||||
  !insertmacro MUI_UNPAGE_CONFIRM
 | 
					  !insertmacro MUI_PAGE_DIRECTORY
 | 
				
			||||||
  !insertmacro MUI_UNPAGE_INSTFILES
 | 
					  !insertmacro MUI_PAGE_INSTFILES
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
;--------------------------------
 | 
					  !insertmacro MUI_UNPAGE_CONFIRM
 | 
				
			||||||
;Languages
 | 
					  !insertmacro MUI_UNPAGE_INSTFILES
 | 
				
			||||||
 
 | 
					  
 | 
				
			||||||
  !insertmacro MUI_LANGUAGE "English"
 | 
					;--------------------------------
 | 
				
			||||||
 | 
					;Languages
 | 
				
			||||||
;--------------------------------
 | 
					 
 | 
				
			||||||
;Functions
 | 
					  !insertmacro MUI_LANGUAGE "English"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Function .onInit
 | 
					;--------------------------------
 | 
				
			||||||
  !insertmacro MULTIUSER_INIT
 | 
					;Functions
 | 
				
			||||||
FunctionEnd
 | 
					
 | 
				
			||||||
 | 
					Function .onInit
 | 
				
			||||||
Function un.onInit
 | 
					  !insertmacro MULTIUSER_INIT
 | 
				
			||||||
  !insertmacro MULTIUSER_UNINIT
 | 
					FunctionEnd
 | 
				
			||||||
FunctionEnd
 | 
					
 | 
				
			||||||
 | 
					Function un.onInit
 | 
				
			||||||
Function .onInstSuccess
 | 
					  !insertmacro MULTIUSER_UNINIT
 | 
				
			||||||
  MessageBox MB_YESNO "Run GrafX2 now ?" IDNO norun
 | 
					FunctionEnd
 | 
				
			||||||
    Exec $INSTDIR\bin\grafx2.exe
 | 
					
 | 
				
			||||||
  norun:
 | 
					Function .onInstSuccess
 | 
				
			||||||
FunctionEnd
 | 
					  MessageBox MB_YESNO "Run GrafX2 now ?" IDNO norun
 | 
				
			||||||
 | 
					    Exec $INSTDIR\bin\grafx2.exe
 | 
				
			||||||
;--------------------------------
 | 
					  norun:
 | 
				
			||||||
;Installer Sections
 | 
					FunctionEnd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Section "Grafx2" SecProgram
 | 
					;--------------------------------
 | 
				
			||||||
  SectionIn RO
 | 
					;Installer Sections
 | 
				
			||||||
  SetOutPath "$INSTDIR"
 | 
					
 | 
				
			||||||
  ;ADD YOUR OWN FILES HERE...
 | 
					Section "Grafx2" SecProgram
 | 
				
			||||||
  File ..\src-2.4wip2023.tgz
 | 
					  SectionIn RO
 | 
				
			||||||
  SetOutPath "$INSTDIR\bin"
 | 
					  SetOutPath "$INSTDIR"
 | 
				
			||||||
  File ..\bin\grafx2.exe
 | 
					  ;ADD YOUR OWN FILES HERE...
 | 
				
			||||||
  File ..\bin\SDL_image.dll
 | 
					  File ..\src\gfx2.ico
 | 
				
			||||||
  File ..\bin\SDL.dll
 | 
					  ;File ..\src-2.4wip2023.tgz
 | 
				
			||||||
  File ..\bin\libfreetype-6.dll
 | 
					  SetOutPath "$INSTDIR\bin"
 | 
				
			||||||
  File ..\bin\SDL_ttf.dll
 | 
					  File ..\bin\grafx2.exe
 | 
				
			||||||
  File ..\bin\zlib1.dll
 | 
					  File ..\bin\SDL_image.dll
 | 
				
			||||||
  File ..\bin\libpng14-14.dll
 | 
					  File ..\bin\SDL.dll
 | 
				
			||||||
  SetOutPath "$INSTDIR\share\grafx2"
 | 
					  File ..\bin\libfreetype-6.dll
 | 
				
			||||||
  File ..\share\grafx2\gfx2.gif
 | 
					  File ..\bin\SDL_ttf.dll
 | 
				
			||||||
  File ..\share\grafx2\gfx2def.ini
 | 
					  File ..\bin\zlib1.dll
 | 
				
			||||||
  SetOutPath "$INSTDIR\share\grafx2\skins"
 | 
					  File ..\bin\libpng14-14.dll
 | 
				
			||||||
  File ..\share\grafx2\skins\font_Classic.png
 | 
					  SetOutPath "$INSTDIR\share\grafx2"
 | 
				
			||||||
  File ..\share\grafx2\skins\font_DPaint.png
 | 
					  File ..\share\grafx2\gfx2.gif
 | 
				
			||||||
  File ..\share\grafx2\skins\font_Fairlight.png
 | 
					  File ..\share\grafx2\gfx2def.ini
 | 
				
			||||||
  File ..\share\grafx2\skins\font_Fun.png
 | 
					  SetOutPath "$INSTDIR\share\grafx2\skins"
 | 
				
			||||||
  File ..\share\grafx2\skins\font_Melon.png
 | 
					  File ..\share\grafx2\skins\*.png
 | 
				
			||||||
  File ..\share\grafx2\skins\font_Seen.png
 | 
					  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4"
 | 
				
			||||||
  File ..\share\grafx2\skins\skin_Aurora.png
 | 
					  File /r ..\share\grafx2\scripts\samples_2.4\*.*
 | 
				
			||||||
  File ..\share\grafx2\skins\skin_classic.png
 | 
					  SetOutPath "$INSTDIR\doc"
 | 
				
			||||||
  File ..\share\grafx2\skins\skin_DPaint.png
 | 
					  File ..\doc\*.txt
 | 
				
			||||||
  File ..\share\grafx2\skins\skin_modern.png
 | 
					  SetOutPath "$INSTDIR\share\grafx2\fonts"
 | 
				
			||||||
  File ..\share\grafx2\skins\skin_scenish.png
 | 
					  File ..\share\grafx2\fonts\8pxfont.png
 | 
				
			||||||
  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4\brush"
 | 
					  File ..\share\grafx2\fonts\Tuffy.ttf
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\brush\ApplyColor.lua
 | 
					  File ..\share\grafx2\fonts\PF_Arma_5__.png
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\brush\Fisheye.lua
 | 
					  File ..\share\grafx2\fonts\PF_Easta_7_.png
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\brush\GrayscaleAvg.lua
 | 
					  File ..\share\grafx2\fonts\PF_Easta_7__.png
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\brush\GrayscaleDesat.lua
 | 
					  File ..\share\grafx2\fonts\PF_Ronda_7__.png
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\brush\Halfsmooth.lua
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_5.png
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\brush\Waves.lua
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_5_.png
 | 
				
			||||||
  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4\demo"
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_5__.png
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\demo\3DPalette.lua
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_5___.png
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\demo\Ellipse.lua
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_7.png
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\demo\FlipPicture.lua
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_7_.png
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\demo\SierpinskyCarpet.lua
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_7__.png
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\demo\SierpinskyTriangle.lua
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_7___.png
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\demo\Spritesheet.lua
 | 
					  File ..\share\grafx2\fonts\PF_Westa_7_.png
 | 
				
			||||||
  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\brush"
 | 
					  File ..\share\grafx2\fonts\PF_Westa_7__.png
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\demo\brush\Amigaball.lua
 | 
					
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\demo\brush\ColorSphere.lua
 | 
					  ; Register in Add/Remove programs
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\demo\brush\FindAA.lua
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\demo\brush\Mandelbrot.lua
 | 
					                 "DisplayName" "GrafX2 (GNU GPL)"
 | 
				
			||||||
  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4\libs"
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\libs\dawnbringer_lib.lua
 | 
					                 "Publisher" "GrafX2 Project Team"
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\libs\memory.lua
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4\palette"
 | 
					                 "UninstallString" "$INSTDIR\uninstall.exe"
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\palette\Desaturate.lua
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\palette\ExpandColors.lua
 | 
					                 "InstalledProductName" "GrafX2"
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\palette\FillColorCube.lua
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\palette\InvertedRGB.lua
 | 
					                 "InstalledLocation" $INSTDIR
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\palette\Set3bit.lua
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\palette\Set6bit.lua
 | 
					                 "DisplayIcon" "$INSTDIR\gfx2.ico"
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\palette\SetC64Palette.lua
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\palette\ShiftHue.lua
 | 
					                 "URLInfoAbout" "http://grafx2.tk"
 | 
				
			||||||
  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4\picture"
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\picture\CellColourReducer.lua
 | 
					                 "DisplayVersion" "${VERSION}"
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\picture\DrawGridIsometric.lua
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\picture\DrawgridOrthogonal_Index.lua
 | 
					                 "NoModify" 1
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\picture\DrawGridOrthogonal_RGB.lua
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\picture\GlassGridFilter.lua
 | 
					                 "NoRepair" 1
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\picture\PaletteToPicture.lua
 | 
					
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\picture\Pic2isometric.lua
 | 
					  ;Store installation folder
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\picture\Rainbow-Dark2Bright.lua
 | 
					  WriteRegStr HKLM "Software\Grafx2" "" $INSTDIR
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\picture\RemapImage2RGB.lua
 | 
					  
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\picture\RemapImage2RGB_ed.lua
 | 
					  ;Create uninstaller
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\picture\RemapImageTo3bitPal.lua
 | 
					  WriteUninstaller "$INSTDIR\Uninstall.exe"
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\Tiler.lua
 | 
					
 | 
				
			||||||
  File ..\share\grafx2\scripts\samples_2.4\picture\XBitColourXpaceFromPalette.lua
 | 
					SectionEnd
 | 
				
			||||||
  SetOutPath "$INSTDIR\doc"
 | 
					
 | 
				
			||||||
  File ..\doc\COMPILING.txt
 | 
					Section "Desktop shortcut" SecShortcut
 | 
				
			||||||
  File ..\doc\PF_fonts.txt
 | 
					
 | 
				
			||||||
  File ..\doc\README-SDL.txt
 | 
					  SetOutPath "$INSTDIR"
 | 
				
			||||||
  File ..\doc\README-SDL_image.txt
 | 
					  CreateShortCut "$DESKTOP\Grafx2.lnk" "$INSTDIR\bin\grafx2.exe" "" "" "" SW_SHOWNORMAL
 | 
				
			||||||
  File ..\doc\README-SDL_ttf.txt
 | 
					
 | 
				
			||||||
  File ..\doc\README-lua.txt
 | 
					SectionEnd
 | 
				
			||||||
  File ..\doc\README-zlib1.txt
 | 
					
 | 
				
			||||||
  File ..\doc\README.txt
 | 
					
 | 
				
			||||||
  File ..\doc\gpl-2.0.txt
 | 
					;--------------------------------
 | 
				
			||||||
  SetOutPath "$INSTDIR\share\grafx2\fonts"
 | 
					;Descriptions
 | 
				
			||||||
  File ..\share\grafx2\fonts\8pxfont.png
 | 
					
 | 
				
			||||||
  File ..\share\grafx2\fonts\Tuffy.ttf
 | 
					  ;Language strings
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Arma_5__.png
 | 
					  LangString DESC_SecProgram  ${LANG_ENGLISH} "Grafx2 application and runtime data."
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Easta_7_.png
 | 
					  LangString DESC_SecShortcut ${LANG_ENGLISH} "Desktop shortcut."
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Easta_7__.png
 | 
					
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Ronda_7__.png
 | 
					  ;Assign language strings to sections
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Tempesta_5.png
 | 
					  !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Tempesta_5_.png
 | 
					    !insertmacro MUI_DESCRIPTION_TEXT ${SecProgram} $(DESC_SecProgram)
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Tempesta_5__.png
 | 
					    !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcut} $(DESC_SecShortcut)
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Tempesta_5___.png
 | 
					  !insertmacro MUI_FUNCTION_DESCRIPTION_END
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Tempesta_7.png
 | 
					
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Tempesta_7_.png
 | 
					;--------------------------------
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Tempesta_7__.png
 | 
					;Uninstaller Section
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Tempesta_7___.png
 | 
					
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Westa_7_.png
 | 
					Section "un.SecProgram"
 | 
				
			||||||
  File ..\share\grafx2\fonts\PF_Westa_7__.png
 | 
					
 | 
				
			||||||
 | 
					  ;ADD YOUR OWN FILES HERE...
 | 
				
			||||||
  ; Register in Add/Remove programs
 | 
					  Delete "$INSTDIR\gfx2.ico"
 | 
				
			||||||
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
					  Delete "$INSTDIR\bin\grafx2.exe"
 | 
				
			||||||
                 "DisplayName" "GrafX2 (GNU GPL)"
 | 
					;  Delete "$INSTDIR\src-2.4.wip2023.tgz"
 | 
				
			||||||
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
					  Delete "$INSTDIR\share\grafx2\gfx2.gif"
 | 
				
			||||||
                 "UninstallString" "$INSTDIR\uninstall.exe"
 | 
					  Delete "$INSTDIR\share\grafx2\gfx2def.ini"
 | 
				
			||||||
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
					  Delete "$INSTDIR\bin\SDL_image.dll"
 | 
				
			||||||
                 "InstalledProductName" "GrafX2"
 | 
					  Delete "$INSTDIR\bin\SDL.dll"
 | 
				
			||||||
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
					  Delete "$INSTDIR\bin\libfreetype-6.dll"
 | 
				
			||||||
                 "InstalledLocation" $INSTDIR
 | 
					  Delete "$INSTDIR\bin\SDL_ttf.dll"
 | 
				
			||||||
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
					  Delete "$INSTDIR\bin\zlib1.dll"
 | 
				
			||||||
                 "DisplayIcon" "$INSTDIR\gfx2.ico"
 | 
					  Delete "$INSTDIR\bin\libpng14-14.dll"
 | 
				
			||||||
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
					  Delete "$INSTDIR\bin\stdout.txt"
 | 
				
			||||||
                 "URLInfoAbout" "http://grafx2.org"
 | 
					  Delete "$INSTDIR\bin\stderr.txt"
 | 
				
			||||||
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
					  RMDir  "$INSTDIR\bin"
 | 
				
			||||||
                 "DisplayVersion" "2.4.wip2023"
 | 
					  RMDir /r "$INSTDIR\doc"
 | 
				
			||||||
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
					  RMDir /r "$INSTDIR\share\grafx2\fonts"
 | 
				
			||||||
                 "NoModify" 1
 | 
					  RMDir /r "$INSTDIR\share\grafx2\skins"
 | 
				
			||||||
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
					  RMDir /r "$INSTDIR\share\grafx2\scripts"
 | 
				
			||||||
                 "NoRepair" 1
 | 
					  RMDir  "$INSTDIR\share\grafx2\scripts"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share\grafx2"
 | 
				
			||||||
  ;Store installation folder
 | 
					  RMDir  "$INSTDIR\share"
 | 
				
			||||||
  WriteRegStr HKLM "Software\Grafx2" "" $INSTDIR
 | 
					  Delete "$INSTDIR\Uninstall.exe"
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  ;Create uninstaller
 | 
					  MessageBox MB_YESNO|MB_DEFBUTTON2|MB_ICONQUESTION "Do you wish to keep your configuration settings ?" IDYES keepconfig IDNO deleteconfig
 | 
				
			||||||
  WriteUninstaller "$INSTDIR\Uninstall.exe"
 | 
					  deleteconfig:
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\gfx2.cfg"
 | 
				
			||||||
SectionEnd
 | 
					  Delete "$INSTDIR\gfx2.ini"
 | 
				
			||||||
 | 
					  Delete "$APPDATA\Grafx2\gfx2.cfg"
 | 
				
			||||||
Section "Desktop shortcut" SecShortcut
 | 
					  Delete "$APPDATA\Grafx2\gfx2.ini"
 | 
				
			||||||
 | 
					  RMDir  "$APPDATA\Grafx2"
 | 
				
			||||||
  SetOutPath "$INSTDIR"
 | 
					  keepconfig:
 | 
				
			||||||
  CreateShortCut "$DESKTOP\Grafx2.lnk" "$INSTDIR\bin\grafx2.exe" "" "" "" SW_SHOWNORMAL
 | 
					  
 | 
				
			||||||
 | 
					  RMDir "$INSTDIR"
 | 
				
			||||||
SectionEnd
 | 
					
 | 
				
			||||||
 | 
					  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;--------------------------------
 | 
					  DeleteRegKey /ifempty HKLM "Software\Grafx2"
 | 
				
			||||||
;Descriptions
 | 
					
 | 
				
			||||||
 | 
					SectionEnd
 | 
				
			||||||
  ;Language strings
 | 
					
 | 
				
			||||||
  LangString DESC_SecProgram  ${LANG_ENGLISH} "Grafx2 application and runtime data."
 | 
					Section "un.SecShortcut"
 | 
				
			||||||
  LangString DESC_SecShortcut ${LANG_ENGLISH} "Desktop shortcut."
 | 
					  Delete "$DESKTOP\Grafx2.lnk"
 | 
				
			||||||
 | 
					SectionEnd
 | 
				
			||||||
  ;Assign language strings to sections
 | 
					  
 | 
				
			||||||
  !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
 | 
					 | 
				
			||||||
    !insertmacro MUI_DESCRIPTION_TEXT ${SecProgram} $(DESC_SecProgram)
 | 
					 | 
				
			||||||
    !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcut} $(DESC_SecShortcut)
 | 
					 | 
				
			||||||
  !insertmacro MUI_FUNCTION_DESCRIPTION_END
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
;--------------------------------
 | 
					 | 
				
			||||||
;Uninstaller Section
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Section "un.SecProgram"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ;ADD YOUR OWN FILES HERE...
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\bin\grafx2.exe"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\src-2.4.wip2023.tgz"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\gfx2.gif"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\gfx2def.ini"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\bin\SDL_image.dll"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\bin\SDL.dll"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\bin\libfreetype-6.dll"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\bin\SDL_ttf.dll"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\bin\zlib1.dll"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\bin\libpng14-14.dll"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\bin\stdout.txt"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\bin\stderr.txt"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\bin"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\doc\COMPILING.txt"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\doc\PF_fonts.txt"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\doc\README-SDL.txt"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\doc\README-SDL_image.txt"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\doc\README-SDL_ttf.txt"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\doc\README-lua.txt"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\doc\README-zlib1.txt"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\doc\README.txt"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\doc\gpl-2.0.txt"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\doc"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\8pxfont.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\Tuffy.ttf"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Arma_5__.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Easta_7_.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Easta_7__.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Ronda_7__.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_5.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_5_.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_5__.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_5___.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_7.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_7_.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_7__.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_7___.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Westa_7_.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\fonts\PF_Westa_7__.png"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\share\grafx2\fonts"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\skins\font_Classic.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\skins\font_Fun.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\skins\font_Fairlight.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\skins\font_Melon.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\skins\font_DPaint.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\skins\font_Seen.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\skins\skin_classic.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\skins\skin_Aurora.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\skins\skin_modern.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\skins\skin_DPaint.png"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\skins\skin_scenish.png"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\share\grafx2\skins"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\brush\ApplyColor.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\brush\Fisheye.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\brush\GrayscaleAvg.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\brush\GrayscaleDesat.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\brush\Halfsmooth.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\brush\Waves.lua"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4\brush"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\brush\Amigaball.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\brush\ColorSphere.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\brush\FindAA.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\brush\Mandelbrot.lua"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\brush"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\3DPalette.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\Ellipse.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\FlipPicture.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\SierpinskyCarpet.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\SierpinskyTriangle.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\Spritesheet.lua"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4\demo"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\libs\dawnbringer_lib.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\libs\memory.lua"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4\libs"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\Desaturate.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\ExpandColors.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\FillColorCube.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\InvertedRGB.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\Set3bit.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\Set6bit.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\SetC64Palette.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\ShiftHue.lua"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4\palette"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\CellColourReducer.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\DrawGridIsometric.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\DrawgridOrthogonal_Index.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\DrawGridOrthogonal_RGB.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\GlassGridFilter.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\PaletteToPicture.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\Pic2isometric.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\Rainbow-Dark2Bright.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\RemapImage2RGB.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\RemapImage2RGB_ed.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\RemapImageTo3bitPal.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\Tiler.lua"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\XBitColourXpaceFromPalette.lua"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4\picture"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\share\grafx2\scripts"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\share\grafx2"
 | 
					 | 
				
			||||||
  RMDir  "$INSTDIR\share"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\Uninstall.exe"
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  MessageBox MB_YESNO|MB_DEFBUTTON2|MB_ICONQUESTION "Do you wish to keep your configuration settings ?" IDYES keepconfig IDNO deleteconfig
 | 
					 | 
				
			||||||
  deleteconfig:
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\gfx2.cfg"
 | 
					 | 
				
			||||||
  Delete "$INSTDIR\gfx2.ini"
 | 
					 | 
				
			||||||
  Delete "$APPDATA\Grafx2\gfx2.cfg"
 | 
					 | 
				
			||||||
  Delete "$APPDATA\Grafx2\gfx2.ini"
 | 
					 | 
				
			||||||
  RMDir  "$APPDATA\Grafx2"
 | 
					 | 
				
			||||||
  keepconfig:
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  RMDir "$INSTDIR"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  DeleteRegKey /ifempty HKLM "Software\Grafx2"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
SectionEnd
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Section "un.SecShortcut"
 | 
					 | 
				
			||||||
  Delete "$DESKTOP\Grafx2.lnk"
 | 
					 | 
				
			||||||
SectionEnd
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										356
									
								
								install/WinInstaller_24.nsi
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										356
									
								
								install/WinInstaller_24.nsi
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,356 @@
 | 
				
			|||||||
 | 
					;NSIS Modern User Interface
 | 
				
			||||||
 | 
					;Based on the Example Script written by Joost Verburg
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;--------------------------------
 | 
				
			||||||
 | 
					;Include Modern UI
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  !include "MUI2.nsh"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;--------------------------------
 | 
				
			||||||
 | 
					;General
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ;Name and file
 | 
				
			||||||
 | 
					  Name "Grafx2"
 | 
				
			||||||
 | 
					  OutFile "grafx2-2.4.2023.win32.exe"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ;Default installation folder
 | 
				
			||||||
 | 
					  InstallDir "$PROGRAMFILES\Grafx2"
 | 
				
			||||||
 | 
					  !define MULTIUSER_INSTALLMODE_INSTDIR "Grafx2"
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  ;Get installation folder from registry if available
 | 
				
			||||||
 | 
					  InstallDirRegKey HKCU "Software\Grafx2" ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ;Request application privileges for Windows Vista
 | 
				
			||||||
 | 
					  RequestExecutionLevel user
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;--------------------------------
 | 
				
			||||||
 | 
					;Interface Settings
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  !define MUI_ABORTWARNING
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;--------------------------------
 | 
				
			||||||
 | 
					;Pages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  !define  MUI_WELCOMEFINISHPAGE_BITMAP vector.bmp
 | 
				
			||||||
 | 
					  !define MUI_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH
 | 
				
			||||||
 | 
					  !insertmacro MUI_PAGE_WELCOME
 | 
				
			||||||
 | 
					  !define MULTIUSER_EXECUTIONLEVEL Highest
 | 
				
			||||||
 | 
					  !define MULTIUSER_MUI
 | 
				
			||||||
 | 
					  !define MULTIUSER_INSTALLMODE_COMMANDLINE
 | 
				
			||||||
 | 
					  ;!define MUI_HEADERIMAGE_BITMAP logo_scenish.bmp
 | 
				
			||||||
 | 
					  ;!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
 | 
				
			||||||
 | 
					  !insertmacro MUI_PAGE_LICENSE "..\doc\gpl-2.0.txt"
 | 
				
			||||||
 | 
					  !include MultiUser.nsh
 | 
				
			||||||
 | 
					  !insertmacro MULTIUSER_PAGE_INSTALLMODE
 | 
				
			||||||
 | 
					  !insertmacro MUI_PAGE_COMPONENTS
 | 
				
			||||||
 | 
					  !insertmacro MUI_PAGE_DIRECTORY
 | 
				
			||||||
 | 
					  !insertmacro MUI_PAGE_INSTFILES
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  !insertmacro MUI_UNPAGE_CONFIRM
 | 
				
			||||||
 | 
					  !insertmacro MUI_UNPAGE_INSTFILES
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					;--------------------------------
 | 
				
			||||||
 | 
					;Languages
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					  !insertmacro MUI_LANGUAGE "English"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;--------------------------------
 | 
				
			||||||
 | 
					;Functions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Function .onInit
 | 
				
			||||||
 | 
					  !insertmacro MULTIUSER_INIT
 | 
				
			||||||
 | 
					FunctionEnd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Function un.onInit
 | 
				
			||||||
 | 
					  !insertmacro MULTIUSER_UNINIT
 | 
				
			||||||
 | 
					FunctionEnd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Function .onInstSuccess
 | 
				
			||||||
 | 
					  MessageBox MB_YESNO "Run GrafX2 now ?" IDNO norun
 | 
				
			||||||
 | 
					    Exec $INSTDIR\bin\grafx2.exe
 | 
				
			||||||
 | 
					  norun:
 | 
				
			||||||
 | 
					FunctionEnd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;--------------------------------
 | 
				
			||||||
 | 
					;Installer Sections
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Section "Grafx2" SecProgram
 | 
				
			||||||
 | 
					  SectionIn RO
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR"
 | 
				
			||||||
 | 
					  ;ADD YOUR OWN FILES HERE...
 | 
				
			||||||
 | 
					  File ..\src-2.4wip2023.tgz
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR\bin"
 | 
				
			||||||
 | 
					  File ..\bin\grafx2.exe
 | 
				
			||||||
 | 
					  File ..\bin\SDL_image.dll
 | 
				
			||||||
 | 
					  File ..\bin\SDL.dll
 | 
				
			||||||
 | 
					  File ..\bin\libfreetype-6.dll
 | 
				
			||||||
 | 
					  File ..\bin\SDL_ttf.dll
 | 
				
			||||||
 | 
					  File ..\bin\zlib1.dll
 | 
				
			||||||
 | 
					  File ..\bin\libpng14-14.dll
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR\share\grafx2"
 | 
				
			||||||
 | 
					  File ..\share\grafx2\gfx2.gif
 | 
				
			||||||
 | 
					  File ..\share\grafx2\gfx2def.ini
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR\share\grafx2\skins"
 | 
				
			||||||
 | 
					  File ..\share\grafx2\skins\font_Classic.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\skins\font_DPaint.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\skins\font_Fairlight.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\skins\font_Fun.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\skins\font_Melon.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\skins\font_Seen.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\skins\skin_Aurora.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\skins\skin_classic.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\skins\skin_DPaint.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\skins\skin_modern.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\skins\skin_scenish.png
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4\brush"
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\brush\ApplyColor.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\brush\Fisheye.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\brush\GrayscaleAvg.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\brush\GrayscaleDesat.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\brush\Halfsmooth.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\brush\Waves.lua
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4\demo"
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\demo\3DPalette.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\demo\Ellipse.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\demo\FlipPicture.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\demo\SierpinskyCarpet.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\demo\SierpinskyTriangle.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\demo\Spritesheet.lua
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\brush"
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\demo\brush\Amigaball.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\demo\brush\ColorSphere.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\demo\brush\FindAA.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\demo\brush\Mandelbrot.lua
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4\libs"
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\libs\dawnbringer_lib.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\libs\memory.lua
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4\palette"
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\palette\Desaturate.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\palette\ExpandColors.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\palette\FillColorCube.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\palette\InvertedRGB.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\palette\Set3bit.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\palette\Set6bit.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\palette\SetC64Palette.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\palette\ShiftHue.lua
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR\share\grafx2\scripts\samples_2.4\picture"
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\picture\CellColourReducer.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\picture\DrawGridIsometric.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\picture\DrawgridOrthogonal_Index.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\picture\DrawGridOrthogonal_RGB.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\picture\GlassGridFilter.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\picture\PaletteToPicture.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\picture\Pic2isometric.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\picture\Rainbow-Dark2Bright.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\picture\RemapImage2RGB.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\picture\RemapImage2RGB_ed.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\picture\RemapImageTo3bitPal.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\Tiler.lua
 | 
				
			||||||
 | 
					  File ..\share\grafx2\scripts\samples_2.4\picture\XBitColourXpaceFromPalette.lua
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR\doc"
 | 
				
			||||||
 | 
					  File ..\doc\COMPILING.txt
 | 
				
			||||||
 | 
					  File ..\doc\PF_fonts.txt
 | 
				
			||||||
 | 
					  File ..\doc\README-SDL.txt
 | 
				
			||||||
 | 
					  File ..\doc\README-SDL_image.txt
 | 
				
			||||||
 | 
					  File ..\doc\README-SDL_ttf.txt
 | 
				
			||||||
 | 
					  File ..\doc\README-lua.txt
 | 
				
			||||||
 | 
					  File ..\doc\README-zlib1.txt
 | 
				
			||||||
 | 
					  File ..\doc\README.txt
 | 
				
			||||||
 | 
					  File ..\doc\gpl-2.0.txt
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR\share\grafx2\fonts"
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\8pxfont.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\Tuffy.ttf
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Arma_5__.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Easta_7_.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Easta_7__.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Ronda_7__.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_5.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_5_.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_5__.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_5___.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_7.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_7_.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_7__.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Tempesta_7___.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Westa_7_.png
 | 
				
			||||||
 | 
					  File ..\share\grafx2\fonts\PF_Westa_7__.png
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ; Register in Add/Remove programs
 | 
				
			||||||
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
 | 
					                 "DisplayName" "GrafX2 (GNU GPL)"
 | 
				
			||||||
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
 | 
					                 "UninstallString" "$INSTDIR\uninstall.exe"
 | 
				
			||||||
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
 | 
					                 "InstalledProductName" "GrafX2"
 | 
				
			||||||
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
 | 
					                 "InstalledLocation" $INSTDIR
 | 
				
			||||||
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
 | 
					                 "DisplayIcon" "$INSTDIR\gfx2.ico"
 | 
				
			||||||
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
 | 
					                 "URLInfoAbout" "http://grafx2.org"
 | 
				
			||||||
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
 | 
					                 "DisplayVersion" "2.4.wip2023"
 | 
				
			||||||
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
 | 
					                 "NoModify" 1
 | 
				
			||||||
 | 
					  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL" \
 | 
				
			||||||
 | 
					                 "NoRepair" 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ;Store installation folder
 | 
				
			||||||
 | 
					  WriteRegStr HKLM "Software\Grafx2" "" $INSTDIR
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  ;Create uninstaller
 | 
				
			||||||
 | 
					  WriteUninstaller "$INSTDIR\Uninstall.exe"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SectionEnd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Section "Desktop shortcut" SecShortcut
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  SetOutPath "$INSTDIR"
 | 
				
			||||||
 | 
					  CreateShortCut "$DESKTOP\Grafx2.lnk" "$INSTDIR\bin\grafx2.exe" "" "" "" SW_SHOWNORMAL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SectionEnd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;--------------------------------
 | 
				
			||||||
 | 
					;Descriptions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ;Language strings
 | 
				
			||||||
 | 
					  LangString DESC_SecProgram  ${LANG_ENGLISH} "Grafx2 application and runtime data."
 | 
				
			||||||
 | 
					  LangString DESC_SecShortcut ${LANG_ENGLISH} "Desktop shortcut."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ;Assign language strings to sections
 | 
				
			||||||
 | 
					  !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
 | 
				
			||||||
 | 
					    !insertmacro MUI_DESCRIPTION_TEXT ${SecProgram} $(DESC_SecProgram)
 | 
				
			||||||
 | 
					    !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcut} $(DESC_SecShortcut)
 | 
				
			||||||
 | 
					  !insertmacro MUI_FUNCTION_DESCRIPTION_END
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;--------------------------------
 | 
				
			||||||
 | 
					;Uninstaller Section
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Section "un.SecProgram"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ;ADD YOUR OWN FILES HERE...
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\bin\grafx2.exe"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\src-2.4.wip2023.tgz"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\gfx2.gif"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\gfx2def.ini"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\bin\SDL_image.dll"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\bin\SDL.dll"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\bin\libfreetype-6.dll"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\bin\SDL_ttf.dll"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\bin\zlib1.dll"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\bin\libpng14-14.dll"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\bin\stdout.txt"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\bin\stderr.txt"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\bin"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\doc\COMPILING.txt"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\doc\PF_fonts.txt"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\doc\README-SDL.txt"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\doc\README-SDL_image.txt"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\doc\README-SDL_ttf.txt"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\doc\README-lua.txt"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\doc\README-zlib1.txt"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\doc\README.txt"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\doc\gpl-2.0.txt"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\doc"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\8pxfont.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\Tuffy.ttf"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Arma_5__.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Easta_7_.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Easta_7__.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Ronda_7__.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_5.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_5_.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_5__.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_5___.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_7.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_7_.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_7__.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Tempesta_7___.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Westa_7_.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\fonts\PF_Westa_7__.png"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share\grafx2\fonts"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\skins\font_Classic.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\skins\font_Fun.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\skins\font_Fairlight.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\skins\font_Melon.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\skins\font_DPaint.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\skins\font_Seen.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\skins\skin_classic.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\skins\skin_Aurora.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\skins\skin_modern.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\skins\skin_DPaint.png"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\skins\skin_scenish.png"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share\grafx2\skins"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\brush\ApplyColor.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\brush\Fisheye.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\brush\GrayscaleAvg.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\brush\GrayscaleDesat.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\brush\Halfsmooth.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\brush\Waves.lua"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4\brush"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\brush\Amigaball.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\brush\ColorSphere.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\brush\FindAA.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\brush\Mandelbrot.lua"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\brush"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\3DPalette.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\Ellipse.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\FlipPicture.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\SierpinskyCarpet.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\SierpinskyTriangle.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\demo\Spritesheet.lua"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4\demo"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\libs\dawnbringer_lib.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\libs\memory.lua"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4\libs"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\Desaturate.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\ExpandColors.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\FillColorCube.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\InvertedRGB.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\Set3bit.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\Set6bit.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\SetC64Palette.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\palette\ShiftHue.lua"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4\palette"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\CellColourReducer.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\DrawGridIsometric.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\DrawgridOrthogonal_Index.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\DrawGridOrthogonal_RGB.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\GlassGridFilter.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\PaletteToPicture.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\Pic2isometric.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\Rainbow-Dark2Bright.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\RemapImage2RGB.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\RemapImage2RGB_ed.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\RemapImageTo3bitPal.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\Tiler.lua"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\share\grafx2\scripts\samples_2.4\picture\XBitColourXpaceFromPalette.lua"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4\picture"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share\grafx2\scripts\samples_2.4"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share\grafx2\scripts"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share\grafx2"
 | 
				
			||||||
 | 
					  RMDir  "$INSTDIR\share"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\Uninstall.exe"
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  MessageBox MB_YESNO|MB_DEFBUTTON2|MB_ICONQUESTION "Do you wish to keep your configuration settings ?" IDYES keepconfig IDNO deleteconfig
 | 
				
			||||||
 | 
					  deleteconfig:
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\gfx2.cfg"
 | 
				
			||||||
 | 
					  Delete "$INSTDIR\gfx2.ini"
 | 
				
			||||||
 | 
					  Delete "$APPDATA\Grafx2\gfx2.cfg"
 | 
				
			||||||
 | 
					  Delete "$APPDATA\Grafx2\gfx2.ini"
 | 
				
			||||||
 | 
					  RMDir  "$APPDATA\Grafx2"
 | 
				
			||||||
 | 
					  keepconfig:
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  RMDir "$INSTDIR"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Grafx2-SDL"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  DeleteRegKey /ifempty HKLM "Software\Grafx2"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SectionEnd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Section "un.SecShortcut"
 | 
				
			||||||
 | 
					  Delete "$DESKTOP\Grafx2.lnk"
 | 
				
			||||||
 | 
					SectionEnd
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user