2017-06-25 15:59:27 +07:00
|
|
|
; Script generated by the Inno Setup Script Wizard.
|
|
|
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
2017-08-05 19:54:32 +07:00
|
|
|
#ifexist "defines.iss"
|
|
|
|
#include "defines.iss"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MyAppVersion
|
|
|
|
#define MyAppVersion "1.0.0"
|
|
|
|
#endif
|
|
|
|
|
2017-06-25 15:59:27 +07:00
|
|
|
#define MyAppName "Screen Translator"
|
|
|
|
#define MyAppPublisher "Gres"
|
|
|
|
#define MyAppURL "http://gres.biz/screen-translator/"
|
|
|
|
#define MyAppExeName "ScreenTranslator.exe"
|
|
|
|
#define MyAppDescription "Screen capture and translation tool"
|
|
|
|
|
|
|
|
[Setup]
|
|
|
|
; NOTE: The value of AppId uniquely identifies this application.
|
|
|
|
; Do not use the same AppId value in installers for other applications.
|
|
|
|
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
|
|
|
AppId={{016F399E-0EED-476C-AB00-8AD0FF5BFD77}
|
|
|
|
AppName={#MyAppName}
|
|
|
|
AppVersion={#MyAppVersion}
|
|
|
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
|
|
|
AppPublisher={#MyAppPublisher}
|
|
|
|
AppPublisherURL={#MyAppURL}
|
|
|
|
AppSupportURL={#MyAppURL}
|
|
|
|
AppUpdatesURL={#MyAppURL}
|
|
|
|
DefaultDirName={pf}\{#MyAppName}
|
|
|
|
DefaultGroupName={#MyAppName}
|
|
|
|
AllowNoIcons=yes
|
|
|
|
PrivilegesRequired=admin
|
|
|
|
CloseApplications=yes
|
|
|
|
OutputDir=..
|
2017-06-25 16:16:38 +07:00
|
|
|
OutputBaseFilename=screen-translator-offline-{#MyAppVersion}
|
2017-06-25 15:59:27 +07:00
|
|
|
SetupIconFile=icon.ico
|
|
|
|
RestartIfNeededByRun=False
|
|
|
|
ShowLanguageDialog=auto
|
|
|
|
VersionInfoCompany={#MyAppPublisher}
|
|
|
|
VersionInfoDescription={#MyAppDescription}
|
|
|
|
VersionInfoProductName={#MyAppName}
|
|
|
|
VersionInfoProductVersion={#MyAppVersion}
|
|
|
|
VersionInfoVersion={#MyAppVersion}
|
|
|
|
Compression=lzma2/ultra64
|
|
|
|
InternalCompressLevel=ultra
|
|
|
|
SolidCompression=yes
|
|
|
|
|
|
|
|
[Languages]
|
2018-02-24 18:43:13 +07:00
|
|
|
Name: "en"; MessagesFile: "compiler:Default.isl,default.isl"; LicenseFile: "LICENSE_en.md"; InfoBeforeFile: "Changelog_en.txt"
|
|
|
|
Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl,russian.isl"; LicenseFile: "LICENSE_ru.md"; InfoBeforeFile: "Changelog_ru.txt"
|
2017-06-25 15:59:27 +07:00
|
|
|
|
|
|
|
[Tasks]
|
|
|
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
|
|
Name: "startupicon"; Description: "{cm:CreateStartupIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
|
|
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
|
|
|
|
|
|
|
|
[Icons]
|
|
|
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
|
|
|
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
|
|
|
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
|
|
|
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
|
|
|
|
Name: "{commonstartup}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: startupicon
|
|
|
|
|
|
|
|
[Run]
|
|
|
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
2018-02-24 19:58:36 +07:00
|
|
|
Filename: "{tmp}\vcredist_x86.exe"; Description: "{cm:InstallRedist}"; Parameters: "/install"; Flags: postinstall skipifsilent
|
2017-06-25 15:59:27 +07:00
|
|
|
|
|
|
|
[Files]
|
|
|
|
Source: "content\ScreenTranslator.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: Executable
|
|
|
|
Source: "content\*.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: Libraries
|
|
|
|
Source: "content\platforms\*"; DestDir: "{app}\platforms"; Flags: ignoreversion; Components: Libraries
|
|
|
|
Source: "content\translators\*"; DestDir: "{app}\translators"; Flags: ignoreversion; Components: Translators
|
2018-02-24 19:58:36 +07:00
|
|
|
Source: "content\vcredist_x86.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall;
|
2017-06-25 15:59:27 +07:00
|
|
|
|
|
|
|
[Types]
|
|
|
|
Name: "custom"; Description: "Custom installation"; Flags: iscustom
|
|
|
|
|
|
|
|
[Components]
|
|
|
|
Name: "Executable"; Description: "{cm:Executables}"; Types: custom; Flags: fixed;
|
|
|
|
Name: "Libraries"; Description: "{cm:Libraries}"; Types: custom; Flags: fixed;
|
|
|
|
Name: "Translators"; Description: "{cm:Translators}"; Types: custom; Flags: fixed;
|
|
|
|
|
|
|
|
#include "tessdataBuiltin.iss"
|
|
|
|
|
|
|
|
[UninstallDelete]
|
|
|
|
Type: files; Name: "{app}\updates.json"
|
|
|
|
Type: files; Name: "{app}\st_subs.csv"
|
|
|
|
|
|
|
|
[UninstallRun]
|
|
|
|
Filename: "taskkill.exe"; Parameters: "/IM ScreenTranslator.exe /T /F"
|
|
|
|
|