New Win Installer, by Eugene

This commit is contained in:
Juergen Spitzmueller 2020-06-06 12:58:39 +02:00
parent ca6c973ab0
commit 68e227c9fa
7 changed files with 2176 additions and 3 deletions

View File

@ -5,11 +5,17 @@ To build the installer do the following:
- install the latest version 3.x of NSIS (https://nsis.sourceforge.io/Download)
- install the NSIS Large Strings build (https://nsis.sourceforge.io/Special_Builds)
(extract the extension ZIP file in your NSIS installation folder and this way overwrite some files)
- download the plugin FindProcDLL, choose the release for unicode (https://nsis.sourceforge.io/FindProcDLL_plug-in),
extract from it the file FindProc.dll to the folder \Plugins\x86-unicode of NSIS's installation folder
(extract the extension ZIP file in your NSIS installation folder and this way overwrite some files)
- download the plugin Inetc (https://nsis.sourceforge.io/Inetc_plug-in)
extract the content into the NSIS's installation folder
- download the plugin NSISList (https://nsis.sourceforge.io/NSISList_plug-in), download both .zip archives,
extract Include\NSISList.nsh from the first archive to the folder Include of NSIS's installation folder and
extract NSISList-Unicode\NSISList.dll from the second archive to the folder \Plugins\x86-unicode of NSIS's installation folder
- download the plugin ShellLink (https://nsis.sourceforge.io/ShellLink_plug-in)
extract Unicode\Plugins\ShellLink.dll from the archive to the folder \Plugins\x86-unicode of NSIS's installation folder
- download the plugin nsProcess (https://nsis.sourceforge.io/NsProcess_plugin) with unicode support
extract Plugin\nsProcessW.dll from the archive to the folder \Plugins\x86-unicode of NSIS's installation folder and rename it to nsProcess.dll
extract Include\nsProcess.nsh from the archive to the folder \Include of NSIS's installation folder
- Go to the Qt-kit directory, which you have specified as CMAKE_PREFIX_PATH before compiling in CMake Gui, enter the bin folder,
copy these files:
Qt5Concurrent.dll"

View File

@ -0,0 +1,30 @@
#-------------------------------------------------------------
# - - - - - - - - - - - - Settings - - - - - - - - - - - - - -
#-------------------------------------------------------------
# TODO edit this section
!define VERSION_MAJOR 2
!define VERSION_MINOR 4
!define VERSION_REVISION 0
!define VERSION_EMERGENCY "1" # Empty string for regular releases, otherwise integer value
!define EMERGENCY_DOT "." # Empty string for regular releases, "." for emergency
!define VERSION_BUILD 1 # Only integer values
!define APP_ARCHITECTURE 64 # 32 or 64 bit
!define FILES_LYX "C:\lyx\masterbuild${APP_ARCHITECTURE}\LYX_INSTALLED" # Path to LYX_INSTALLED folder where bin\LyX.exe is compiled
!define FILES_QT "${FILES_LYX}" # Can choose same as FILES_LYX (if Qt files copied to LYX_INSTALLED folder after compiling) or Qt kit folder
!define FILES_DEPS "${FILES_LYX}" # Can choose same as FILES_LYX (if dependencies copied to LYX_INSTALLED folder after compiling) or the dependencies folder itself (GNUWIN32 dir)
!define COPYRIGHT_YEAR 2020
#-------------------------------------------------------------
# - - - - - - - - - - - - Sourcecode - - - - - - - - - - - - -
#-------------------------------------------------------------
# Do not edit
!define APP_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION}${EMERGENCY_DOT}${VERSION_EMERGENCY}"
!define APP_VERSION_DOTLESS "${VERSION_MAJOR}${VERSION_MINOR}${VERSION_REVISION}${VERSION_EMERGENCY}"
OutFile "LyX-${APP_VERSION_DOTLESS}-Installer-${VERSION_BUILD}-x${APP_ARCHITECTURE}.exe"
!include "src\main.nsh"

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file was created by NSISDialogDesigner 1.5.0.0
https://coolsoft.altervista.org/nsisdialogdesigner
Do not edit manually!
-->
<Dialog Name="LaTeXFolder" Title="$(EnterLaTeXHeader1)" Subtitle="$(EnterLaTeXHeader2)">
<Label Name="Label1" Location="0, 0" Size="450, 100" Text="$1" TabIndex="0" />
<CheckBox Name="CheckBox1" Location="25, 170" Size="240, 25" Text="$(DontUseLaTeX)" TabIndex="1" />
<GroupBox Name="GroupBox1" Location="0, 105" Size="450, 50" Text="$(PathName)" TabIndex="2">
<DirRequest Name="DirRequest1" Location="25, 20" Size="400, 20" Text="$0" TabIndex="0" />
</GroupBox>
</Dialog>

View File

@ -0,0 +1,69 @@
; =========================================================
; This file was generated by NSISDialogDesigner 1.5.0.0
; https://coolsoft.altervista.org/nsisdialogdesigner
;
; Do not edit it manually, use NSISDialogDesigner instead!
; =========================================================
; handle variables
Var hCtl_LaTeXFolder
Var hCtl_LaTeXFolder_Label1
Var hCtl_LaTeXFolder_CheckBox1
Var hCtl_LaTeXFolder_GroupBox1
Var hCtl_LaTeXFolder_DirRequest1_Txt
Var hCtl_LaTeXFolder_DirRequest1_Btn
; dialog create function
Function fnc_LaTeXFolder_Create
; === LaTeXFolder (type: Dialog) ===
nsDialogs::Create 1018
Pop $hCtl_LaTeXFolder
${If} $hCtl_LaTeXFolder == error
Abort
${EndIf}
!insertmacro MUI_HEADER_TEXT "$(EnterLaTeXHeader1)" "$(EnterLaTeXHeader2)"
; === Label1 (type: Label) ===
${NSD_CreateLabel} 0u 0u 296u 62u "$1"
Pop $hCtl_LaTeXFolder_Label1
; === CheckBox1 (type: Checkbox) ===
${NSD_CreateCheckbox} 16u 105u 158u 15u "$(DontUseLaTeX)"
Pop $hCtl_LaTeXFolder_CheckBox1
; === GroupBox1 (type: GroupBox) ===
${NSD_CreateGroupBox} 0u 65u 296u 31u "$(PathName)"
Pop $hCtl_LaTeXFolder_GroupBox1
; === DirRequest1_Txt (type: Text) ===
${NSD_CreateText} 16u 77u 242u 12u "$0"
Pop $hCtl_LaTeXFolder_DirRequest1_Txt
; === DirRequest1_Btn (type: Button) ===
${NSD_CreateButton} 260u 77u 20u 12u "..."
Pop $hCtl_LaTeXFolder_DirRequest1_Btn
${NSD_OnClick} $hCtl_LaTeXFolder_DirRequest1_Btn fnc_hCtl_LaTeXFolder_DirRequest1_Click
FunctionEnd
; dialog show function
Function fnc_LaTeXFolder_Show
Call fnc_LaTeXFolder_Create
nsDialogs::Show
FunctionEnd
; onClick handler for DirRequest Button $hCtl_LaTeXFolder_DirRequest1_Btn
Function fnc_hCtl_LaTeXFolder_DirRequest1_Click
Pop $R0
${If} $R0 == $hCtl_LaTeXFolder_DirRequest1_Btn
${NSD_GetText} $hCtl_LaTeXFolder_DirRequest1_Txt $R0
nsDialogs::SelectFolderDialog /NOUNLOAD "" "$R0"
Pop $R0
${If} "$R0" != "error"
${NSD_SetText} $hCtl_LaTeXFolder_DirRequest1_Txt "$R0"
${EndIf}
${EndIf}
FunctionEnd

View File

@ -0,0 +1,870 @@
# ================
# Helper Functions
# ================
# Forward Declarations
!macro DownloadHunspell langCode
Push "${langCode}.aff"
Call DownloadHunspell
Push "${langCode}.dic"
Call DownloadHunspell
!macroend
!define DownloadHunspell "!insertmacro DownloadHunspell"
!macro DownloadThesaurus langCode
Push "th_${langCode}_v2.dat"
Call DownloadThesaurus
Push "th_${langCode}_v2.idx"
Call DownloadThesaurus
!macroend
!define DownloadThesaurus "!insertmacro DownloadThesaurus"
!macro CheckHunspell sectionIdx langCode
Push ${sectionIdx}
Push ${langCode}
Call CheckHunspell
!macroend
!define CheckHunspell "!insertmacro CheckHunspell"
!macro CheckThesaurus sectionIdx langCode
Push ${sectionIdx}
Push ${langCode}
Call CheckThesaurus
!macroend
!define CheckThesaurus "!insertmacro CheckThesaurus"
# Functions
Function DownloadHunspell
Exch $R9 # "${langCode}.aff" / "${langCode}.dic"
Push $9
Push $R3 # FIXME remove
${IfNot} ${FileExists} "$INSTDIR\Resources\dicts\$R9"
inetc::get /TIMEOUT=5000 "https://www.lyx.org/trac/export/HEAD/lyxsvn/dictionaries/trunk/dicts/$R9" "$INSTDIR\Resources\dicts\$R9" /END
Pop $9
${If} $9 != "OK"
StrCpy $R3 $R9 # FIXME remove
MessageBox MB_OK|MB_ICONEXCLAMATION "$(HunspellFailed)" # $(HunspellFailed) uses $R9
${EndIf}
${EndIf}
Pop $R3 # FIXME remove
Pop $9
Pop $R9
FunctionEnd
Function DownloadThesaurus
Exch $R9 # "th_${langCode}_v2.dat" / "th_${langCode}_v2.idx"
Push $9
Push $R3 # FIXME remove
${IfNot} ${FileExists} "$INSTDIR\Resources\thes\$R9"
inetc::get /TIMEOUT=5000 "https://www.lyx.org/trac/export/HEAD/lyxsvn/dictionaries/trunk/thes/$R9" "$INSTDIR\Resources\thes\$R9" /END
Pop $9
${If} $9 != "OK"
StrCpy $R3 $R9 # FIXME remove
MessageBox MB_OK|MB_ICONEXCLAMATION "$(ThesaurusFailed)" # $(ThesaurusFailed) uses $R9
${EndIf}
${EndIf}
Push $R3 # FIXME remove
Pop $9
Pop $R9
FunctionEnd
Function CheckHunspell
Exch $9 # ${langCode}
Exch
Exch $8 # ${sectionIdx}
${If} ${FileExists} "$INSTDIR\Resources\dicts\$9.aff"
${OrIf} ${FileExists} "$INSTDIR\Resources\dicts\$9.dic"
IntOp $9 ${SF_SELECTED} | ${SF_RO}
SectionSetFlags $8 $9
SectionSetSize $8 0
${EndIf}
Pop $8
Pop $9
FunctionEnd
Function CheckThesaurus
Exch $9 # ${langCode}
Exch
Exch $8 # ${sectionIdx}
${If} ${FileExists} "$INSTDIR\Resources\thes\th_$9_v2.dat"
${OrIf} ${FileExists} "$INSTDIR\Resources\thes\th_$9_v2.idx"
IntOp $9 ${SF_SELECTED} | ${SF_RO}
SectionSetFlags $8 $9
SectionSetSize $8 0
${EndIf}
Pop $8
Pop $9
FunctionEnd
# ========
# Sections
# ========
# Expand the list of dictionaries by default as this was requested by several
# users. For the thesaurus this is was not requested because this section
# is by default empty.
SectionGroup /e "$(SecDictionaries)" SecDictionaries
Section /o "Afrikaans" SecDAfrikaans
${DownloadHunspell} "af_ZA"
AddSize 1483
SectionEnd
Section /o "العربية" SecDArabic
${DownloadHunspell} "ar_SA"
AddSize 34951
SectionEnd
Section /o "հայերեն" SecDArmenian
${DownloadHunspell} "hy_AM"
AddSize 2060
SectionEnd
Section /o "Bahasa Indonesia" SecDIndonesian
${DownloadHunspell} "id_ID"
AddSize 323
SectionEnd
Section /o "Bahasa Melayu" SecDMalayan
${DownloadHunspell} "ms_MY"
AddSize 228
SectionEnd
Section /o "беларускі" SecDBelarusian
${DownloadHunspell} "be_BY"
AddSize 1692
SectionEnd
Section /o "Bosanski" SecDBosnian
${DownloadHunspell} "bs_BA"
AddSize 350
SectionEnd
Section /o "Brezhoneg" SecDBreton
${DownloadHunspell} "br_FR"
AddSize 5427
SectionEnd
Section /o "български" SecDBulgarian
${DownloadHunspell} "bg_BG"
AddSize 1587
SectionEnd
Section /o "Català" SecDCatalanian
${DownloadHunspell} "ca_ES"
AddSize 2005
SectionEnd
Section /o "Ceština" SecDCzech
${DownloadHunspell} "cs_CZ"
AddSize 2254
SectionEnd
Section /o "Coptic" SecDCoptic # Native name displayed not correctly in the installer for a strange reason
${DownloadHunspell} "cop_EG"
AddSize 151
SectionEnd
Section /o "Cymraeg" SecDWelsh
${DownloadHunspell} "cy_GB"
AddSize 1578
SectionEnd
Section /o "Dansk" SecDDanish
${DownloadHunspell} "da_DK"
AddSize 2895
SectionEnd
Section /o "Deutsch (alt)" SecDGermanAlt
${DownloadHunspell} "de-alt"
AddSize 2572
SectionEnd
Section /o "Deutsch (A)" SecDGermanAT
${DownloadHunspell} "de_AT"
AddSize 4277
SectionEnd
Section /o "Deutsch (CH)" SecDGermanCH
${DownloadHunspell} "de_CH"
AddSize 4276
SectionEnd
Section "Deutsch (D)" SecDGermanD
# already installed by default
SectionIn RO
#${DownloadHunspell} "de_DE"
AddSize 4274
SectionEnd
Section /o "Ελληνικά" SecDGreek
${DownloadHunspell} "el_GR"
AddSize 17865
SectionEnd
Section /o "Eesti" SecDEstonian
${DownloadHunspell} "et_EE"
AddSize 4513
SectionEnd
Section /o "English (AU)" SecDEnglishAU
${DownloadHunspell} "en_AU"
AddSize 542
SectionEnd
Section /o "English (CA)" SecDEnglishCA
${DownloadHunspell} "en_CA"
AddSize 540
SectionEnd
Section "English (GB)" SecDEnglishGB
# already installed by default
SectionIn RO
#${DownloadHunspell} "en_GB"
AddSize 801
SectionEnd
Section /o "English (NZ)" SecDEnglishNZ
${DownloadHunspell} "en_NZ"
AddSize 801
SectionEnd
Section "English (US)" SecDEnglishUS
# already installed by default
SectionIn RO
#${DownloadHunspell} "en_US"
AddSize 538
SectionEnd
Section "Español (ES)" SecDSpanishES
# already installed by default
SectionIn RO
#${DownloadHunspell} "es_ES"
AddSize 938
SectionEnd
Section "Español (MX)" SecDSpanishMX
# already installed by default
SectionIn RO
#${DownloadHunspell} "es_MX"
AddSize 938
SectionEnd
Section /o "Esperanto" SecDEsperanto
${DownloadHunspell} "eo_EO"
AddSize 390
SectionEnd
Section /o "Euskara" SecDBasque
${DownloadHunspell} "eu_ES"
AddSize 4970
SectionEnd
Section /o "فارسی" SecDFarsi
${DownloadHunspell} "fa_IR"
AddSize 6879
SectionEnd
/* Language not supported by LyX
Section /o "Føroyskt" SecDFaroese
${DownloadHunspell} "fo_FO"
AddSize 1449
SectionEnd */
Section "Français" SecDFrench
# already installed by default
SectionIn RO
#${DownloadHunspell} "fr_FR"
AddSize 1314
SectionEnd
Section /o "Français (Canada)" SecDFrenchCanada
${DownloadHunspell} "fr_CA"
AddSize 1314
SectionEnd
Section /o "Furlan" SecDFriulian
${DownloadHunspell} "fur_IT"
AddSize 381
SectionEnd
Section /o "Gaeilge" SecDIrish
${DownloadHunspell} "ga_IE"
AddSize 1330
SectionEnd
Section /o "Gàidhlig" SecDScottish
${DownloadHunspell} "gd_GB"
AddSize 4704
SectionEnd
Section /o "Galego" SecDGalician
${DownloadHunspell} "gl_ES"
AddSize 3222
SectionEnd
Section /o "Hrvatski" SecDCroatian
${DownloadHunspell} "hr_HR"
AddSize 809
SectionEnd
Section /o "हिंदी" SecDHindi
${DownloadHunspell} "hi_IN"
AddSize 298
SectionEnd
Section /o "Interlingua" SecDInterlingua
${DownloadHunspell} "ia_IA"
AddSize 599
SectionEnd
Section /o "Íslenska" SecDIcelandic
${DownloadHunspell} "is_IS"
AddSize 2700
SectionEnd
Section /o "Italiano" SecDItalian
${DownloadHunspell} "it_IT"
AddSize 1340
SectionEnd
Section /o "עִברִית" SecDHebrew
${DownloadHunspell} "he_IL"
AddSize 7698
SectionEnd
/* dicts missing
Section /o "ქართული" SecDGeorgian
${DownloadHunspell} "ka_GE"
AddSize 3952
SectionEnd */
Section /o "Қазақша" SecDKazakh
${DownloadHunspell} "kk_KZ"
AddSize 2182
SectionEnd
Section /o "ភាសាខ្មែរ" SecDKhmer
${DownloadHunspell} "km_KH"
AddSize 2093
SectionEnd
Section /o "한국어" SecDKorean
${DownloadHunspell} "ko_KR"
AddSize 15586
SectionEnd
/* Language not supported by LyX
Section "Kreyòl Ayisyen" SecDHaitianCreole
${DownloadHunspell} "ht_HT"
AddSize 118
SectionEnd */
Section /o "kurdî" SecDKurdishL
${DownloadHunspell} "kmr"
AddSize 48
SectionEnd
/* Language not supported by LyX
Section /o "kurdо" SecDKurdishT
${DownloadHunspell} "ku_TR"
AddSize 47
SectionEnd */
Section /o "Latina" SecDLatin
${DownloadHunspell} "la_LA"
AddSize 1291
SectionEnd
Section /o "Lietuvių" SecDLithuanian
${DownloadHunspell} "lt_LT"
AddSize 1151
SectionEnd
Section /o "Latviešu" SecDLatvian
${DownloadHunspell} "lv_LV"
AddSize 2243
SectionEnd
Section /o "Mакедонски" SecDMacedonian
${DownloadHunspell} "mk_MK"
AddSize 2862
SectionEnd
Section /o "Magyar" SecDHungarian
${DownloadHunspell} "hu_HU"
AddSize 3672
SectionEnd
Section /o "मराठी" SecDMarathi
${DownloadHunspell} "mr_IN"
AddSize 5291
SectionEnd
Section /o "Nederlands" SecDDutch
${DownloadHunspell} "nl_NL"
AddSize 2393
SectionEnd
Section /o "Norsk (Bokmål)" SecDNorwegianNB
${DownloadHunspell} "nb_NO"
AddSize 3992
SectionEnd
Section /o "Norsk (Nynorsk)" SecDNorwegianNN
${DownloadHunspell} "nn_NO"
AddSize 2982
SectionEnd
Section /o "Occitan" SecDOccitan
${DownloadHunspell} "oc_FR"
AddSize 684
SectionEnd
Section /o "ພາສາລາວ" SecDLao
${DownloadHunspell} "lo_LA"
AddSize 200
SectionEnd
Section /o "Polski" SecDPolish
${DownloadHunspell} "pl_PL"
AddSize 4675
SectionEnd
Section /o "Português (BR)" SecDPortugueseBR
${DownloadHunspell} "pt_BR"
AddSize 5510
SectionEnd
Section /o "Português (PT)" SecDPortuguesePT
${DownloadHunspell} "pt_PT"
AddSize 1532
SectionEnd
Section /o "Româna" SecDRomanian
${DownloadHunspell} "ro_RO"
AddSize 2199
SectionEnd
Section /o "Русский" SecDRussian
${DownloadHunspell} "ru_RU"
AddSize 1976
SectionEnd
Section /o "serbšćina (Dolno)" SecDSorbianD
${DownloadHunspell} "dsb_DE"
AddSize 906
SectionEnd
Section /o "serbšćina (Horno)" SecDSorbianH
${DownloadHunspell} "hsb_DE"
AddSize 741
SectionEnd
Section /o "Shqip" SecDAlbanian
${DownloadHunspell} "sq_AL"
AddSize 2553
SectionEnd
Section /o "Slovenščina" SecDSlovenian
${DownloadHunspell} "sl_SI"
AddSize 2914
SectionEnd
Section /o "Slovenčina" SecDSlovakian
${DownloadHunspell} "sk_SK"
AddSize 3311
SectionEnd
Section /o "Српски (Ћирилица)" SecDSerbianC
${DownloadHunspell} "sr_RS"
AddSize 3559
SectionEnd
Section /o "Srpski (Latinica)" SecDSerbianL
${DownloadHunspell} "sr_RS-Latin"
AddSize 1997
SectionEnd
Section /o "Svenska" SecDSwedish
${DownloadHunspell} "sv_SE"
AddSize 2287
SectionEnd
Section /o "தமிழ்" SecDTamil
${DownloadHunspell} "ta_IN"
AddSize 5809
SectionEnd
Section /o "తెలుగు" SecDTelugu
${DownloadHunspell} "te_IN"
AddSize 3324
SectionEnd
Section /o "ไทย" SecDThai
${DownloadHunspell} "th_TH"
AddSize 342
SectionEnd
Section /o "དབུས་སྐད་" SecDTibetan
${DownloadHunspell} "bo_CN"
AddSize 7
SectionEnd
Section /o "Tiếng Việt" SecDVietnamese
${DownloadHunspell} "vi_VN"
AddSize 40
SectionEnd
Section /o "Türkmençe" SecDTurkmen
${DownloadHunspell} "tk_TM"
AddSize 928
SectionEnd
Section /o "Türkçe" SecDTurkish
${DownloadHunspell} "tr_TR"
AddSize 9140
SectionEnd
Section /o "Українська" SecDUkrainian
${DownloadHunspell} "uk_UA"
AddSize 2680
SectionEnd
Section /o "اردو" SecDUrdu
${DownloadHunspell} "ur_PK"
AddSize 1379
SectionEnd
SectionGroupEnd
SectionGroup "$(SecThesaurus)" SecThesaurus
Section /o "العربية" SecTArabic
${DownloadThesaurus} "ar_SA"
AddSize 761
SectionEnd
Section /o "Bahasa Indonesia" SecTIndonesian
${DownloadThesaurus} "id_ID"
AddSize 2043
SectionEnd
Section /o "български" SecTBulgarian
${DownloadThesaurus} "bg_BG"
AddSize 5313
SectionEnd
Section /o "Català" SecTCatalanian
${DownloadThesaurus} "ca_ES"
AddSize 733
SectionEnd
Section /o "Ceština" SecTCzech
${DownloadThesaurus} "cs_CZ"
AddSize 4723
SectionEnd
Section /o "Dansk" SecTDanish
${DownloadThesaurus} "da_DK"
AddSize 4228
SectionEnd
Section /o "Deutsch (A)" SecTGermanAT
${DownloadThesaurus} "de_AT"
AddSize 33721
SectionEnd
Section /o "Deutsch (CH)" SecTGermanCH
${DownloadThesaurus} "de_CH"
AddSize 33721
SectionEnd
Section /o "Deutsch (D/A)" SecTGermanD
${DownloadThesaurus} "de_DE"
AddSize 33721
SectionEnd
Section /o "Ελληνικά" SecTGreek
${DownloadThesaurus} "el_GR"
AddSize 1795
SectionEnd
Section /o "English (AU)" SecTEnglishAU
${DownloadThesaurus} "en_AU"
AddSize 21093
SectionEnd
Section /o "English (CA)" SecTEnglishCA
${DownloadThesaurus} "en_CA"
AddSize 21093
SectionEnd
Section /o "English (GB)" SecTEnglishGB
${DownloadThesaurus} "en_GB"
AddSize 21093
SectionEnd
Section /o "English (NZ)" SecTEnglishNZ
${DownloadThesaurus} "en_NZ"
AddSize 21093
SectionEnd
Section /o "English (US)" SecTEnglishUS
${DownloadThesaurus} "en_US"
AddSize 21093
SectionEnd
Section /o "Español" SecTSpanishES
${DownloadThesaurus} "es_ES"
AddSize 3172
SectionEnd
Section /o "Español (MX)" SecTSpanishMX
${DownloadThesaurus} "es_MX"
AddSize 3172
SectionEnd
Section /o "Français" SecTFrench
${DownloadThesaurus} "fr_FR"
AddSize 5192
SectionEnd
Section /o "Français (Canada)" SecTFrenchCanada
${DownloadThesaurus} "fr_CA"
AddSize 5192
SectionEnd
Section /o "Gaeilge" SecTIrish
${DownloadThesaurus} "ga_IE"
AddSize 35989
SectionEnd
Section /o "Galego" SecTGalician
${DownloadThesaurus} "gl_ES"
AddSize 499
SectionEnd
Section /o "Íslenska" SecTIcelandic
${DownloadThesaurus} "is_IS"
AddSize 170
SectionEnd
Section /o "Italiano" SecTItalian
${DownloadThesaurus} "it_IT"
AddSize 2521
SectionEnd
Section /o "Latviešu" SecTLatvian
${DownloadThesaurus} "lv_LV"
AddSize 2
SectionEnd
Section /o "Magyar" SecTHungarian
${DownloadThesaurus} "hu_HU"
AddSize 2473
SectionEnd
Section /o "Nederlands" SecTDutch
${DownloadThesaurus} "nl_NL"
AddSize 6641
SectionEnd
/* Language not supported by LyX
Section /o "नेपाली" SecTNepali
${DownloadThesaurus} "ne_NP"
AddSize 967
SectionEnd */
Section /o "Norsk (Bokmål)" SecTNorwegianNB
${DownloadThesaurus} "nb_NO"
AddSize 2535
SectionEnd
Section /o "Norsk (Nynorsk)" SecTNorwegianNN
${DownloadThesaurus} "nn_NO"
AddSize 2
SectionEnd
Section /o "Polski" SecTPolish
${DownloadThesaurus} "pl_PL"
AddSize 3088
SectionEnd
Section /o "Português" SecTPortuguesePT
${DownloadThesaurus} "pt_PT"
AddSize 3858
SectionEnd
Section /o "Româna" SecTRomanian
${DownloadThesaurus} "ro_RO"
AddSize 3647
SectionEnd
Section /o "Русский" SecTRussian
${DownloadThesaurus} "ru_RU"
AddSize 2142
SectionEnd
Section /o "Slovenšcina" SecTSlovenian
${DownloadThesaurus} "sl_SI"
AddSize 1257
SectionEnd
Section /o "Slovenčina" SecTSlovakian
${DownloadThesaurus} "sk_SK"
AddSize 928
SectionEnd
Section /o "Svenska" SecTSwedish
${DownloadThesaurus} "sv_SE"
AddSize 737
SectionEnd
Section /o "Українська" SecTUkrainian
${DownloadThesaurus} "uk_UA"
AddSize 1309
SectionEnd
SectionGroupEnd
# Custom function, called before entering the components page, when over-installing
# checks the directory for already existent dictionaries and marks the corresponding sections above
Function CheckDictionaries
# FIXME check if installing over existent LyX
# Check Hunspell dictionaries
${CheckHunspell} ${SecDAfrikaans} "af_ZA"
${CheckHunspell} ${SecDArabic} "ar_SA"
${CheckHunspell} ${SecDArmenian} "hy_AM"
${CheckHunspell} ${SecDIndonesian} "id_ID"
${CheckHunspell} ${SecDMalayan} "ms_MY"
${CheckHunspell} ${SecDBelarusian} "be_BY"
${CheckHunspell} ${SecDBosnian} "bs_BA"
${CheckHunspell} ${SecDBreton} "br_FR"
${CheckHunspell} ${SecDBulgarian} "bg_BG"
${CheckHunspell} ${SecDCatalanian} "ca_ES"
${CheckHunspell} ${SecDCzech} "cs_CZ"
${CheckHunspell} ${SecDCoptic} "cop_EG"
${CheckHunspell} ${SecDWelsh} "cy_GB"
${CheckHunspell} ${SecDDanish} "da_DK"
${CheckHunspell} ${SecDGermanAlt} "de-alt"
${CheckHunspell} ${SecDGermanAT} "de_AT"
${CheckHunspell} ${SecDGermanCH} "de_CH"
#${CheckHunspell} ${SecDGermanD} "de_DE" # Enabled by default
${CheckHunspell} ${SecDGreek} "el_GR"
${CheckHunspell} ${SecDEstonian} "et_EE"
${CheckHunspell} ${SecDEnglishAU} "en_AU"
${CheckHunspell} ${SecDEnglishCA} "en_CA"
#${CheckHunspell} ${SecDEnglishGB} "en_GB" # Enabled by default
${CheckHunspell} ${SecDEnglishNZ} "en_NZ"
#${CheckHunspell} ${SecDEnglishUS} "en_US" # Enabled by default
#${CheckHunspell} ${SecDSpanishES} "es_ES" # Enabled by default
#${CheckHunspell} ${SecDSpanishMX} "es_MX" # Enabled by default
${CheckHunspell} ${SecDEsperanto} "eo_EO"
${CheckHunspell} ${SecDBasque} "eu_ES"
${CheckHunspell} ${SecDFarsi} "fa_IR"
#${CheckHunspell} ${SecDFaroese} "fo_FO" # Not supported
#${CheckHunspell} ${SecDFrench} "fr_FR" # Enabled by default
${CheckHunspell} ${SecDFrenchCanada} "fr_CA"
${CheckHunspell} ${SecDFriulian} "fur_IT"
${CheckHunspell} ${SecDIrish} "ga_IE"
${CheckHunspell} ${SecDScottish} "gd_GB"
${CheckHunspell} ${SecDGalician} "gl_ES"
${CheckHunspell} ${SecDCroatian} "hr_HR"
${CheckHunspell} ${SecDHindi} "hi_IN"
${CheckHunspell} ${SecDInterlingua} "ia_IA"
${CheckHunspell} ${SecDIcelandic} "is_IS"
${CheckHunspell} ${SecDItalian} "it_IT"
${CheckHunspell} ${SecDHebrew} "he_IL"
#${CheckHunspell} ${SecDGeorgian} "ka_GE" # Missing
${CheckHunspell} ${SecDKazakh} "kk_KZ"
${CheckHunspell} ${SecDKhmer} "km_KH"
${CheckHunspell} ${SecDKorean} "ko_KR"
#${CheckHunspell} ${SecDHaitianCreole} "ht_HT" # Not supported
${CheckHunspell} ${SecDKurdishL} "kmr"
#${CheckHunspell} ${SecDKurdishT} "ku_TR" # Not supported
${CheckHunspell} ${SecDLatin} "la_LA"
${CheckHunspell} ${SecDLithuanian} "lt_LT"
${CheckHunspell} ${SecDLatvian} "lv_LV"
${CheckHunspell} ${SecDMacedonian} "mk_MK"
${CheckHunspell} ${SecDHungarian} "hu_HU"
${CheckHunspell} ${SecDMarathi} "mr_IN"
${CheckHunspell} ${SecDDutch} "nl_NL"
${CheckHunspell} ${SecDNorwegianNB} "nb_NO"
${CheckHunspell} ${SecDNorwegianNN} "nn_NO"
${CheckHunspell} ${SecDOccitan} "oc_FR"
${CheckHunspell} ${SecDLao} "lo_LA"
${CheckHunspell} ${SecDPolish} "pl_PL"
${CheckHunspell} ${SecDPortugueseBR} "pt_BR"
${CheckHunspell} ${SecDPortuguesePT} "pt_PT"
${CheckHunspell} ${SecDRomanian} "ro_RO"
${CheckHunspell} ${SecDRussian} "ru_RU"
${CheckHunspell} ${SecDSorbianD} "dsb_DE"
${CheckHunspell} ${SecDSorbianH} "hsb_DE"
${CheckHunspell} ${SecDAlbanian} "sq_AL"
${CheckHunspell} ${SecDSlovenian} "sl_SI"
${CheckHunspell} ${SecDSlovakian} "sk_SK"
${CheckHunspell} ${SecDSerbianC} "sr_RS"
${CheckHunspell} ${SecDSerbianL} "sr_RS-Latin"
${CheckHunspell} ${SecDSwedish} "sv_SE"
${CheckHunspell} ${SecDTamil} "ta_IN"
${CheckHunspell} ${SecDTelugu} "te_IN"
${CheckHunspell} ${SecDThai} "th_TH"
${CheckHunspell} ${SecDTibetan} "bo_CN"
${CheckHunspell} ${SecDVietnamese} "vi_VN"
${CheckHunspell} ${SecDTurkmen} "tk_TM"
${CheckHunspell} ${SecDTurkish} "tr_TR"
${CheckHunspell} ${SecDUkrainian} "uk_UA"
${CheckHunspell} ${SecDUrdu} "ur_PK"
# Chech Thesaurus dictionaries
${CheckThesaurus} ${SecTArabic} "ar_SA"
${CheckThesaurus} ${SecTIndonesian} "id_ID"
${CheckThesaurus} ${SecTBulgarian} "bg_BG"
${CheckThesaurus} ${SecTCatalanian} "ca_ES"
${CheckThesaurus} ${SecTCzech} "cs_CZ"
${CheckThesaurus} ${SecTDanish} "da_DK"
${CheckThesaurus} ${SecTGermanAT} "de_AT"
${CheckThesaurus} ${SecTGermanCH} "de_CH"
${CheckThesaurus} ${SecTGermanD} "de_DE"
${CheckThesaurus} ${SecTGreek} "el_GR"
${CheckThesaurus} ${SecTEnglishAU} "en_AU"
${CheckThesaurus} ${SecTEnglishCA} "en_CA"
${CheckThesaurus} ${SecTEnglishGB} "en_GB"
${CheckThesaurus} ${SecTEnglishNZ} "en_NZ"
${CheckThesaurus} ${SecTEnglishUS} "en_US"
${CheckThesaurus} ${SecTSpanishES} "es_ES"
${CheckThesaurus} ${SecTSpanishMX} "es_MX"
${CheckThesaurus} ${SecTFrench} "fr_FR"
${CheckThesaurus} ${SecTFrenchCanada} "fr_CA"
${CheckThesaurus} ${SecTIrish} "ga_IE"
${CheckThesaurus} ${SecTGalician} "gl_ES"
${CheckThesaurus} ${SecTIcelandic} "is_IS"
${CheckThesaurus} ${SecTItalian} "it_IT"
${CheckThesaurus} ${SecTLatvian} "lv_LV"
${CheckThesaurus} ${SecTHungarian} "hu_HU"
${CheckThesaurus} ${SecTDutch} "nl_NL"
#${CheckThesaurus} ${SecTNepali} "ne_NP" # not supported
${CheckThesaurus} ${SecTNorwegianNB} "nb_NO"
${CheckThesaurus} ${SecTNorwegianNN} "nn_NO"
${CheckThesaurus} ${SecTPolish} "pl_PL"
${CheckThesaurus} ${SecTPortuguesePT} "pt_PT"
${CheckThesaurus} ${SecTRomanian} "ro_RO"
${CheckThesaurus} ${SecTRussian} "ru_RU"
${CheckThesaurus} ${SecTSlovenian} "sl_SI"
${CheckThesaurus} ${SecTSlovakian} "sk_SK"
${CheckThesaurus} ${SecTSwedish} "sv_SE"
${CheckThesaurus} ${SecTUkrainian} "uk_UA"
FunctionEnd

View File

@ -0,0 +1,33 @@
!macro LANG LANG_NAME
# NSIS language file
!insertmacro MUI_LANGUAGE "${LANG_NAME}"
# LyX language file
!insertmacro LANGFILE_INCLUDE_WITHDEFAULT "..\installer\lang\${LANG_NAME}.nsh" "..\installer\lang\english.nsh" # FIXME path
!macroend
# list of all languages the installers are translated to
!insertmacro LANG "english" # first language is the default
!insertmacro LANG "arabic"
!insertmacro LANG "basque"
!insertmacro LANG "catalan"
!insertmacro LANG "czech"
!insertmacro LANG "danish"
!insertmacro LANG "dutch"
!insertmacro LANG "french"
!insertmacro LANG "german"
!insertmacro LANG "galician"
!insertmacro LANG "hungarian"
!insertmacro LANG "indonesian"
!insertmacro LANG "italian"
!insertmacro LANG "japanese"
!insertmacro LANG "norwegian"
!insertmacro LANG "polish"
!insertmacro LANG "portuguese"
!insertmacro LANG "portugueseBR"
!insertmacro LANG "romanian"
!insertmacro LANG "russian"
!insertmacro LANG "slovak"
!insertmacro LANG "spanish"
!insertmacro LANG "swedish"
!insertmacro LANG "turkish"
!insertmacro LANG "ukrainian"

File diff suppressed because it is too large Load Diff