Skip to content
0.2.0-dev Download ZIP
63 lines ·1.8 KB Raw
1#define MyAppName "Godot Engine"
2#define MyAppVersion "4.8"
3#define MyAppPublisher "Godot Engine contributors"
4#define MyAppURL "https://godotengine.org/"
5#define MyAppExeName "godot.exe"
6
7[Setup]
8AppId={{60D07AAA-400E-40F5-B073-A796C34D9D78}
9AppName={#MyAppName}
10AppVersion={#MyAppVersion}
11; Don't add "version {version}" to the installed app name in the Add/Remove Programs
12; dialog as it's redundant with the Version field in that same dialog.
13AppVerName={#MyAppName}
14AppPublisher={#MyAppPublisher}
15AppPublisherURL={#MyAppURL}
16AppSupportURL={#MyAppURL}
17AppUpdatesURL={#MyAppURL}
18AppComments=Godot Engine editor
19ChangesEnvironment=yes
20DefaultDirName={localappdata}\Godot
21DefaultGroupName=Godot Engine
22AllowNoIcons=yes
23UninstallDisplayIcon={app}\{#MyAppExeName}
24#ifdef App32Bit
25 OutputBaseFilename=godot-setup-x86
26#else
27 OutputBaseFilename=godot-setup-x86_64
28 ArchitecturesAllowed=x64
29 ArchitecturesInstallIn64BitMode=x64
30#endif
31Compression=lzma
32SolidCompression=yes
33PrivilegesRequired=lowest
34
35[Languages]
36Name: "english"; MessagesFile: "compiler:Default.isl"
37
38[Tasks]
39Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
40Name: "modifypath"; Description: "Add Godot to PATH environment variable"
41
42[Files]
43Source: "{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
44
45[Icons]
46Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
47Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
48
49[Run]
50Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
51
52[Code]
53const
54 ModPathName = 'modifypath';
55 ModPathType = 'user';
56
57function ModPathDir(): TArrayOfString;
58begin
59 setArrayLength(Result, 1)
60 Result[0] := ExpandConstant('{app}');
61end;
62
63#include "modpath.pas"