_setup.iss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #define MyAppName "Rembg"
  2. #define MyAppVersion "STABLE"
  3. #define MyAppPublisher "danielgatis"
  4. #define MyAppURL "https://github.com/danielgatis/rembg"
  5. #define MyAppExeName "rembg.exe"
  6. #define MyAppId "49AB7484-212F-4B31-A49F-533A480F3FD4"
  7. [Setup]
  8. AppId={#MyAppId}
  9. AppName={#MyAppName}
  10. AppVersion={#MyAppVersion}
  11. AppPublisher={#MyAppPublisher}
  12. AppPublisherURL={#MyAppURL}
  13. AppSupportURL={#MyAppURL}
  14. AppUpdatesURL={#MyAppURL}
  15. DefaultDirName={autopf}\{#MyAppName}
  16. DefaultGroupName={#MyAppName}
  17. DisableProgramGroupPage=yes
  18. OutputBaseFilename=rembg-cli-installer
  19. Compression=lzma
  20. SolidCompression=yes
  21. WizardStyle=modern
  22. OutputDir=dist
  23. ChangesEnvironment=yes
  24. [Languages]
  25. Name: "english"; MessagesFile: "compiler:Default.isl"
  26. [Files]
  27. Source: "{#SourcePath}dist\rembg\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
  28. Source: "{#SourcePath}dist\rembg\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
  29. [Tasks]
  30. Name: modifypath; Description: "Add to PATH variable"
  31. [Icons]
  32. Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  33. [Code]
  34. const
  35. ModPathName = 'modifypath';
  36. ModPathType = 'user';
  37. function ModPathDir(): TArrayOfString;
  38. begin
  39. setArrayLength(Result, 1)
  40. Result[0] := ExpandConstant('{app}');
  41. end;
  42. #include "_modpath.iss"