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
|
2021-08-29 10:15:55 +02:00
|
|
|
#define Arch "x64"
|
2021-06-23 16:43:58 +02:00
|
|
|
#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"
|
2021-08-29 10:15:55 +02:00
|
|
|
ArchitecturesAllowed=x64
|
|
|
|
ArchitecturesInstallIn64BitMode=x64
|
|
|
|
#define ArchInternal "x86_64"
|
|
|
|
#else
|
|
|
|
#define ArchInternal "i686"
|
2021-06-23 16:43:58 +02:00
|
|
|
#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=.
|
2021-08-29 10:15:55 +02:00
|
|
|
OutputBaseFilename=LiteXL-{#MyAppVersion}-{#ArchInternal}-setup
|
2021-06-23 16:43:58 +02:00
|
|
|
;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
|
2021-08-29 10:15:55 +02:00
|
|
|
Source: "{#BuildDir}/mingwLibs{#Arch}/*"; DestDir: "{app}"; Flags: ignoreversion ; Check: DirExists(ExpandConstant('{#BuildDir}/mingwLibs{#Arch}'))
|
2021-08-02 18:43:59 +02:00
|
|
|
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-29 10:15:55 +02:00
|
|
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
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')
|
|
|
|
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon; Check: not WizardIsTaskSelected('portablemode')
|
2021-08-29 10:15:55 +02:00
|
|
|
; Name: "{usersendto}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
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')
|