mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
85 lines
3.6 KiB
Text
85 lines
3.6 KiB
Text
; -- 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;
|