godot.iss 1.8 KB

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