; -- Example3.iss -- ; Same as Example1.iss, but creates some registry entries too and allows the end ; use to choose the install mode (administrative or non administrative). ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES! [Setup] AppName=Flameshot AppVersion=0.7.7-49f014b AppCopyright=NameCheap inc. VersionInfoVersion=0.7.7 WizardStyle=modern DefaultDirName={autopf}\Flameshot DefaultGroupName=Flameshot UninstallDisplayIcon={app}\flameshot.exe Compression=lzma2 SolidCompression=yes ;OutputDir=userdocs:Inno Setup Examples Output OutputBaseFilename=Flameshot-Setup ChangesAssociations=yes UserInfoPage=yes PrivilegesRequiredOverridesAllowed=dialog AppPublisher=Namecheap, Inc. AppPublisherURL=https://www.namecheap.com/ ; "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 [Files] Source: "flameshot\*"; DestDir: "{app}" Source: "flameshot\bearer\*"; DestDir: "{app}\bearer" Source: "flameshot\iconengines\*"; DestDir: "{app}\iconengines" Source: "flameshot\imageformats\*"; DestDir: "{app}\imageformats" Source: "flameshot\platforms\*"; DestDir: "{app}\platforms" Source: "flameshot\translations\*"; DestDir: "{app}\translations" Source: "flameshot\vcredist-2013.exe"; DestDir: {app} Source: "flameshot\vcredist.exe"; DestDir: {app} [Icons] Name: "{commondesktop}\Flameshot"; Filename: "{app}\flameshot.exe"; WorkingDir: "{app}" Name: "{group}\Flameshot"; Filename: "{app}\flameshot.exe"; WorkingDir: "{app}" Name: "{group}\FlameShot Documentation"; Filename: "https://collab.namecheap.net/display/~anastasiamelnik/Flameshot%3A+Screenshot+tool"; WorkingDir: "{app}" ;Name: "{group}\FlameShot Documentation"; Filename: "{app}\flameshot-documentation.pdf"; WorkingDir: "{app}" ; NOTE: Most apps do not need registry entries to be pre-created. If you ; don't know what the registry is or if you need to use it, then chances are ; you don't need a [Registry] section. [Run] Filename: {app}\vcredist-2013.exe; \ Parameters: "/q /passive /Q:a /c:""msiexec /q /i vcredist.msi"""; \ StatusMsg: "Installing VC++ 2013 Redistributables..." Filename: {app}\vcredist.exe; \ Parameters: "/q /passive /Q:a /c:""msiexec /q /i vcredist.msi"""; \ StatusMsg: "Installing VC++ 2015 Redistributables..." [UninstallRun] Filename: "taskkill"; Parameters: "/im ""flameshot.exe"" /f"; Flags: runhidden [Code] function ShouldSkipPage(PageID: Integer): Boolean; begin // User specific pages should be skipped in administrative install mode Result := IsAdminInstallMode and (PageID = wpUserInfo); end;