flameshot.iss 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ; -- Example3.iss --
  2. ; Same as Example1.iss, but creates some registry entries too and allows the end
  3. ; use to choose the install mode (administrative or non administrative).
  4. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
  5. [Setup]
  6. AppName=Flameshot
  7. AppVersion=0.7.4
  8. AppCopyright=NameCheap inc.
  9. VersionInfoVersion=0.7.4
  10. WizardStyle=modern
  11. DefaultDirName={autopf}\Flameshot
  12. DefaultGroupName=Flameshot
  13. UninstallDisplayIcon={app}\flameshot.exe
  14. Compression=lzma2
  15. SolidCompression=yes
  16. ;OutputDir=userdocs:Inno Setup Examples Output
  17. OutputBaseFilename=Flameshot-Setup
  18. ChangesAssociations=yes
  19. UserInfoPage=yes
  20. PrivilegesRequiredOverridesAllowed=dialog
  21. AppPublisher=Namecheap, Inc.
  22. AppPublisherURL=https://www.namecheap.com/
  23. ; "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\signtool.exe" sign /f "C:\MY_CODE_SIGNING.PFX" /t http://timestamp.comodoca.com/authenticode /p MY_PASSWORD $f
  24. [Files]
  25. Source: "flameshot\*"; DestDir: "{app}"
  26. Source: "flameshot\bearer\*"; DestDir: "{app}\bearer"
  27. Source: "flameshot\iconengines\*"; DestDir: "{app}\iconengines"
  28. Source: "flameshot\imageformats\*"; DestDir: "{app}\imageformats"
  29. Source: "flameshot\platforms\*"; DestDir: "{app}\platforms"
  30. Source: "flameshot\translations\*"; DestDir: "{app}\translations"
  31. [Icons]
  32. Name: "{commondesktop}\Flameshot"; Filename: "{app}\flameshot.exe"; WorkingDir: "{app}"
  33. Name: "{group}\Flameshot"; Filename: "{app}\flameshot.exe"; WorkingDir: "{app}"
  34. Name: "{group}\FlameShot Documentation"; Filename: "{app}\flameshot-documentation.pdf"; WorkingDir: "{app}"
  35. ; NOTE: Most apps do not need registry entries to be pre-created. If you
  36. ; don't know what the registry is or if you need to use it, then chances are
  37. ; you don't need a [Registry] section.
  38. [UninstallRun]
  39. Filename: "taskkill"; Parameters: "/im ""flameshot.exe"" /f"; Flags: runhidden
  40. [Code]
  41. function ShouldSkipPage(PageID: Integer): Boolean;
  42. begin
  43. // User specific pages should be skipped in administrative install mode
  44. Result := IsAdminInstallMode and (PageID = wpUserInfo);
  45. end;