1 | ; Script generated by the Inno Setup Script Wizard.
|
---|
2 | ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
---|
3 |
|
---|
4 | #define MyAppName "C-evo"
|
---|
5 | #define MyAppVersion "1.2.0"
|
---|
6 | #define MyAppPublisher "Chronosoft"
|
---|
7 | #define MyAppPublisherShort "Chronosoft"
|
---|
8 | #define MyAppURL "https://app.zdechov.net/c-evo"
|
---|
9 | #define MyAppExeName "C-evo.exe"
|
---|
10 | #define MyAppDebugName "C-evo.dbg"
|
---|
11 | #define MyAppSubDir "../.."
|
---|
12 |
|
---|
13 | [Setup]
|
---|
14 | ; NOTE: The value of AppId uniquely identifies this application.
|
---|
15 | ; Do not use the same AppId value in installers for other applications.
|
---|
16 | ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
---|
17 | WizardStyle=modern
|
---|
18 | AppId={{6B40AF4D-C38C-4474-9614-8F0C4376C1CF}
|
---|
19 | AppName={#MyAppName}
|
---|
20 | AppVersion={#MyAppVersion}
|
---|
21 | AppVerName={#MyAppName} {#MyAppVersion}
|
---|
22 | UninstallDisplayName={#MyAppName}
|
---|
23 | UninstallDisplayIcon="{app}\{#MyAppExeName}"
|
---|
24 | VersionInfoVersion={#MyAppVersion}
|
---|
25 | VersionInfoCompany={#MyAppPublisher}
|
---|
26 | AppPublisher={#MyAppPublisher}
|
---|
27 | AppPublisherURL={#MyAppURL}
|
---|
28 | AppSupportURL={#MyAppURL}
|
---|
29 | AppUpdatesURL={#MyAppURL}
|
---|
30 | DefaultDirName={commonpf}\{#MyAppName}
|
---|
31 | DefaultGroupName={#MyAppName}
|
---|
32 | AllowNoIcons=yes
|
---|
33 | OutputDir=.
|
---|
34 | Compression=lzma
|
---|
35 | SolidCompression=yes
|
---|
36 | ChangesAssociations=yes
|
---|
37 |
|
---|
38 | [Languages]
|
---|
39 | Name: "en"; MessagesFile: "compiler:Default.isl"
|
---|
40 | Name: "cs"; MessagesFile: "compiler:Languages\Czech.isl"
|
---|
41 | Name: "de"; MessagesFile: "compiler:Languages\German.isl"
|
---|
42 | Name: "it"; MessagesFile: "compiler:Languages\Italian.isl"
|
---|
43 | Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl"
|
---|
44 |
|
---|
45 | [Tasks]
|
---|
46 | Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags:
|
---|
47 |
|
---|
48 | [Registry]
|
---|
49 | Root: HKLM; Subkey: "Software\C-evo"; Flags: uninsdeletekey
|
---|
50 |
|
---|
51 | #define FileTypeName "C-evo book"
|
---|
52 | Root: HKCR; Subkey: ".cevo"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletevalue
|
---|
53 | Root: HKCR; Subkey: "{#FileTypeName}"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletekey
|
---|
54 | Root: HKCR; Subkey: "{#FileTypeName}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
|
---|
55 | Root: HKCR; Subkey: "{#FileTypeName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
---|
56 |
|
---|
57 | [Components]
|
---|
58 | Name: "main"; Description: "Main Files"; Types: full compact custom; Flags: fixed
|
---|
59 | Name: "maps"; Description: "Maps"; Types: full
|
---|
60 | Name: "lang"; Description: "Language files"; Types: full
|
---|
61 | Name: "lang\cs"; Description: "Czech"; Types: full
|
---|
62 | Name: "lang\de"; Description: "German"; Types: full
|
---|
63 | Name: "lang\it"; Description: "Italian"; Types: full
|
---|
64 | Name: "lang\ru"; Description: "Russian"; Types: full
|
---|
65 | Name: "lang\zhHans"; Description: "Chinese Simplified"; Types: full
|
---|
66 | Name: "lang\zhHant"; Description: "Chinese Traditional"; Types: full
|
---|
67 | Name: "ai_template"; Description: "AI template"; Types: full
|
---|
68 | Name: "ai"; Description: "AI files"; Types: full
|
---|
69 | Name: "ai\stdai"; Description: "StdAI"; Types: full
|
---|
70 |
|
---|
71 | [Files]
|
---|
72 | Source: "{#MyAppSubDir}\Graphics\*"; DestDir: "{app}\Graphics"; Flags: ignoreversion; Components: main
|
---|
73 | Source: "{#MyAppSubDir}\Sounds\*.*"; DestDir: "{app}\Sounds"; Flags: ignoreversion; Components: main
|
---|
74 | Source: "{#MyAppSubDir}\Tribes\*.*"; DestDir: "{app}\Tribes"; Flags: ignoreversion; Components: main
|
---|
75 | Source: "{#MyAppSubDir}\Saved\*.*"; DestDir: "{app}\Saved"; Flags: ignoreversion; Components: main
|
---|
76 | Source: "{#MyAppSubDir}\Maps\*.*"; DestDir: "{app}\Maps"; Flags: ignoreversion; Components: maps
|
---|
77 | Source: "{#MyAppSubDir}\Localization\cs\*.*"; DestDir: "{app}\Localization\cs"; Flags: ignoreversion recursesubdirs; Components: lang\cs
|
---|
78 | Source: "{#MyAppSubDir}\Localization\de\*.*"; DestDir: "{app}\Localization\de"; Flags: ignoreversion recursesubdirs; Components: lang\de
|
---|
79 | Source: "{#MyAppSubDir}\Localization\it\*.*"; DestDir: "{app}\Localization\it"; Flags: ignoreversion recursesubdirs; Components: lang\it
|
---|
80 | Source: "{#MyAppSubDir}\Localization\ru\*.*"; DestDir: "{app}\Localization\ru"; Flags: ignoreversion recursesubdirs; Components: lang\ru
|
---|
81 | Source: "{#MyAppSubDir}\Localization\zh-Hans\*.*"; DestDir: "{app}\Localization\zh-Hans"; Flags: ignoreversion recursesubdirs; Components: lang\zhHans
|
---|
82 | Source: "{#MyAppSubDir}\Localization\zh-Hant\*.*"; DestDir: "{app}\Localization\zh-Hant"; Flags: ignoreversion recursesubdirs; Components: lang\zhHant
|
---|
83 | Source: "{#MyAppSubDir}\Help\*.*"; DestDir: "{app}\Help"; Flags: ignoreversion; Components: main
|
---|
84 | Source: "{#MyAppSubDir}\Fonts.txt"; DestDir: "{app}"; Flags: ignoreversion; Components: main
|
---|
85 | Source: "{#MyAppSubDir}\Language.txt"; DestDir: "{app}"; Flags: ignoreversion; Components: main
|
---|
86 | Source: "{#MyAppSubDir}\Language2.txt"; DestDir: "{app}"; Flags: ignoreversion; Components: main
|
---|
87 | Source: "{#MyAppSubDir}\AI Template\*.*"; DestDir: "{app}\AI Template"; Flags: ignoreversion recursesubdirs; Components: ai_template
|
---|
88 | Source: "{#MyAppSubDir}\AI\StdAI\StdAI.png"; DestDir: "{app}\AI\StdAI"; Flags: ignoreversion; Components: ai\stdai
|
---|
89 | Source: "{#MyAppSubDir}\AI\StdAI\StdAI.ai.txt"; DestDir: "{app}\AI\StdAI"; Flags: ignoreversion; Components: ai\stdai
|
---|
90 | ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
---|
91 |
|
---|
92 | [Icons]
|
---|
93 | Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
---|
94 | Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
---|
95 | Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
---|
96 |
|
---|
97 | [Run]
|
---|
98 | Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, "&", "&&")}}"; Flags: nowait postinstall skipifsilent
|
---|
99 |
|
---|