Changeset 679 for trunk/Install/win/C-evo.iss
- Timestamp:
- Jul 26, 2025, 4:44:43 PM (18 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Install/win/C-evo.iss
r579 r679 1 #include "Common.iss" 1 #define MyAppName "C-evo" 2 #define MyAppTitle "C-evo: New Horizons" 3 #define MyAppNameShort "C-evo-nh" 4 #define MyAppVersion "1.4.0" 5 #define MyAppVersionSuffix "alfa" 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 MyAppExeName32 "C-evo32.exe" 11 #define MyAppSubDir "../.." 2 12 3 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={#MyAppTitle} 20 #ifdef MyAppVersionSuffix 21 #define MyAppVersionSuffix "-" + MyAppVersionSuffix 22 #else 23 #define MyAppVersionSuffix "" 24 #endif 25 AppVersion={#MyAppVersion}{#MyAppVersionSuffix} 26 AppVerName={#MyAppName} {#MyAppVersion}{#MyAppVersionSuffix} 27 UninstallDisplayName={#MyAppTitle} 28 UninstallDisplayIcon="{app}\{#MyAppExeName}" 29 VersionInfoVersion={#MyAppVersion} 30 VersionInfoCompany={#MyAppPublisher} 31 AppPublisher={#MyAppPublisher} 32 AppPublisherURL={#MyAppURL} 33 AppSupportURL={#MyAppURL} 34 AppUpdatesURL={#MyAppURL} 35 DefaultDirName={commonpf}\{#MyAppName} 36 DefaultGroupName={#MyAppName} 37 AllowNoIcons=yes 38 OutputDir=. 39 Compression=lzma 40 SolidCompression=yes 41 ChangesAssociations=yes 42 DisableDirPage=no 4 43 ; "ArchitecturesInstallIn64BitMode=x64" requests that the install be 5 44 ; done in "64-bit mode" on x64, meaning it should use the native … … 12 51 OutputBaseFilename=Install-{#MyAppNameShort}-{#MyAppVersion}{#MyAppVersionSuffix} 13 52 53 [Languages] 54 Name: "en"; MessagesFile: "compiler:Default.isl" 55 Name: "cs"; MessagesFile: "compiler:Languages\Czech.isl" 56 Name: "de"; MessagesFile: "compiler:Languages\German.isl" 57 Name: "it"; MessagesFile: "compiler:Languages\Italian.isl" 58 Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl" 59 Name: "fr"; MessagesFile: "compiler:Languages\French.isl" 60 61 [Tasks] 62 Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: 63 64 [Registry] 65 Root: HKLM; Subkey: "Software\C-evo"; Flags: uninsdeletekey 66 67 #define FileTypeName "C-evo book" 68 Root: HKCR; Subkey: ".cevo"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletevalue 69 Root: HKCR; Subkey: "{#FileTypeName}"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletekey 70 Root: HKCR; Subkey: "{#FileTypeName}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0" 71 Root: HKCR; Subkey: "{#FileTypeName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1""" 72 73 #define FileTypeName "C-evo map" 74 Root: HKCR; Subkey: ".cevomap"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletevalue 75 Root: HKCR; Subkey: "{#FileTypeName}"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletekey 76 Root: HKCR; Subkey: "{#FileTypeName}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0" 77 Root: HKCR; Subkey: "{#FileTypeName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1""" 78 14 79 [Components] 80 Name: "main"; Description: "Main Files"; Types: full compact custom; Flags: fixed 81 Name: "main32"; Description: "Additional 32-bit architecture"; Types: full; Check: Is64BitInstallMode 82 Name: "maps"; Description: "Maps"; Types: full 83 Name: "sounds"; Description: "Sounds"; Types: full 84 Name: "music"; Description: "Music"; Types: full 85 Name: "lang"; Description: "Language files"; Types: full 86 Name: "lang\cs"; Description: "Czech"; Types: full 87 Name: "lang\de"; Description: "German"; Types: full 88 Name: "lang\it"; Description: "Italian"; Types: full 89 Name: "lang\ru"; Description: "Russian"; Types: full 90 Name: "lang\fr"; Description: "French"; Types: full 91 Name: "lang\zhHans"; Description: "Chinese Simplified"; Types: full 92 Name: "lang\zhHant"; Description: "Chinese Traditional"; Types: full 93 Name: "ai_template"; Description: "AI template"; Types: full 94 Name: "ai"; Description: "AI files"; Types: full 95 Name: "ai\stdai"; Description: "StdAI"; Types: full 15 96 Name: "ai\ai_uo"; Description: "AI_UO"; Types: full 16 97 Name: "ai\capital_ai"; Description: "Capital AI"; Types: full … … 25 106 Source: "{#MyAppSubDir}\lib\x86_64-win64-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Components: main; Check: Is64BitInstallMode 26 107 Source: "{#MyAppSubDir}\lib\i386-win32-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Components: main; Check: not Is64BitInstallMode 108 Source: "{#MyAppSubDir}\Help\*.*"; DestDir: "{app}\Help"; Flags: ignoreversion; Components: main 109 Source: "{#MyAppSubDir}\Fonts.txt"; DestDir: "{app}"; Flags: ignoreversion; Components: main 110 Source: "{#MyAppSubDir}\Language.txt"; DestDir: "{app}"; Flags: ignoreversion; Components: main 111 Source: "{#MyAppSubDir}\Language2.txt"; DestDir: "{app}"; Flags: ignoreversion; Components: main 112 Source: "{#MyAppSubDir}\Graphics\*"; DestDir: "{app}\Graphics"; Flags: ignoreversion; Components: main 113 Source: "{#MyAppSubDir}\Tribes\*.*"; DestDir: "{app}\Tribes"; Flags: ignoreversion; Components: main 114 Source: "{#MyAppSubDir}\Saved\*.*"; DestDir: "{app}\Saved"; Flags: ignoreversion; Components: main 115 Source: "{#MyAppSubDir}\LibPortaudio-32.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main; Check: not Is64BitInstallMode 116 Source: "{#MyAppSubDir}\LibPortaudio-64.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main; Check: Is64BitInstallMode 117 Source: "{#MyAppSubDir}\LibSndFile-32.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main; Check: not Is64BitInstallMode 118 Source: "{#MyAppSubDir}\LibSndFile-64.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main; Check: Is64BitInstallMode 119 Source: "{#MyAppSubDir}\libxmp-32.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main; Check: not Is64BitInstallMode 120 Source: "{#MyAppSubDir}\libxmp-64.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main; Check: Is64BitInstallMode 121 122 Source: "{#MyAppSubDir}\lib\i386-win32-Release\{#MyAppExeName}"; DestDir: "{app}"; DestName: "{#MyAppExeName32}"; Flags: ignoreversion; Components: main32; Check: Is64BitInstallMode 123 Source: "{#MyAppSubDir}\LibPortaudio-32.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main32; Check: Is64BitInstallMode 124 Source: "{#MyAppSubDir}\LibSndFile-32.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main32; Check: Is64BitInstallMode 125 Source: "{#MyAppSubDir}\libxmp-32.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main32; Check: Is64BitInstallMode 126 127 Source: "{#MyAppSubDir}\Sounds\*.*"; DestDir: "{app}\Sounds"; Flags: ignoreversion; Components: sounds 128 129 Source: "{#MyAppSubDir}\Music\*.*"; DestDir: "{app}\Music"; Flags: ignoreversion recursesubdirs; Components: music 130 131 Source: "{#MyAppSubDir}\Maps\*.*"; DestDir: "{app}\Maps"; Flags: ignoreversion; Components: maps 132 133 Source: "{#MyAppSubDir}\Localization\cs\*.*"; DestDir: "{app}\Localization\cs"; Flags: ignoreversion recursesubdirs; Components: lang\cs 134 Source: "{#MyAppSubDir}\Localization\de\*.*"; DestDir: "{app}\Localization\de"; Flags: ignoreversion recursesubdirs; Components: lang\de 135 Source: "{#MyAppSubDir}\Localization\it\*.*"; DestDir: "{app}\Localization\it"; Flags: ignoreversion recursesubdirs; Components: lang\it 136 Source: "{#MyAppSubDir}\Localization\ru\*.*"; DestDir: "{app}\Localization\ru"; Flags: ignoreversion recursesubdirs; Components: lang\ru 137 Source: "{#MyAppSubDir}\Localization\fr\*.*"; DestDir: "{app}\Localization\fr"; Flags: ignoreversion recursesubdirs; Components: lang\fr 138 Source: "{#MyAppSubDir}\Localization\zh-Hans\*.*"; DestDir: "{app}\Localization\zh-Hans"; Flags: ignoreversion recursesubdirs; Components: lang\zhHans 139 Source: "{#MyAppSubDir}\Localization\zh-Hant\*.*"; DestDir: "{app}\Localization\zh-Hant"; Flags: ignoreversion recursesubdirs; Components: lang\zhHant 140 Source: "{#MyAppSubDir}\AI Template\*.*"; DestDir: "{app}\AI Template"; Flags: ignoreversion recursesubdirs; Components: ai_template 141 142 Source: "{#MyAppSubDir}\AI\StdAI\StdAI.png"; DestDir: "{app}\AI\StdAI"; Flags: ignoreversion; Components: ai\stdai 143 Source: "{#MyAppSubDir}\AI\StdAI\StdAI.ai.txt"; DestDir: "{app}\AI\StdAI"; Flags: ignoreversion; Components: ai\stdai 27 144 Source: "{#MyAppSubDir}\AI\StdAI\lib\x86_64-win64-Release\StdAI.dll"; DestDir: "{app}\AI\StdAI"; DestName: "StdAI-win64.dll"; Flags: ignoreversion; Components: ai\stdai; Check: Is64BitInstallMode 28 145 Source: "{#MyAppSubDir}\AI\StdAI\lib\i386-win32-Release\StdAI.dll"; DestDir: "{app}\AI\StdAI"; DestName: "StdAI-win32.dll"; Flags: ignoreversion; Components: ai\stdai; Check: not Is64BitInstallMode 29 Source: "{#MyAppSubDir}\AI\AI_UO\*.*"; DestDir: "{app}\AI\AI_UO"; Flags: ignoreversion; Components: ai\ai_uo; Check: not Is64BitInstallMode 30 Source: "{#MyAppSubDir}\AI\AIAS\*.*"; DestDir: "{app}\AI\AIAS"; Flags: ignoreversion; Components: ai\aias; Check: not Is64BitInstallMode 31 Source: "{#MyAppSubDir}\AI\Capital AI\*.*"; DestDir: "{app}\AI\Capital AI"; Flags: ignoreversion; Components: ai\capital_ai; Check: not Is64BitInstallMode 32 Source: "{#MyAppSubDir}\AI\Civilisation Seed AI\*.*"; DestDir: "{app}\AI\Civilisation Seed AI"; Flags: ignoreversion; Components: ai\civseed; Check: not Is64BitInstallMode 33 Source: "{#MyAppSubDir}\AI\Crystal\*.*"; DestDir: "{app}\AI\Crystal"; Flags: ignoreversion; Components: ai\crystal; Check: not Is64BitInstallMode 34 Source: "{#MyAppSubDir}\AI\KIAI\*.*"; DestDir: "{app}\AI\KIAI"; Flags: ignoreversion; Components: ai\kiai; Check: not Is64BitInstallMode 35 Source: "{#MyAppSubDir}\AI\SETI\*.*"; DestDir: "{app}\AI\SETI"; Flags: ignoreversion; Components: ai\seti; Check: not Is64BitInstallMode 36 Source: "{#MyAppSubDir}\AI\Shah\*.*"; DestDir: "{app}\AI\Shah"; Flags: ignoreversion; Components: ai\shah; Check: not Is64BitInstallMode 146 147 Source: "{#MyAppSubDir}\AI\AI_UO\*.*"; DestDir: "{app}\AI\AI_UO"; Flags: ignoreversion; Components: ai\ai_uo; Check: Install32bitAI 148 Source: "{#MyAppSubDir}\AI\AIAS\*.*"; DestDir: "{app}\AI\AIAS"; Flags: ignoreversion; Components: ai\aias; Check: Install32bitAI 149 Source: "{#MyAppSubDir}\AI\Capital AI\*.*"; DestDir: "{app}\AI\Capital AI"; Flags: ignoreversion; Components: ai\capital_ai; Check: Install32bitAI 150 Source: "{#MyAppSubDir}\AI\Civilisation Seed AI\*.*"; DestDir: "{app}\AI\Civilisation Seed AI"; Flags: ignoreversion; Components: ai\civseed; Check: Install32bitAI 151 Source: "{#MyAppSubDir}\AI\Crystal\*.*"; DestDir: "{app}\AI\Crystal"; Flags: ignoreversion; Components: ai\crystal; Check: Install32bitAI 152 Source: "{#MyAppSubDir}\AI\KIAI\*.*"; DestDir: "{app}\AI\KIAI"; Flags: ignoreversion; Components: ai\kiai; Check: Install32bitAI 153 Source: "{#MyAppSubDir}\AI\SETI\*.*"; DestDir: "{app}\AI\SETI"; Flags: ignoreversion; Components: ai\seti; Check: Install32bitAI 154 Source: "{#MyAppSubDir}\AI\Shah\*.*"; DestDir: "{app}\AI\Shah"; Flags: ignoreversion; Components: ai\shah; Check: Install32bitAI 155 ; NOTE: Don't use "Flags: ignoreversion" on any shared system files 156 157 [Icons] 158 Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" 159 Name: "{group}\{#MyAppName} (32-bit)"; Filename: "{app}\{#MyAppExeName32}"; Check: Is64BitInstallMode 160 Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" 161 Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon 162 163 [Run] 164 Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, "&", "&&")}}"; Flags: nowait postinstall skipifsilent 165 166 [Code] 167 168 function Install32bitAI: Boolean; 169 var 170 Components: string; 171 begin 172 Components := WizardSelectedComponents(False); 173 174 Result := not Is64BitInstallMode or (Pos('main32', Components) > 0); 175 end;
Note:
See TracChangeset
for help on using the changeset viewer.