forked from worldforge/cyphesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cyphesis.iss.in
85 lines (77 loc) · 3.55 KB
/
cyphesis.iss.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
; -- cyphesis.iss --
; Create an installer for cyphesis
[Setup]
AppName=Cyphesis
AppVersion=@VERSION@
AppPublisher=WorldForge
AppPublisherURL=http://www.worldforge.org/
DefaultDirName={pf}\Cyphesis
DefaultGroupName=WorldForge
OutputBaseFilename=cyphesis-setup
UninstallDisplayIcon={app}\cyphesis.exe
; OutputDir=userdocs:Inno Setup Examples Output
[Dirs]
Name: "{app}\var"
Name: "{app}\var\tmp"
Name: "{app}\etc"
Name: "{app}\etc\cyphesis"
Name: "{app}\etc\cyphesis\mason.d"
Name: "{app}\share"
Name: "{app}\share\cyphesis"
Name: "{app}\share\cyphesis\rulesets"
Name: "{app}\share\cyphesis\rulesets\basic"
Name: "{app}\share\cyphesis\rulesets\basic\mind"
Name: "{app}\share\cyphesis\rulesets\mason"
Name: "{app}\share\cyphesis\rulesets\mason\world"
Name: "{app}\share\cyphesis\scripts"
Name: "{app}\share\cyphesis\scripts\cyphesis"
[Files]
Source: "server/cyphesis.exe"; DestDir: "{app}"
Source: "client/cyclient.exe"; DestDir: "{app}"
Source: "tools/cyaddrules.exe"; DestDir: "{app}"
Source: "tools/cycmd.exe"; DestDir: "{app}"
Source: "tools/cyconfig.exe"; DestDir: "{app}"
Source: "tools/cyconvertrules.exe"; DestDir: "{app}"
Source: "tools/cydb.exe"; DestDir: "{app}"
Source: "tools/cydumprules.exe"; DestDir: "{app}"
Source: "tools/cyloadrules.exe"; DestDir: "{app}"
Source: "tools/cypasswd.exe"; DestDir: "{app}"
Source: "tools/cypython.exe"; DestDir: "{app}"
Source: "server/libgcc_s_sjlj-1.dll"; DestDir: "{app}"
Source: "server/libgcrypt-11.dll"; DestDir: "{app}"
Source: "server/libgpg-error-0.dll"; DestDir: "{app}"
Source: "server/libpq.dll"; DestDir: "{app}"
Source: "server/libsigc-2.0-0.dll"; DestDir: "{app}"
Source: "data/cyphesis.vconf"; DestDir: "{app}\etc\cyphesis"
Source: "data/*.xml"; Excludes: "acorn.xml,werewolf.xml"; DestDir: "{app}\etc\cyphesis\mason.d"
Source: "rulesets/basic/mind/*.py"; DestDir: "{app}\share\cyphesis\rulesets\basic\mind"; Flags: recursesubdirs
Source: "rulesets/mason/*.py"; DestDir: "{app}\share\cyphesis\rulesets\mason"; Flags: recursesubdirs
Source: "rulesets/basic/world/objects/Thing.py"; DestDir: "{app}\share\cyphesis\scripts\cyphesis"
Source: "rulesets/basic/world/probability.py"; DestDir: "{app}\share\cyphesis\scripts\cyphesis"
Source: "rulesets/basic/world/objects/__init__.py"; DestDir: "{app}\share\cyphesis\scripts\cyphesis"
Source: "rulesets/basic/editor.py"; DestDir: "{app}\share\cyphesis\scripts\cyphesis"
; Source: "README"; DestDir: "{app}"; Flags: isreadme
[Icons]
Name: "{group}\Cyphesis"; Filename: "{app}\cyphesis.exe"
Name: "{group}\Cyphesis Create World"; Filename: "{app}\cyclient.exe"
[Registry]
; Start "Software\My Company\My Program" keys under HKEY_CURRENT_USER
; and HKEY_LOCAL_MACHINE. The flags tell it to always delete the
; "My Program" keys upon uninstall, and delete the "My Company" keys
; if there is nothing left in them.
Root: HKCU; Subkey: "Software\WorldForge"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\WorldForge\WorldForge"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\WorldForge"; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\WorldForge\Cyphesis"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\WorldForge\Cyphesis\Settings"; ValueType: string; ValueName: "Path"; ValueData: "{app}"
[Code]
function InitializeSetup(): Boolean;
begin
if RegKeyExists(HKLM, 'Software\\Python\\PythonCore\\@python_version@\\InstallPath') then
begin
Result := True;
end else begin
MsgBox('Python version @python_version@.x is required by Cyphesis to run.', mbError, MB_OK);
Result := False;
end;
end;