tools/windows/mgba-setup-win32.iss (view raw)
1;For automation purposes it is highly recommended to copy the files from
2;\tools\windows\ to the directory that contains the win32 distribution files!
3
4;IsRelease = yes will create a setup file named after the current version of mGBA.
5;IsRelease = no will create a setup fille named mGBA-setup-latest-win32.exe.
6#define IsRelease = yes
7
8#define VerMajor
9#define VerMinor
10#define VerRev
11#define VerBuild
12#define FullVersion=ParseVersion('mGBA.exe', VerMajor, VerMinor, VerRev, VerBuild)
13#define AppVer = Str(VerMajor) + "." + Str(VerMinor) + "." + Str(VerRev)
14
15[Setup]
16SourceDir=.\
17SetupIconFile=mgba-setupiconfile.ico
18WizardImageFile=mgba-wizardimagefile.bmp
19
20AppName=mGBA
21AppVersion={#AppVer}
22AppPublisher=Jeffrey Pfau
23AppPublisherURL=https://mgba.io
24AppSupportURL=https://mgba.io
25AppUpdatesURL=https://mgba.io
26AppReadmeFile=README.html
27OutputDir=.\
28DefaultDirName={pf}\mGBA
29DefaultGroupName=mGBA
30AllowNoIcons=yes
31DirExistsWarning=no
32ChangesAssociations=True
33AppendDefaultDirName=False
34UninstallDisplayIcon={app}\mGBA.exe
35MinVersion=0,6.0
36AlwaysShowDirOnReadyPage=True
37UsePreviousSetupType=True
38UsePreviousTasks=True
39AlwaysShowGroupOnReadyPage=True
40LicenseFile=LICENSE.txt
41#if IsRelease==yes;
42 OutputBaseFilename=mGBA-{#AppVer}-win32
43#elif IsRelease==no;
44 OutputBaseFilename=mGBA-setup-latest-win32
45 #endif
46UsePreviousLanguage=False
47DisableWelcomePage=False
48VersionInfoDescription=mGBA is an open-source Game Boy Advance emulator
49VersionInfoCopyright=� 2013�2017 Jeffrey Pfau
50VersionInfoProductName=mGBA
51VersionInfoVersion={#AppVer}
52Compression=lzma2/ultra64
53SolidCompression=True
54VersionInfoTextVersion={#AppVer}
55VersionInfoProductVersion={#AppVer}
56VersionInfoProductTextVersion={#AppVer}
57
58[Languages]
59Name: "english"; MessagesFile: "compiler:Default.isl"
60Name: "german"; MessagesFile: "compiler:Languages\German.isl"
61Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
62Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
63
64[Tasks]
65Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
66Name: "gbfileassoc"; Description: "{cm:AssocFileExtension,mGBA,Game Boy}"; GroupDescription: "{cm:FileAssoc}"
67Name: "gbcfileassoc"; Description: "{cm:AssocFileExtension,mGBA,Game Boy Color}"; GroupDescription: "{cm:FileAssoc}"
68Name: "gbafileassoc"; Description: "{cm:AssocFileExtension,mGBA,Game Boy Advance}"; GroupDescription: "{cm:FileAssoc}"
69
70[Files]
71Source: "mGBA.exe"; DestDir: "{app}"; Flags: ignoreversion
72Source: "CHANGES.txt"; DestDir: "{app}\"; Flags: ignoreversion
73Source: "LICENSE.txt"; DestDir: "{app}\"; Flags: ignoreversion
74Source: "mGBA.exe"; DestDir: "{app}\"; Flags: ignoreversion
75Source: "nointro.dat"; DestDir: "{app}\"; Flags: ignoreversion
76Source: "README.html"; DestDir: "{app}\"; Flags: ignoreversion
77Source: "shaders\agb001.shader\agb001.fs"; DestDir: "{app}\shaders\agb001.shader\"; Flags: ignoreversion
78Source: "shaders\agb001.shader\manifest.ini"; DestDir: "{app}\shaders\agb001.shader\"; Flags: ignoreversion
79Source: "shaders\ags001.shader\ags001-light.fs"; DestDir: "{app}\shaders\ags001.shader\"; Flags: ignoreversion
80Source: "shaders\ags001.shader\ags001.fs"; DestDir: "{app}\shaders\ags001.shader\"; Flags: ignoreversion
81Source: "shaders\ags001.shader\manifest.ini"; DestDir: "{app}\shaders\ags001.shader\"; Flags: ignoreversion
82Source: "shaders\fish.shader\fish.fs"; DestDir: "{app}\shaders\fish.shader\"; Flags: ignoreversion
83Source: "shaders\fish.shader\manifest.ini"; DestDir: "{app}\shaders\fish.shader\"; Flags: ignoreversion
84Source: "shaders\gba-color.shader\gba-color.fs"; DestDir: "{app}\shaders\gba-color.shader\"; Flags: ignoreversion
85Source: "shaders\gba-color.shader\manifest.ini"; DestDir: "{app}\shaders\gba-color.shader\"; Flags: ignoreversion
86Source: "shaders\lcd.shader\lcd.fs"; DestDir: "{app}\shaders\lcd.shader\"; Flags: ignoreversion
87Source: "shaders\lcd.shader\manifest.ini"; DestDir: "{app}\shaders\lcd.shader\"; Flags: ignoreversion
88Source: "shaders\motion_blur.shader\manifest.ini"; DestDir: "{app}\shaders\motion_blur.shader\"; Flags: ignoreversion
89Source: "shaders\motion_blur.shader\motion_blur.fs"; DestDir: "{app}\shaders\motion_blur.shader\"; Flags: ignoreversion
90Source: "shaders\pixelate.shader\manifest.ini"; DestDir: "{app}\shaders\pixelate.shader\"; Flags: ignoreversion
91Source: "shaders\scanlines.shader\manifest.ini"; DestDir: "{app}\shaders\scanlines.shader\"; Flags: ignoreversion
92Source: "shaders\scanlines.shader\scanlines.fs"; DestDir: "{app}\shaders\scanlines.shader\"; Flags: ignoreversion
93Source: "shaders\soften.shader\manifest.ini"; DestDir: "{app}\shaders\soften.shader\"; Flags: ignoreversion
94Source: "shaders\soften.shader\soften.fs"; DestDir: "{app}\shaders\soften.shader\"; Flags: ignoreversion
95Source: "shaders\vba_pixelate.shader\manifest.ini"; DestDir: "{app}\shaders\vba_pixelate.shader\"; Flags: ignoreversion
96Source: "shaders\vba_pixelate.shader\vba_pixelate.fs"; DestDir: "{app}\shaders\vba_pixelate.shader\"; Flags: ignoreversion
97Source: "shaders\vignette.shader\manifest.ini"; DestDir: "{app}\shaders\vignette.shader\"; Flags: ignoreversion
98Source: "shaders\vignette.shader\vignette.fs"; DestDir: "{app}\shaders\vignette.shader\"; Flags: ignoreversion
99Source: "shaders\wiiu.shader\manifest.ini"; DestDir: "{app}\shaders\wiiu.shader\"; Flags: ignoreversion
100Source: "shaders\wiiu.shader\wiiu.fs"; DestDir: "{app}\shaders\wiiu.shader\"; Flags: ignoreversion
101Source: "shaders\xbr-lv2.shader\manifest.ini"; DestDir: "{app}\shaders\xbr-lv2.shader\"; Flags: ignoreversion
102Source: "shaders\xbr-lv2.shader\xbr.fs"; DestDir: "{app}\shaders\xbr-lv2.shader\"; Flags: ignoreversion
103Source: "shaders\xbr-lv2.shader\xbr.vs"; DestDir: "{app}\shaders\xbr-lv2.shader\"; Flags: ignoreversion
104Source: "shaders\xbr-lv3.shader\manifest.ini"; DestDir: "{app}\shaders\xbr-lv3.shader\"; Flags: ignoreversion
105Source: "shaders\xbr-lv3.shader\xbr.fs"; DestDir: "{app}\shaders\xbr-lv3.shader\"; Flags: ignoreversion
106Source: "shaders\xbr-lv3.shader\xbr.vs"; DestDir: "{app}\shaders\xbr-lv3.shader\"; Flags: ignoreversion
107Source: "third-party\LICENSE.blip-buf"; DestDir: "{app}\third-party\"; Flags: ignoreversion
108Source: "third-party\LICENSE.ffmpeg"; DestDir: "{app}\third-party\"; Flags: ignoreversion
109Source: "third-party\LICENSE.imagemagick"; DestDir: "{app}\third-party\"; Flags: ignoreversion
110Source: "third-party\LICENSE.inih"; DestDir: "{app}\third-party\"; Flags: ignoreversion
111Source: "third-party\LICENSE.lame"; DestDir: "{app}\third-party\"; Flags: ignoreversion
112Source: "third-party\LICENSE.libvpx"; DestDir: "{app}\third-party\"; Flags: ignoreversion
113Source: "third-party\LICENSE.opus"; DestDir: "{app}\third-party\"; Flags: ignoreversion
114Source: "third-party\LICENSE.qt5"; DestDir: "{app}\third-party\"; Flags: ignoreversion
115Source: "third-party\LICENSE.sdl2"; DestDir: "{app}\third-party\"; Flags: ignoreversion
116Source: "third-party\LICENSE.x264"; DestDir: "{app}\third-party\"; Flags: ignoreversion
117Source: "third-party\LICENSE.xvid"; DestDir: "{app}\third-party\"; Flags: ignoreversion
118
119[Icons]
120Name: "{commonstartmenu}\mGBA"; Filename: "{app}\mGBA.exe"
121Name: "{commondesktop}\mGBA"; Filename: "{app}\mGBA.exe"; Tasks: desktopicon
122
123[Run]
124Filename: "{app}\mGBA.exe"; Description: "{cm:LaunchProgram,mGBA}"; Flags: nowait postinstall skipifsilent
125Filename: "{app}\README.html"; Description: "View README"; Flags: nowait postinstall skipifsilent unchecked; Languages: english
126Filename: "{app}\README.html"; Description: "View README"; Flags: nowait postinstall skipifsilent unchecked; Languages: italian
127Filename: "{app}\README.html"; Description: "View README"; Flags: nowait postinstall skipifsilent unchecked; Languages: spanish
128Filename: "{app}\README.html"; Description: "README anzeigen"; Flags: nowait postinstall skipifsilent unchecked; Languages: german
129Filename: "{app}\CHANGES.txt"; Description: "View Changelog"; Flags: nowait postinstall skipifsilent unchecked; Languages: english
130Filename: "{app}\CHANGES.txt"; Description: "View Changelog"; Flags: nowait postinstall skipifsilent unchecked; Languages: italian
131Filename: "{app}\CHANGES.txt"; Description: "View Changelog"; Flags: nowait postinstall skipifsilent unchecked; Languages: spanish
132Filename: "{app}\CHANGES.txt"; Description: "Changelog anzeigen"; Flags: nowait postinstall skipifsilent unchecked; Languages: german
133
134[Dirs]
135Name: "{app}\shaders\"
136Name: "{app}\shaders\agb001.shader\"
137Name: "{app}\shaders\ags001.shader\"
138Name: "{app}\shaders\fish.shader\"
139Name: "{app}\shaders\gba-color.shader\"
140Name: "{app}\shaders\lcd.shader\"
141Name: "{app}\shaders\motion_blur.shader\"
142Name: "{app}\shaders\pixelate.shader\"
143Name: "{app}\shaders\scanlines.shader\"
144Name: "{app}\shaders\soften.shader\"
145Name: "{app}\shaders\vba_pixelate.shader\"
146Name: "{app}\shaders\vignette.shader\"
147Name: "{app}\shaders\wiiu.shader\"
148Name: "{app}\shaders\xbr-lv2.shader\"
149Name: "{app}\shaders\xbr-lv3.shader\"
150Name: "{app}\third-party\"
151
152[CustomMessages]
153english.FileAssoc=Register file associations
154italian.FileAssoc=Register file associations
155spanish.FileAssoc=Register file associations
156german.FileAssoc=Dateierweiterungen registrieren
157
158[INI]
159Filename: "{userappdata}\mGBA\qt.ini"; Section: "General"; Key: "language"; String: "en"; Languages: english
160Filename: "{userappdata}\mGBA\qt.ini"; Section: "General"; Key: "language"; String: "de"; Languages: german
161Filename: "{userappdata}\mGBA\qt.ini"; Section: "General"; Key: "language"; String: "es"; Languages: spanish
162Filename: "{userappdata}\mGBA\qt.ini"; Section: "General"; Key: "language"; String: "it"; Languages: italian
163
164[Registry]
165Root: HKCR; Subkey: ".gb"; ValueType: string; ValueName: ""; ValueData: "Game Boy ROM"; Flags: uninsdeletevalue; Tasks: gbfileassoc
166Root: HKCR; Subkey: ".gb\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\mGBA.exe,0"; Tasks: gbfileassoc
167Root: HKCR; Subkey: ".gb\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\mGBA.exe"" ""%1"""; Tasks: gbfileassoc
168Root: HKCR; Subkey: ".gbc"; ValueType: string; ValueName: ""; ValueData: "Game Boy Color ROM"; Flags: uninsdeletevalue; Tasks: gbcfileassoc
169Root: HKCR; Subkey: ".gbc\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\mGBA.exe,0"; Tasks: gbcfileassoc
170Root: HKCR; Subkey: ".gbc\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\mGBA.exe"" ""%1"""; Tasks: gbcfileassoc
171Root: HKCR; Subkey: ".gba"; ValueType: string; ValueName: ""; ValueData: "Game Boy Advance ROM"; Flags: uninsdeletevalue; Tasks: gbafileassoc
172Root: HKCR; Subkey: ".gba\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\mGBA.exe,0"; Tasks: gbafileassoc
173Root: HKCR; Subkey: ".gba\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\mGBA.exe"" ""%1"""; Tasks: gbafileassoc