Skip to content

Commit d53a820

Browse files
committed
Add InnoSetup script to make a basic installer.
Adds a redist submodule where the installer can get the VC redists.
1 parent 6c45549 commit d53a820

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313
[submodule "dx9sdk"]
1414
path = dx9sdk
1515
url = https://github.com/hrydgard/minidx9.git
16+
[submodule "redist"]
17+
path = redist
18+
url = https://github.com/hrydgard/ppsspp-redist.git

notinstalled.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This gets renamed to "installed.txt" in the installer.
2+
Tells PPSSPP to consider itself installed and to not write data files into its own directory.

ppsspp.iss

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[Setup]
2+
AppName={cm:AppName}
3+
AppVersion=0.9.5
4+
DefaultDirName={pf}\PPSSPP
5+
; Since no icons will be created in "{group}", we don't need the wizard
6+
; to ask for a Start Menu folder name:
7+
DisableProgramGroupPage=yes
8+
UninstallDisplayIcon={app}\PPSSPPWindows.exe
9+
OutputDir=.
10+
UsePreviousLanguage=no
11+
12+
[CustomMessages]
13+
AppName=PPSSPP
14+
LaunchProgram=Start PPSSPP after finishing installation
15+
16+
[Files]
17+
Source: "PPSSPPWindows.exe"; DestDir: "{app}"
18+
Source: "README.md"; DestName: "README.txt"; DestDir: "{app}"; Flags: isreadme
19+
Source: "notinstalled.txt"; DestName: "installed.txt"; DestDir: "{app}";
20+
Source: "assets\ppge_atlas.zim"; DestDir: "{app}\assets"
21+
Source: "assets\ui_atlas.zim"; DestDir: "{app}\assets"
22+
Source: "lang\*.ini"; DestDir: "{app}\lang"
23+
Source: "flash0\font\*.*"; DestDir: "{app}\flash0\font"
24+
Source: "redist/vcredist_x86.exe"; DestDir: {tmp}
25+
26+
[Run]
27+
Filename: {tmp}\vcredist_x86.exe; Parameters: "/passive /Q:a /c:""msiexec /qb /i vcredist.msi"" "; StatusMsg: Installing 2010 RunTime...
28+
; Hm, I wonder if we need to manually delete vcredist_x86.exe as well.
29+
Filename: {app}\PPSSPPWindows.exe; Description: {cm:LaunchProgram,{cm:AppName}}; Flags: nowait postinstall skipifsilent
30+
31+
[Icons]
32+
Name: "{commonprograms}\PPSSPP"; Filename: "{app}\PPSSPPWindows.exe"
33+
34+
[Code]
35+
begin
36+
37+
if (not isUninstaller()) then begin
38+
SaveStringToFile(ExpandFilename('installed.txt'), 'Installed' + #13#10, False);
39+
end
40+
41+
end.

redist

Submodule redist added at 9d7d3ec

0 commit comments

Comments
 (0)