Debian Codegraph @

tools/internal/pack_release/cge-windows-setup.iss

raw
1 ; Inno Setup script.
2 ;
3 ; Initially generated by the Inno Setup Script Wizard.
4 ; See https://jrsoftware.org/ishelp/ .
5 ;
6 ; For debug purposes you can run it from InnoSetup GUI, just uncomment and adjust MyAppSrcDir .
7 ; But for production it should always be used from command-line by calling
8 ; "./pack_release.sh windows_installer".
9 ; The pack_release.sh will prepare directory for this to work (MyAppSrcDir),
10 ; and configure output dir and filename.
11
12 #define MyAppName "Castle Game Engine"
13 #define MyAppPublisher "Michalis Kamburelis & Castle Game Engine Contributors"
14 #define MyAppURL "https://castle-engine.io/"
15 #define MyAppExeFullName "bin\castle-editor.exe"
16
17 ; CGE version.
18 ; Define passed on the command-line by pack_release.sh.
19 ;#define MyAppVersion "7.0-alpha.snapshot"
20
21 ; CGE directory to distribute.
22 ; Usually created by pack_release.sh , and define passed on the command-line by pack_release.sh.
23 ; We assume it has the same contents as the files we pack to zip.
24 ;#define MyAppSrcDir "C:\customize-MyAppSrcDir-in-innosetup-file"
25
26 [Setup]
27 ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
28 ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
29 AppId={{8B78FCA1-AD29-42A5-B48A-D1C11297CB48}
30 AppName={#MyAppName}
31 AppVersion={#MyAppVersion}
32 ;AppVerName={#MyAppName} {#MyAppVersion}
33 AppPublisher={#MyAppPublisher}
34 AppPublisherURL={#MyAppURL}
35 AppSupportURL={#MyAppURL}
36 AppUpdatesURL={#MyAppURL}
37 DefaultDirName={autopf}\{#MyAppName}
38 DisableProgramGroupPage=yes
39 LicenseFile={#MyAppSrcDir}\COPYING.md
40
41 ; This works, but actually showing README.md at this point feels more distracting than helpful.
42 ; Our website, from which user presumably downloaded the CGE, presents engine much better.
43 ; InfoAfterFile={#MyAppSrcDir}\README.md
44
45 ; TODO: This is better (give both options, use dialog),
46 ; but for now in admin mode opening+running examples doesn't work without
47 ; manual copy (because they are read-only).
48 ; So to make things simpler, for now we just default to user-only install.
49 ; ; Uncomment the following line to run in non administrative install mode (install for current user only.)
50 ; ;PrivilegesRequired=lowest
51 ; PrivilegesRequiredOverridesAllowed=dialog
52 PrivilegesRequired=lowest
53
54 OutputBaseFilename=castle-engine-setup
55 SetupIconFile={#MyAppSrcDir}\doc\pasdoc\logo\castle_game_engine_icon.ico
56 Compression=lzma
57 SolidCompression=yes
58 WizardStyle=modern
59
60 [Languages]
61 Name: "english"; MessagesFile: "compiler:Default.isl"
62 Name: "armenian"; MessagesFile: "compiler:Languages\Armenian.isl"
63 Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
64 Name: "bulgarian"; MessagesFile: "compiler:Languages\Bulgarian.isl"
65 Name: "catalan"; MessagesFile: "compiler:Languages\Catalan.isl"
66 Name: "corsican"; MessagesFile: "compiler:Languages\Corsican.isl"
67 Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl"
68 Name: "danish"; MessagesFile: "compiler:Languages\Danish.isl"
69 Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl"
70 Name: "finnish"; MessagesFile: "compiler:Languages\Finnish.isl"
71 Name: "french"; MessagesFile: "compiler:Languages\French.isl"
72 Name: "german"; MessagesFile: "compiler:Languages\German.isl"
73 Name: "hebrew"; MessagesFile: "compiler:Languages\Hebrew.isl"
74 Name: "icelandic"; MessagesFile: "compiler:Languages\Icelandic.isl"
75 Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
76 Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
77 Name: "norwegian"; MessagesFile: "compiler:Languages\Norwegian.isl"
78 Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl"
79 Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl"
80 Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
81 Name: "slovak"; MessagesFile: "compiler:Languages\Slovak.isl"
82 Name: "slovenian"; MessagesFile: "compiler:Languages\Slovenian.isl"
83 Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
84 Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"
85 Name: "ukrainian"; MessagesFile: "compiler:Languages\Ukrainian.isl"
86
87 [Tasks]
88 Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
89
90 [Files]
91 Source: "{#MyAppSrcDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
92 ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
93
94 [Icons]
95 Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeFullName}"
96 Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeFullName}"; Tasks: desktopicon
97
98 [Run]
99 Filename: "{app}\{#MyAppExeFullName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
100