source: branches/AlphaChannel/Install/win/Common.iss

Last change on this file was 240, checked in by chronos, 5 years ago
  • Fixed: Saved and predefined maps were not correctly copied from application directory to user home data directory.
File size: 5.5 KB
Line 
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.)
17WizardStyle=modern
18AppId={{6B40AF4D-C38C-4474-9614-8F0C4376C1CF}
19AppName={#MyAppName}
20AppVersion={#MyAppVersion}
21AppVerName={#MyAppName} {#MyAppVersion}
22UninstallDisplayName={#MyAppName}
23UninstallDisplayIcon="{app}\{#MyAppExeName}"
24VersionInfoVersion={#MyAppVersion}
25VersionInfoCompany={#MyAppPublisher}
26AppPublisher={#MyAppPublisher}
27AppPublisherURL={#MyAppURL}
28AppSupportURL={#MyAppURL}
29AppUpdatesURL={#MyAppURL}
30DefaultDirName={commonpf}\{#MyAppName}
31DefaultGroupName={#MyAppName}
32AllowNoIcons=yes
33OutputDir=.
34Compression=lzma
35SolidCompression=yes
36ChangesAssociations=yes
37
38[Languages]
39Name: "en"; MessagesFile: "compiler:Default.isl"
40Name: "cs"; MessagesFile: "compiler:Languages\Czech.isl"
41Name: "de"; MessagesFile: "compiler:Languages\German.isl"
42Name: "it"; MessagesFile: "compiler:Languages\Italian.isl"
43Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl"
44
45[Tasks]
46Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags:
47
48[Registry]
49Root: HKLM; Subkey: "Software\C-evo"; Flags: uninsdeletekey
50
51#define FileTypeName "C-evo book"
52Root: HKCR; Subkey: ".cevo"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletevalue
53Root: HKCR; Subkey: "{#FileTypeName}"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletekey
54Root: HKCR; Subkey: "{#FileTypeName}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
55Root: HKCR; Subkey: "{#FileTypeName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
56
57[Components]
58Name: "main"; Description: "Main Files"; Types: full compact custom; Flags: fixed
59Name: "maps"; Description: "Maps"; Types: full
60Name: "lang"; Description: "Language files"; Types: full
61Name: "lang\cs"; Description: "Czech"; Types: full
62Name: "lang\de"; Description: "German"; Types: full
63Name: "lang\it"; Description: "Italian"; Types: full
64Name: "lang\ru"; Description: "Russian"; Types: full
65Name: "lang\zhHans"; Description: "Chinese Simplified"; Types: full
66Name: "lang\zhHant"; Description: "Chinese Traditional"; Types: full
67Name: "ai_template"; Description: "AI template"; Types: full
68Name: "ai"; Description: "AI files"; Types: full
69Name: "ai\stdai"; Description: "StdAI"; Types: full
70
71[Files]
72Source: "{#MyAppSubDir}\Graphics\*"; DestDir: "{app}\Graphics"; Flags: ignoreversion; Components: main
73Source: "{#MyAppSubDir}\Sounds\*.*"; DestDir: "{app}\Sounds"; Flags: ignoreversion; Components: main
74Source: "{#MyAppSubDir}\Tribes\*.*"; DestDir: "{app}\Tribes"; Flags: ignoreversion; Components: main
75Source: "{#MyAppSubDir}\Saved\*.*"; DestDir: "{app}\Saved"; Flags: ignoreversion; Components: main
76Source: "{#MyAppSubDir}\Maps\*.*"; DestDir: "{app}\Maps"; Flags: ignoreversion; Components: maps
77Source: "{#MyAppSubDir}\Localization\cs\*.*"; DestDir: "{app}\Localization\cs"; Flags: ignoreversion recursesubdirs; Components: lang\cs
78Source: "{#MyAppSubDir}\Localization\de\*.*"; DestDir: "{app}\Localization\de"; Flags: ignoreversion recursesubdirs; Components: lang\de
79Source: "{#MyAppSubDir}\Localization\it\*.*"; DestDir: "{app}\Localization\it"; Flags: ignoreversion recursesubdirs; Components: lang\it
80Source: "{#MyAppSubDir}\Localization\ru\*.*"; DestDir: "{app}\Localization\ru"; Flags: ignoreversion recursesubdirs; Components: lang\ru
81Source: "{#MyAppSubDir}\Localization\zh-Hans\*.*"; DestDir: "{app}\Localization\zh-Hans"; Flags: ignoreversion recursesubdirs; Components: lang\zhHans
82Source: "{#MyAppSubDir}\Localization\zh-Hant\*.*"; DestDir: "{app}\Localization\zh-Hant"; Flags: ignoreversion recursesubdirs; Components: lang\zhHant
83Source: "{#MyAppSubDir}\Help\*.*"; DestDir: "{app}\Help"; Flags: ignoreversion; Components: main
84Source: "{#MyAppSubDir}\Fonts.txt"; DestDir: "{app}"; Flags: ignoreversion; Components: main
85Source: "{#MyAppSubDir}\Language.txt"; DestDir: "{app}"; Flags: ignoreversion; Components: main
86Source: "{#MyAppSubDir}\Language2.txt"; DestDir: "{app}"; Flags: ignoreversion; Components: main
87Source: "{#MyAppSubDir}\AI Template\*.*"; DestDir: "{app}\AI Template"; Flags: ignoreversion recursesubdirs; Components: ai_template
88Source: "{#MyAppSubDir}\AI\StdAI\StdAI.png"; DestDir: "{app}\AI\StdAI"; Flags: ignoreversion; Components: ai\stdai
89Source: "{#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]
93Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
94Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
95Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
96
97[Run]
98Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, "&", "&&")}}"; Flags: nowait postinstall skipifsilent
99
Note: See TracBrowser for help on using the repository browser.