Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 38 additions & 18 deletions InnoSetup/codelite64_mingw.iss.in
Original file line number Diff line number Diff line change
@@ -1,37 +1,57 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define AppName "CodeLite"
#define AppAuthor "Eran Ifrah"
#define CurrentYear GetDateTimeString('yyyy','','')
#define SupportURL "https://codelite.org"

; external file with language and custom message definitions
#include "@CL_SRC_ROOT@/InnoSetup/codelite64_mingw.localization.iss.in"

[Setup]
WizardStyle=modern
AppName=CodeLite
AppVerName=CodeLite
AppPublisher=Eran Ifrah
AppName={#AppName}
AppVersion=@CODELITE_VERSION@
AppPublisherURL=http://codelite.org
AppSupportURL=http://codelite.org
AppUpdatesURL=http://codelite.org
DefaultDirName={commonpf64}\CodeLite
DefaultGroupName=CodeLite
LicenseFile=@CL_SRC_ROOT@/LICENSE
AppVerName={#AppName} @CODELITE_VERSION@

AppPublisherURL={#SupportURL}
AppSupportURL={#SupportURL}
AppUpdatesURL={#SupportURL}

VersionInfoDescription={#AppName} installer
VersionInfoProductName={#AppName}
VersionInfoVersion=@CODELITE_VERSION@
AppCopyright={#CurrentYear} {#AppAuthor}

UninstallDisplayName={#AppName}
UninstallDisplayIcon={app}\bin\codelite.exe,0
AppPublisher={#AppAuthor}

SetupIconFile=@CL_SRC_ROOT@/InnoSetup/box_software.ico

DefaultDirName={commonpf64}\{#AppName}
DefaultGroupName={#AppName}
LicenseFile=@CL_SRC_ROOT@/LICENSE.rtf
OutputDir=@BUILD_DIRECTORY@/installer
OutputBaseFilename=codelite-@CODELITE_ARCH@-@CODELITE_VERSION@
ChangesEnvironment=yes
FlatComponentsList=yes
SetupIconFile=@CL_SRC_ROOT@/InnoSetup/box_software.ico
Compression=lzma/ultra
SolidCompression=true
InternalCompressLevel=ultra
PrivilegesRequired=none
UninstallDisplayIcon={app}\bin\codelite.exe,0

WizardStyle=modern

ShowLanguageDialog=yes
UsePreviousLanguage=no
LanguageDetectionMethod=uilanguage

;;==================================
;; 64 bit setup
;;==================================
#define INSTALL_DIR "@CMAKE_INSTALL_PREFIX@"

[Languages]
Name: "eng"; 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
Expand All @@ -41,7 +61,7 @@ Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescrip
Source: "{#INSTALL_DIR}\*"; Excludes: "*.a"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs;

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

if IsSilentInstall() = False then
if MsgBox('Would you like to keep your local settings?', mbConfirmation, MB_YESNO or MB_DEFBUTTON1) = IDNO
if MsgBox(ExpandConstant('{cm:KeepLocalSettings}'), mbConfirmation, MB_YESNO or MB_DEFBUTTON1) = IDNO
then
BEGIN
DelTree(ExpandConstant('{userappdata}') + '\codelite', True, True, True)
Expand Down
18 changes: 18 additions & 0 deletions InnoSetup/codelite64_mingw.localization.iss.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[Languages]
Name: "eng"; MessagesFile: "compiler:Default.isl"
Name: "cze"; MessagesFile: "compiler:Languages\Czech.isl"
Name: "fre"; MessagesFile: "compiler:Languages\French.isl"
Name: "ita"; MessagesFile: "compiler:Languages\Italian.isl"
Name: "jpn"; MessagesFile: "compiler:Languages\Japanese.isl"
Name: "rus"; MessagesFile: "compiler:Languages\Russian.isl"


[CustomMessages]
eng.KeepUserSettings=Would you like to keep your user settings?
eng.KeepLocalSettings=Would you like to keep your local settings?

fre.KeepUserSettings=Souhaitez-vous conserver vos paramètres utilisateur?
fre.KeepLocalSettings=Souhaitez-vous conserver vos paramètres locaux?

ita.KeepUserSettings=Vuoi mantenere le impostazioni utente?
ita.KeepLocalSettings=Vuoi mantenere le impostazioni locali?
Loading
Loading