Skip to content

Commit cc64d17

Browse files
authored
Installer script improvements (#3872)
1 parent 673b9d3 commit cc64d17

File tree

5 files changed

+22630
-18
lines changed

5 files changed

+22630
-18
lines changed

InnoSetup/codelite64_mingw.iss.in

Lines changed: 38 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,57 @@
11
; Script generated by the Inno Setup Script Wizard.
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

4+
#define AppName "CodeLite"
5+
#define AppAuthor "Eran Ifrah"
6+
#define CurrentYear GetDateTimeString('yyyy','','')
7+
#define SupportURL "https://codelite.org"
8+
9+
; external file with language and custom message definitions
10+
#include "@CL_SRC_ROOT@/InnoSetup/codelite64_mingw.localization.iss.in"
11+
412
[Setup]
5-
WizardStyle=modern
6-
AppName=CodeLite
7-
AppVerName=CodeLite
8-
AppPublisher=Eran Ifrah
13+
AppName={#AppName}
914
AppVersion=@CODELITE_VERSION@
10-
AppPublisherURL=http://codelite.org
11-
AppSupportURL=http://codelite.org
12-
AppUpdatesURL=http://codelite.org
13-
DefaultDirName={commonpf64}\CodeLite
14-
DefaultGroupName=CodeLite
15-
LicenseFile=@CL_SRC_ROOT@/LICENSE
15+
AppVerName={#AppName} @CODELITE_VERSION@
16+
17+
AppPublisherURL={#SupportURL}
18+
AppSupportURL={#SupportURL}
19+
AppUpdatesURL={#SupportURL}
20+
21+
VersionInfoDescription={#AppName} installer
22+
VersionInfoProductName={#AppName}
23+
VersionInfoVersion=@CODELITE_VERSION@
24+
AppCopyright={#CurrentYear} {#AppAuthor}
25+
26+
UninstallDisplayName={#AppName}
27+
UninstallDisplayIcon={app}\bin\codelite.exe,0
28+
AppPublisher={#AppAuthor}
29+
30+
SetupIconFile=@CL_SRC_ROOT@/InnoSetup/box_software.ico
31+
32+
DefaultDirName={commonpf64}\{#AppName}
33+
DefaultGroupName={#AppName}
34+
LicenseFile=@CL_SRC_ROOT@/LICENSE.rtf
1635
OutputDir=@BUILD_DIRECTORY@/installer
1736
OutputBaseFilename=codelite-@CODELITE_ARCH@-@CODELITE_VERSION@
1837
ChangesEnvironment=yes
1938
FlatComponentsList=yes
20-
SetupIconFile=@CL_SRC_ROOT@/InnoSetup/box_software.ico
2139
Compression=lzma/ultra
2240
SolidCompression=true
2341
InternalCompressLevel=ultra
2442
PrivilegesRequired=none
25-
UninstallDisplayIcon={app}\bin\codelite.exe,0
43+
44+
WizardStyle=modern
45+
46+
ShowLanguageDialog=yes
47+
UsePreviousLanguage=no
48+
LanguageDetectionMethod=uilanguage
2649

2750
;;==================================
2851
;; 64 bit setup
2952
;;==================================
3053
#define INSTALL_DIR "@CMAKE_INSTALL_PREFIX@"
3154

32-
[Languages]
33-
Name: "eng"; MessagesFile: "compiler:Default.isl"
34-
3555
[Tasks]
3656
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
3757
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
@@ -41,7 +61,7 @@ Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescrip
4161
Source: "{#INSTALL_DIR}\*"; Excludes: "*.a"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs;
4262

4363
[Icons]
44-
Name: "{group}\CodeLite "; Filename: "{app}\bin\codelite.exe"; WorkingDir: "{app}"
64+
Name: "{group}\{#AppName} "; Filename: "{app}\bin\codelite.exe"; WorkingDir: "{app}"
4565
Name: "{group}\{cm:UninstallProgram, CodeLite}"; Filename: "{uninstallexe}"
4666
Name: "{userdesktop}\CodeLite "; Filename: "{app}\bin\codelite.exe"; WorkingDir: "{app}" ;Tasks: desktopicon
4767
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\CodeLite"; WorkingDir: "{app}"; Filename: "{app}\bin\codelite.exe"; Tasks: quicklaunchicon
@@ -83,7 +103,7 @@ begin
83103
RegDeleteKeyIncludingSubkeys(HKCR, '*\shell\Open With CodeLite');
84104
if IsSilentInstall() = False then begin
85105
// Prompt the user to delete all his settings, default to "No"
86-
if MsgBox('Would you like to keep your user settings?', mbConfirmation, MB_YESNO or MB_DEFBUTTON1) = IDNO
106+
if MsgBox(ExpandConstant('{cm:KeepUserSettings}'), mbConfirmation, MB_YESNO or MB_DEFBUTTON1) = IDNO
87107
then begin
88108
DelTree(ExpandConstant('{userappdata}') + '\codelite', True, True, True);
89109
end;
@@ -178,7 +198,7 @@ begin
178198
DelTree(sCodeLitePath + '\*.dat', False, True, False)
179199

180200
if IsSilentInstall() = False then
181-
if MsgBox('Would you like to keep your local settings?', mbConfirmation, MB_YESNO or MB_DEFBUTTON1) = IDNO
201+
if MsgBox(ExpandConstant('{cm:KeepLocalSettings}'), mbConfirmation, MB_YESNO or MB_DEFBUTTON1) = IDNO
182202
then
183203
BEGIN
184204
DelTree(ExpandConstant('{userappdata}') + '\codelite', True, True, True)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[Languages]
2+
Name: "eng"; MessagesFile: "compiler:Default.isl"
3+
Name: "cze"; MessagesFile: "compiler:Languages\Czech.isl"
4+
Name: "fre"; MessagesFile: "compiler:Languages\French.isl"
5+
Name: "ita"; MessagesFile: "compiler:Languages\Italian.isl"
6+
Name: "jpn"; MessagesFile: "compiler:Languages\Japanese.isl"
7+
Name: "rus"; MessagesFile: "compiler:Languages\Russian.isl"
8+
9+
10+
[CustomMessages]
11+
eng.KeepUserSettings=Would you like to keep your user settings?
12+
eng.KeepLocalSettings=Would you like to keep your local settings?
13+
14+
fre.KeepUserSettings=Souhaitez-vous conserver vos paramètres utilisateur?
15+
fre.KeepLocalSettings=Souhaitez-vous conserver vos paramètres locaux?
16+
17+
ita.KeepUserSettings=Vuoi mantenere le impostazioni utente?
18+
ita.KeepLocalSettings=Vuoi mantenere le impostazioni locali?

0 commit comments

Comments
 (0)