flameshot.iss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.12-2c3237a
  8. AppCopyright=NameCheap inc.
  9. VersionInfoVersion=0.7.12
  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. Source: "flameshot\vcredist-2013.exe"; DestDir: {app}
  32. Source: "flameshot\vcredist.exe"; DestDir: {app}
  33. [Icons]
  34. Name: "{commondesktop}\Flameshot"; Filename: "{app}\flameshot.exe"; WorkingDir: "{app}"
  35. Name: "{group}\Flameshot"; Filename: "{app}\flameshot.exe"; WorkingDir: "{app}"
  36. Name: "{group}\FlameShot Documentation"; Filename: "https://collab.namecheap.net/display/~anastasiamelnik/Flameshot%3A+Screenshot+tool"; WorkingDir: "{app}"
  37. ;Name: "{group}\FlameShot Documentation"; Filename: "{app}\flameshot-documentation.pdf"; WorkingDir: "{app}"
  38. ; NOTE: Most apps do not need registry entries to be pre-created. If you
  39. ; don't know what the registry is or if you need to use it, then chances are
  40. ; you don't need a [Registry] section.
  41. [Run]
  42. Filename: {app}\vcredist-2013.exe; \
  43. Parameters: "/q /passive /Q:a /c:""msiexec /q /i vcredist.msi"""; \
  44. StatusMsg: "Installing VC++ 2013 Redistributables..."
  45. Filename: {app}\vcredist.exe; \
  46. Parameters: "/q /passive /Q:a /c:""msiexec /q /i vcredist.msi"""; \
  47. StatusMsg: "Installing VC++ 2015 Redistributables..."
  48. [UninstallRun]
  49. Filename: "taskkill"; Parameters: "/im ""flameshot.exe"" /f"; Flags: runhidden
  50. [Code]
  51. function ShouldSkipPage(PageID: Integer): Boolean;
  52. begin
  53. // User specific pages should be skipped in administrative install mode
  54. Result := IsAdminInstallMode and (PageID = wpUserInfo);
  55. end;