2021-06-23 16:43:58 +02:00
|
|
|
#define MyAppName "Lite XL"
|
|
|
|
#define MyAppVersion "@PROJECT_VERSION@"
|
|
|
|
#define MyAppPublisher "Lite XL Team"
|
|
|
|
#define MyAppURL "https://lite-xl.github.io"
|
|
|
|
#define MyAppExeName "lite-xl.exe"
|
|
|
|
#define BuildDir "@PROJECT_BUILD_DIR@"
|
2021-08-02 18:43:59 +02:00
|
|
|
#define SourceDir "@PROJECT_SOURCE_DIR@"
|
2021-06-23 16:43:58 +02:00
|
|
|
|
|
|
|
; Use /dArch option to create a setup for a different architecture, e.g.:
|
|
|
|
; iscc /dArch=x86 innosetup.iss
|
|
|
|
#ifndef Arch
|
|
|
|
#define Arch "x64"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
[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 InnoSetup IDE.
|
|
|
|
AppId={{06761240-D97C-43DE-B9ED-C15F765A2D65}
|
|
|
|
|
|
|
|
AppName={#MyAppName}
|
|
|
|
AppVersion={#MyAppVersion}
|
|
|
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
|
|
|
AppPublisher={#MyAppPublisher}
|
|
|
|
AppPublisherURL={#MyAppURL}
|
|
|
|
AppSupportURL={#MyAppURL}
|
|
|
|
AppUpdatesURL={#MyAppURL}
|
|
|
|
|
|
|
|
#if Arch=="x64"
|
|
|
|
ArchitecturesAllowed=x64
|
|
|
|
ArchitecturesInstallIn64BitMode={#Arch}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
AllowNoIcons=yes
|
|
|
|
Compression=lzma
|
|
|
|
SolidCompression=yes
|
2021-08-02 18:43:59 +02:00
|
|
|
DefaultDirName={autopf}/{#MyAppName}
|
2021-06-23 16:43:58 +02:00
|
|
|
DefaultGroupName={#MyAppPublisher}
|
|
|
|
UninstallFilesDir={app}
|
|
|
|
|
|
|
|
; Uncomment the following line to run in non administrative install mode
|
|
|
|
; (install for current user only.)
|
|
|
|
;PrivilegesRequired=lowest
|
|
|
|
PrivilegesRequiredOverridesAllowed=dialog
|
|
|
|
|
|
|
|
; The [Icons] "quicklaunchicon" entry uses {userappdata}
|
|
|
|
; but its [Tasks] entry has a proper IsAdminInstallMode Check.
|
|
|
|
UsedUserAreasWarning=no
|
|
|
|
|
|
|
|
OutputDir=.
|
|
|
|
OutputBaseFilename=LiteXL-{#MyAppVersion}-{#Arch}-setup
|
|
|
|
;DisableDirPage=yes
|
|
|
|
;DisableProgramGroupPage=yes
|
|
|
|
|
2021-08-02 18:43:59 +02:00
|
|
|
LicenseFile={#SourceDir}/LICENSE
|
|
|
|
SetupIconFile={#SourceDir}/resources/icons/icon.ico
|
|
|
|
WizardImageFile="{#SourceDir}/scripts/innosetup/wizard-modern-image.bmp"
|
|
|
|
WizardSmallImageFile="{#SourceDir}/scripts/innosetup/litexl-55px.bmp"
|
2021-06-23 16:43:58 +02:00
|
|
|
|
|
|
|
[Languages]
|
|
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
|
|
|
|
|
|
[Tasks]
|
|
|
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
|
|
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1; Check: not IsAdminInstallMode
|
|
|
|
Name: "portablemode"; Description: "Portable Mode"; Flags: unchecked
|
|
|
|
|
|
|
|
[Files]
|
2021-08-02 18:43:59 +02:00
|
|
|
Source: "{#BuildDir}/src/lite-xl.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
|
|
; MSYS2 produces no external dlls on 32 bit builds when using lhelper
|
|
|
|
#if Arch=="x64"
|
|
|
|
Source: "{#BuildDir}/mingwLibs{#Arch}/*"; DestDir: "{app}"; Flags: ignoreversion
|
|
|
|
#endif
|
|
|
|
Source: "{#SourceDir}/data/*"; DestDir: "{app}/data"; Flags: ignoreversion recursesubdirs
|
2021-06-23 16:43:58 +02:00
|
|
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
|
|
|
|
|
|
|
[Icons]
|
2021-08-02 18:43:59 +02:00
|
|
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Check: not WizardIsTaskSelected('portablemode')
|
|
|
|
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"; Check: not WizardIsTaskSelected('portablemode')
|
2021-06-23 16:43:58 +02:00
|
|
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
2021-08-02 18:43:59 +02:00
|
|
|
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon; Check: not WizardIsTaskSelected('portablemode')
|
2021-06-23 16:43:58 +02:00
|
|
|
|
|
|
|
[Run]
|
2021-08-02 18:43:59 +02:00
|
|
|
Filename: "{app}/{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
2021-06-23 16:43:58 +02:00
|
|
|
|
|
|
|
[Setup]
|
2021-08-02 18:43:59 +02:00
|
|
|
Uninstallable=not WizardIsTaskSelected('portablemode')
|