2019-09-16 14:20:52 +00:00
|
|
|
; Script generated by the Inno Setup Script Wizard.
|
|
|
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|
|
|
|
|
|
|
#define MyAppName "{{{app_name}}}"
|
|
|
|
#define MyAppVersion "{{{app_version}}}"
|
|
|
|
#define MyAppPublisher "{{{app_publisher}}}"
|
|
|
|
#define MyAppURL "{{{app_url}}}"
|
|
|
|
#define MyAppExeName "espanso.exe"
|
|
|
|
|
|
|
|
[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={{0E3D83CE-A644-4E0E-8487-657C7ECF6BF9}
|
|
|
|
AppName={#MyAppName}
|
|
|
|
AppVersion={#MyAppVersion}
|
|
|
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
|
|
|
AppPublisher={#MyAppPublisher}
|
|
|
|
AppPublisherURL={#MyAppURL}
|
|
|
|
AppSupportURL={#MyAppURL}
|
|
|
|
AppUpdatesURL={#MyAppURL}
|
|
|
|
DefaultDirName={autopf}\{#MyAppName}
|
|
|
|
DisableProgramGroupPage=yes
|
|
|
|
LicenseFile="{{{app_license}}}"
|
|
|
|
; Remove the following line to run in administrative install mode (install for all users.)
|
|
|
|
PrivilegesRequired=lowest
|
|
|
|
OutputDir="{{{output_dir}}}"
|
|
|
|
OutputBaseFilename={{{output_name}}}
|
|
|
|
SetupIconFile="{{{app_icon}}}"
|
|
|
|
Compression=lzma
|
|
|
|
SolidCompression=yes
|
|
|
|
WizardStyle=modern
|
|
|
|
ChangesEnvironment=yes
|
|
|
|
|
|
|
|
[Languages]
|
|
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
|
|
|
|
|
|
[Files]
|
|
|
|
Source: "{{{executable_path}}}"; DestDir: "{app}"; Flags: ignoreversion
|
2019-09-16 14:35:58 +00:00
|
|
|
Source: "{{{app_icon}}}"; DestDir: "{app}"; Flags: ignoreversion
|
2020-02-29 19:56:47 +00:00
|
|
|
{{{dll_include}}}
|
2019-09-16 14:20:52 +00:00
|
|
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
|
|
|
|
|
|
|
[Icons]
|
2019-09-30 20:40:19 +00:00
|
|
|
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Parameters: "start"; IconFilename: "{app}\icon.ico"
|
|
|
|
Name: "{userstartup}\espanso"; Filename: "{app}\espanso.exe"; Parameters: "start"; Tasks:StartMenuEntry;
|
2019-09-16 14:20:52 +00:00
|
|
|
|
|
|
|
[Tasks]
|
|
|
|
Name: modifypath; Description: Add espanso to PATH ( recommended );
|
2019-09-16 14:46:35 +00:00
|
|
|
Name: "StartMenuEntry" ; Description: "Start espanso at Windows startup" ;
|
2019-09-16 14:20:52 +00:00
|
|
|
|
|
|
|
[Code]
|
|
|
|
const
|
|
|
|
ModPathName = 'modifypath';
|
|
|
|
ModPathType = 'user';
|
|
|
|
function ModPathDir(): TArrayOfString;
|
|
|
|
begin
|
|
|
|
setArrayLength(Result, 1)
|
|
|
|
Result[0] := ExpandConstant('{app}');
|
|
|
|
end;
|
|
|
|
#include "modpath.iss"
|
|
|
|
[Run]
|
2019-09-30 20:40:19 +00:00
|
|
|
Filename: "{app}\{#MyAppExeName}"; Parameters: "start"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
2019-09-16 14:20:52 +00:00
|
|
|
|
2019-09-16 14:35:58 +00:00
|
|
|
[UninstallRun]
|
|
|
|
Filename: "{cmd}"; Parameters: "/C ""taskkill /im espanso.exe /f /t"
|