; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[Setup]
AppName=Njam
AppVerName=Njam 1.25
AppPublisher=Milan Babuskov
AppPublisherURL=http://njam.sourceforge.net
AppSupportURL=http://njam.sourceforge.net
AppUpdatesURL=http://njam.sourceforge.net
DefaultDirName={pf}\Njam
DefaultGroupName=Njam
AlwaysCreateUninstallIcon=yes
LicenseFile=C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\COPYING
InfoBeforeFile=C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\PREINSTALL
InfoAfterFile=C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\README
; uncomment the following line if you want your installation to run on NT 3.51 too.
; MinVersion=4,3.51

[Tasks]
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"; MinVersion: 4,4

[Files]
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\njam.exe"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\CHANGES"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\COPYING"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\INSTALL"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\jpeg.dll"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\libpng1.dll"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\README"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\SDL.dll"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\SDL_image.dll"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\SDL_mixer.dll"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\SDL_net.dll"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\TODO"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\zlib.dll"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\data\*.*"; DestDir: "{app}\data\"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\levels\*.*"; DestDir: "{app}\levels\"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\html\*.*"; DestDir: "{app}\html\"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\skins\*.*"; DestDir: "{app}\skins\"; CopyMode: alwaysoverwrite
Source: "C:\cygwin\home\home\sdl\devel-njam\releases\njam-1.25-win32\contrib\*.*"; DestDir: "{app}\contrib\"; CopyMode: alwaysoverwrite

[INI]
Filename: "{app}\njam.url"; Section: "InternetShortcut"; Key: "URL"; String: "http://njam.sourceforge.net"

[Icons]
Name: "{group}\Njam (fullscreen)"; Filename: "{app}\njam.exe"; WorkingDir: "{app}"
Name: "{group}\Njam (in 800x600 window)"; Filename: "{app}\njam.exe"; WorkingDir: "{app}"; Parameters: "-w"
Name: "{group}\Njam (using hardware acceleration)"; Filename: "{app}\njam.exe"; WorkingDir: "{app}"; Parameters: "-h"
Name: "{group}\Njam documentation"; Filename: "{app}\html\doc.html"
Name: "{group}\Njam editor help"; Filename: "{app}\html\doc-editor.html"
Name: "{group}\Njam on the Web"; Filename: "{app}\njam.url"
Name: "{userdesktop}\Njam"; Filename: "{app}\njam.exe"; MinVersion: 4,4; Tasks: desktopicon; WorkingDir: "{app}"

[Run]
Filename: "{app}\njam.exe"; Description: "Launch Njam"; Flags: nowait postinstall skipifsilent

[UninstallDelete]
Type: files; Name: "{app}\njam.url"
Type: files; Name: "{app}\njam.conf"
Type: files; Name: "{app}\log.txt"
Type: files; Name: "{app}\stdout.txt"
Type: files; Name: "{app}\stderr.txt"
Type: files; Name: "{app}\hiscore.dat"

