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!
|
|
|
|
|
2021-07-17 08:24:25 +00:00
|
|
|
#define MyAppName "Espanso"
|
2019-09-16 14:20:52 +00:00
|
|
|
#define MyAppVersion "{{{app_version}}}"
|
2021-07-17 08:24:25 +00:00
|
|
|
#define MyAppPublisher "Federico Terzi"
|
2019-09-16 14:20:52 +00:00
|
|
|
#define MyAppURL "{{{app_url}}}"
|
2021-07-17 08:24:25 +00:00
|
|
|
#define MyAppExeName "espansod.exe"
|
2021-07-17 13:59:08 +00:00
|
|
|
#define MyAppUserModelID "{{5E3B6C0F-1A4D-45C4-8872-D8174702101A}"
|
2019-09-16 14:20:52 +00:00
|
|
|
|
|
|
|
[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]
|
2021-07-17 08:24:25 +00:00
|
|
|
Source: "{{{executable_path}}}"; DestDir: "{app}"; DestName: "espansod.exe"; Flags: ignoreversion
|
2019-09-16 14:35:58 +00:00
|
|
|
Source: "{{{app_icon}}}"; DestDir: "{app}"; Flags: ignoreversion
|
2021-07-17 08:24:25 +00:00
|
|
|
Source: "{{{cli_helper}}}"; DestDir: "{app}"; Flags: ignoreversion
|
2020-02-29 19:56:47 +00:00
|
|
|
{{{dll_include}}}
|
2021-07-17 08:24:25 +00:00
|
|
|
|
2019-09-16 14:20:52 +00:00
|
|
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
|
|
|
|
2021-08-25 20:15:20 +00:00
|
|
|
; Delete files from previous versions, if present
|
|
|
|
[InstallDelete]
|
|
|
|
Type: files; Name: {app}\concrt140.dll
|
|
|
|
Type: files; Name: {app}\espanso.exe
|
|
|
|
Type: files; Name: {app}\icon.ico
|
|
|
|
Type: files; Name: {app}\modulo.exe
|
|
|
|
Type: files; Name: {app}\msvcp140.dll
|
|
|
|
Type: files; Name: {app}\msvcp140_1.dll
|
|
|
|
Type: files; Name: {app}\msvcp140_2.dll
|
|
|
|
Type: files; Name: {app}\msvcp140_codecvt_ids.dll
|
|
|
|
Type: files; Name: {app}\unins000.dat
|
|
|
|
Type: files; Name: {app}\unins000.exe
|
|
|
|
Type: files; Name: {app}\vccorlib140.dll
|
|
|
|
Type: files; Name: {app}\vcruntime140.dll
|
|
|
|
Type: files; Name: {app}\vsruntime140_1.dll
|
|
|
|
|
2019-09-16 14:20:52 +00:00
|
|
|
[Icons]
|
2021-07-17 13:59:08 +00:00
|
|
|
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Parameters: "launcher"; AppUserModelID: "{#MyAppUserModelID}"; IconFilename: "{app}\icon.ico";
|
2019-09-16 14:20:52 +00:00
|
|
|
|
|
|
|
[Run]
|
2021-07-17 08:24:25 +00:00
|
|
|
Filename: "{app}\{#MyAppExeName}"; Parameters: "launcher"; 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]
|
2021-07-17 08:24:25 +00:00
|
|
|
Filename: "{cmd}"; Parameters: "/C ""taskkill /im espansod.exe /f /t"
|