]> git.lyx.org Git - features.git/blobdiff - development/Win32/packaging/installer/include/init.nsh
Win installer: updates and fixes
[features.git] / development / Win32 / packaging / installer / include / init.nsh
index 11415db27ca438c3b138b939c40ffc196f685032..59370d49b4a3b1ccd1d92235009ee6ef43df70e6 100644 (file)
@@ -1,4 +1,4 @@
-/*
+/*
 init.nsh
 
 Initialization functions
@@ -14,7 +14,7 @@ Var LyXLangName
 !macro EXTERNAL_INIT COMPONENT
 
   # APP_REGKEY_SETUP = "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"
-  # where ${APP_NAME}${APP_SERIES_KEY} is something like LyX16
+  # where ${APP_NAME}${APP_SERIES_KEY} is something like LyX22
   ReadRegStr $ComponentPath SHELL_CONTEXT "${APP_REGKEY_SETUP}" "${COMPONENT} Path"
   
   # BIN_LATEX etc are defined in settings.nsh
@@ -44,44 +44,30 @@ FunctionEnd
 #--------------------------------
 # visible installer sections
 
-Section "!${APP_NAME}" SecCore
- SectionIn RO
-SectionEnd
-
-# FIXME: set this to true when LyX 2.2.0 final is released
 Section "$(SecFileAssocTitle)" SecFileAssoc
- SectionIn RO
- StrCpy $CreateFileAssociations "false" 
+ StrCpy $CreateFileAssociations "true" 
 SectionEnd
 
 Section "$(SecDesktopTitle)" SecDesktop
- SectionIn RO
- StrCpy $CreateDesktopIcon "false"
+ StrCpy $CreateDesktopIcon "true"
 SectionEnd
 
-!if ${SETUPTYPE} == BUNDLE
- Section /o "$(SecInstJabRefTitle)" SecInstJabRef
-  AddSize ${SIZE_JABREF}
-  StrCpy $InstallJabRef "true"
- SectionEnd
-!endif
-
 # 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 "Dictionaries" SecDictionaries
+SectionGroup /e "$(SecDictionaries)" SecDictionaries
 
 Section /o "Afrikaans" SecDAfrikaans
  StrCpy $DictCodes "af_ZA,$DictCodes"
  AddSize 1440
 SectionEnd
 
-Section /o "Arabic" SecDArabic
- StrCpy $DictCodes "ar_DZ,$DictCodes"
- AddSize 2500
+Section /o "العربية" SecDArabic
+ StrCpy $DictCodes "ar_SA,$DictCodes"
+ AddSize 7304
 SectionEnd
 
-Section /o "Armenian" SecDArmenian
+Section /o "հայերեն" SecDArmenian
  StrCpy $DictCodes "hy_AM,$DictCodes"
  AddSize 2000
 SectionEnd
@@ -96,27 +82,27 @@ Section /o "Bahasa Melayu" SecDMalayan
  AddSize 227
 SectionEnd
 
-Section /o "Belarusian" SecDBelarusian 
+Section /o "беларускі" SecDBelarusian 
  StrCpy $DictCodes "be_BY,$DictCodes"
  AddSize 1730
 SectionEnd
 
 Section /o "Brezhoneg" SecDBreton 
  StrCpy $DictCodes "br_FR,$DictCodes"
- AddSize 5510
+ AddSize 5556
 SectionEnd
 
-Section /o "Bulgarian" SecDBulgarian
+Section /o "български" SecDBulgarian
  StrCpy $DictCodes "bg_BG,$DictCodes"
  AddSize 985
 SectionEnd
 
-Section /o "Català" SecDCatalanian
+Section /o "Català" SecDCatalanian
  StrCpy $DictCodes "ca_ES,$DictCodes"
  AddSize 1210
 SectionEnd
 
-Section /o "Ce\9atina" SecDCzech
+Section /o "Ceština" SecDCzech
  StrCpy $DictCodes "cs_CZ,$DictCodes"
  AddSize 2190
 SectionEnd
@@ -136,24 +122,24 @@ Section /o "Dansk" SecDDanish
  AddSize 2470
 SectionEnd
 
-Section /o "German (A)" SecDGermanAT
+Section /o "Deutsch (A)" SecDGermanAT
  StrCpy $DictCodes "de_AT,$DictCodes"
  AddSize 3620
 SectionEnd
 
-Section /o "German (CH)" SecDGermanCH
+Section /o "Deutsch (CH)" SecDGermanCH
  StrCpy $DictCodes "de_CH,$DictCodes"
  AddSize 3620
 SectionEnd
 
-Section "German (D)" SecDGermanD
+Section "Deutsch (D)" SecDGermanD
  # already installed by default
  SectionIn RO
  #StrCpy $DictCodes "de_DE,$DictCodes"
  AddSize 3620
 SectionEnd
 
-Section /o "Greek" SecDGreek
+Section /o "Ελληνικά" SecDGreek
  StrCpy $DictCodes "el_GR,$DictCodes"
  AddSize 6550
 SectionEnd
@@ -165,19 +151,19 @@ SectionEnd
 
 Section /o "English (AU)" SecDEnglishAU
  StrCpy $DictCodes "en_AU,$DictCodes"
- AddSize 587
+ AddSize 557
 SectionEnd
 
 Section /o "English (CA)" SecDEnglishCA
  StrCpy $DictCodes "en_CA,$DictCodes"
- AddSize 531
+ AddSize 557
 SectionEnd
 
 Section "English (GB)" SecDEnglishGB
  # already installed by default
  SectionIn RO
  #StrCpy $DictCodes "en_GB,$DictCodes"
- AddSize 652
+ AddSize 1044
 SectionEnd
 
 Section /o "English (NZ)" SecDEnglishNZ
@@ -189,17 +175,17 @@ Section "English (US)" SecDEnglishUS
  # already installed by default
  SectionIn RO
  #StrCpy $DictCodes "en_US,$DictCodes"
- AddSize 530
+ AddSize 551
 SectionEnd
 
-Section "Español (ES)" SecDSpanishES
+Section "Español (ES)" SecDSpanishES
  # already installed by default
  SectionIn RO
  #StrCpy $DictCodes "es_ES,$DictCodes"
  AddSize 974
 SectionEnd
 
-Section "Español (MX)" SecDSpanishMX
+Section "Español (MX)" SecDSpanishMX
  # already installed by default
  SectionIn RO
  #StrCpy $DictCodes "es_MX,$DictCodes"
@@ -216,19 +202,19 @@ Section /o "Euskara" SecDBasque
  AddSize 4850
 SectionEnd
 
-Section /o "Farsi" SecDFarsi
+Section /o "فارسی" SecDFarsi
  StrCpy $DictCodes "fa_IR,$DictCodes"
  AddSize 6710
 SectionEnd
 
-Section "Français" SecDFrench
+Section "Français" SecDFrench
  # already installed by default
  SectionIn RO
  #StrCpy $DictCodes "fr_FR,$DictCodes"
  AddSize 1200
 SectionEnd
 
-Section /o "Français (Canada)" SecDFrenchCanada
+Section /o "Français (Canada)" SecDFrenchCanada
  StrCpy $DictCodes "fr_CA,$DictCodes"
  AddSize 1390
 SectionEnd
@@ -238,9 +224,9 @@ Section /o "Gaeilge" SecDGaelic
  AddSize 1090
 SectionEnd
 
-Section /o "Gàidhlig" SecDScottish
+Section /o "Gàidhlig" SecDScottish
  StrCpy $DictCodes "gd_GB,$DictCodes"
- AddSize 3090
+ AddSize 4161
 SectionEnd
 
 Section /o "Galego" SecDGalician
@@ -248,7 +234,12 @@ Section /o "Galego" SecDGalician
  AddSize 3911
 SectionEnd
 
-Section /o "Hebrew" SecDHebrew
+Section /o "ქართული ენა" SecDGeorgian
+ StrCpy $DictCodes "ka_GE,$DictCodes"
+ AddSize 3952
+SectionEnd
+
+Section /o "עִברִית" SecDHebrew
  StrCpy $DictCodes "he_IL,$DictCodes"
  AddSize 3120
 SectionEnd
@@ -263,7 +254,7 @@ Section /o "Magyar" SecDHungarian
  AddSize 3380
 SectionEnd
 
-Section /o "Hindi" SecDHindi
+Section /o "हिंदी" SecDHindi
  StrCpy $DictCodes "hi_IN,$DictCodes"
  AddSize 1900
 SectionEnd
@@ -273,7 +264,7 @@ Section /o "Interlingua" SecDInterlingua
  AddSize 613
 SectionEnd
 
-Section /o "Íslenska" SecDIcelandic
+Section /o "Íslenska" SecDIcelandic
  StrCpy $DictCodes "is_IS,$DictCodes"
  AddSize 2320
 SectionEnd
@@ -283,12 +274,12 @@ Section /o "Italiano" SecDItalian
  AddSize 1380
 SectionEnd
 
-Section /o "Kazakh" SecDKazakh
+Section /o "Қазақша" SecDKazakh
  StrCpy $DictCodes "kk_KZ,$DictCodes"
  AddSize 2120
 SectionEnd
 
-Section /o "Korean" SecDKorean
+Section /o "한국어" SecDKorean
  StrCpy $DictCodes "ko_KR,$DictCodes"
  AddSize 16540
 SectionEnd
@@ -303,12 +294,12 @@ Section /o "Lietuviu" SecDLithuanian
  AddSize 1320
 SectionEnd
 
-Section /o "Latvie\9au" SecDLatvian
+Section /o "Latviešu" SecDLatvian
  StrCpy $DictCodes "lv_LV,$DictCodes"
  AddSize 2243
 SectionEnd
 
-Section /o "Marathi" SecDMarathi
+Section /o "मराठी" SecDMarathi
  StrCpy $DictCodes "mr_IN,$DictCodes"
  AddSize 5290
 SectionEnd
@@ -318,14 +309,14 @@ Section /o "Nederlands" SecDDutch
  AddSize 1820
 SectionEnd
 
-Section /o "Norsk (Bokmål)" SecDNorwegianNB
+Section /o "Norsk (Bokmål)" SecDNorwegianNB
  StrCpy $DictCodes "nb_NO,$DictCodes"
- AddSize 3992
+ AddSize 5291
 SectionEnd
 
 Section /o "Norsk (Nynorsk)" SecDNorwegianNN
  StrCpy $DictCodes "nn_NO,$DictCodes"
- AddSize 1540
+ AddSize 3292
 SectionEnd
 
 Section /o "Occitan" SecDOccitan
@@ -338,52 +329,52 @@ Section /o "Polski" SecDPolish
  AddSize 4540
 SectionEnd
 
-Section /o "Português (BR)" SecDPortugueseBR
+Section /o "Português (BR)" SecDPortugueseBR
  StrCpy $DictCodes "pt_BR,$DictCodes"
  AddSize 5280
 SectionEnd
 
-Section /o "Português (PT)" SecDPortuguesePT
+Section /o "Português (PT)" SecDPortuguesePT
  StrCpy $DictCodes "pt_PT,$DictCodes"
- AddSize 1490
+ AddSize 1568
 SectionEnd
 
-Section /o "Româna" SecDRomanian
+Section /o "Româna" SecDRomanian
  StrCpy $DictCodes "ro_RO,$DictCodes"
  AddSize 2255
 SectionEnd
 
-Section /o "Russian" SecDRussian
+Section /o "Русский" SecDRussian
  StrCpy $DictCodes "ru_RU,$DictCodes"
  AddSize 1920
 SectionEnd
 
-Section /o "Serb\9acina (Dolno)" SecDSorbianD
+Section /o "Serbšcina (Dolno)" SecDSorbianD
  StrCpy $DictCodes "dsb_DE,$DictCodes"
  AddSize 1035
 SectionEnd
 
-Section /o "Serb\9acina (Horno)" SecDSorbianH
+Section /o "Serbšcina (Horno)" SecDSorbianH
  StrCpy $DictCodes "hsb_DE,$DictCodes"
  AddSize 740
 SectionEnd
 
-Section /o "Shqipe" SecDAlbanian
+Section /o "Shqip" SecDAlbanian
  StrCpy $DictCodes "sq_AL,$DictCodes"
- AddSize 2400
+ AddSize 2612
 SectionEnd
 
-Section /o "Sloven\9acina" SecDSlovenian
+Section /o "Slovenšcina" SecDSlovenian
  StrCpy $DictCodes "sl_SI,$DictCodes"
  AddSize 2910
 SectionEnd
 
-Section /o "Slovenský" SecDSlovakian
+Section /o "Slovenský" SecDSlovakian
  StrCpy $DictCodes "sk_SK,$DictCodes"
  AddSize 3310
 SectionEnd
 
-Section /o "Srpski (Cirilica)" SecDSerbianC
+Section /o "Српски (Ћирилица)" SecDSerbianC
  StrCpy $DictCodes "sr_RS,$DictCodes"
  AddSize 4401
 SectionEnd
@@ -398,42 +389,47 @@ Section /o "Svenska" SecDSwedish
  AddSize 2028
 SectionEnd
 
-Section /o "Tamil" SecDTamil
+Section /o "தமிழ்" SecDTamil
  StrCpy $DictCodes "ta_IN,$DictCodes"
  AddSize 5911
 SectionEnd
 
-Section /o "Telugu" SecDTelugu
+Section /o "తెలుగు" SecDTelugu
  StrCpy $DictCodes "te_IN,$DictCodes"
  AddSize 3400
 SectionEnd
  
-Section /o "Thai" SecDThai
+Section /o "ไทย" SecDThai
  StrCpy $DictCodes "th_TH,$DictCodes"
  AddSize 351
 SectionEnd
 
-Section /o "Türkmençe" SecDTurkmen
+Section /o "Tibetan" SecDTibetan
+ StrCpy $DictCodes "bo_CN,$DictCodes"
+ AddSize 7
+SectionEnd
+
+Section /o "Türkmençe" SecDTurkmen
  StrCpy $DictCodes "tk_TM,$DictCodes"
- AddSize 950
+ AddSize 2797
 SectionEnd
 
-Section /o "Türkçe" SecDTurkish
+Section /o "Türkçe" SecDTurkish
  StrCpy $DictCodes "tr_TR,$DictCodes"
  AddSize 8870
 SectionEnd
 
-Section /o "Ukrainian" SecDUkrainian
+Section /o "Українська" SecDUkrainian
  StrCpy $DictCodes "uk_UA,$DictCodes"
- AddSize 3077
+ AddSize 6905
 SectionEnd
 
-Section /o "Urdu" SecDUrdu
+Section /o "اردو" SecDUrdu
  StrCpy $DictCodes "ur_PK,$DictCodes"
  AddSize 1401
 SectionEnd
 
-Section /o "Vietnamese" SecDVietnamese
+Section /o "Tiếng Việt" SecDVietnamese
  StrCpy $DictCodes "vi_VN,$DictCodes"
  AddSize 40
 SectionEnd
@@ -441,19 +437,24 @@ SectionEnd
 SectionGroupEnd
 
 
-SectionGroup "Thesaurus" SecThesaurus
+SectionGroup "$(SecThesaurus)" SecThesaurus
+
+Section /o "العربية" SecTArabic
+ StrCpy $ThesCodes "ar_SA,$ThesCodes"
+ AddSize 799
+SectionEnd
 
-Section /o "Bulgarian" SecTBulgarian
+Section /o "български" SecTBulgarian
  StrCpy $ThesCodes "bg_BG,$ThesCodes"
  AddSize 3020
 SectionEnd
 
-Section /o "Català" SecTCatalan
+Section /o "Català" SecTCatalan
  StrCpy $ThesCodes "ca_ES,$ThesCodes"
  AddSize 731
 SectionEnd
 
-Section /o "Ce\9atina" SecTCzech
+Section /o "Ceština" SecTCzech
  StrCpy $ThesCodes "cs_CZ,$ThesCodes"
  AddSize 635
 SectionEnd
@@ -473,22 +474,27 @@ Section /o "Deutsch (CH)" SecTGermanCH
  AddSize 14600
 SectionEnd
 
+Section /o "English (AU)" SecTEnglishAU
+ StrCpy $ThesCodes "en_AU,$ThesCodes"
+ AddSize 21642
+SectionEnd
+
 Section /o "English (GB)" SecTEnglishGB
  StrCpy $ThesCodes "en_GB,$ThesCodes"
  AddSize 14300
 SectionEnd
 
-Section /o "English (US/AU)" SecTEnglishUSAU
+Section /o "English (US)" SecTEnglishUS
  StrCpy $ThesCodes "en_US,$ThesCodes"
- AddSize 21600
+ AddSize 22095
 SectionEnd
 
-Section /o "Español" SecTSpanish
+Section /o "Español" SecTSpanish
  StrCpy $ThesCodes "es_ES,$ThesCodes"
  AddSize 2860
 SectionEnd
 
-Section /o "Français" SecTFrench
+Section /o "Français" SecTFrench
  StrCpy $ThesCodes "fr_FR,$ThesCodes"
  AddSize 5060
 SectionEnd
@@ -503,12 +509,12 @@ Section /o "Galego" SecTGalician
  AddSize 510
 SectionEnd
 
-Section /o "Greek" SecTGreek
+Section /o "Ελληνικά" SecTGreek
  StrCpy $ThesCodes "el_GR,$ThesCodes"
  AddSize 903
 SectionEnd
 
-Section /o "Íslenska" SecTIcelandic
+Section /o "Íslenska" SecTIcelandic
  StrCpy $ThesCodes "is_IS,$ThesCodes"
  AddSize 63
 SectionEnd
@@ -523,9 +529,14 @@ Section /o "Magyar" SecTHungarian
  AddSize 632
 SectionEnd
 
-Section /o "Norsk (Bokmål)" SecTNorwegianNB
+Section /o "Norsk (Bokmål)" SecTNorwegianNB
  StrCpy $ThesCodes "nb_NO,$ThesCodes"
- AddSize 2535
+ AddSize 2595
+SectionEnd
+
+Section /o "Norsk (Nynorsk)" SecTNorwegianNN
+ StrCpy $ThesCodes "nn_NO,$ThesCodes"
+ AddSize 2
 SectionEnd
 
 Section /o "Polski" SecTPolish
@@ -533,27 +544,27 @@ Section /o "Polski" SecTPolish
  AddSize 5580
 SectionEnd
 
-Section /o "Português" SecTPortuguese
+Section /o "Português" SecTPortuguese
  StrCpy $ThesCodes "pt_PT,$ThesCodes"
- AddSize 860
+ AddSize 3950
 SectionEnd
 
-Section /o "Româna" SecTRomanian
+Section /o "Româna" SecTRomanian
  StrCpy $ThesCodes "ro_RO,$ThesCodes"
  AddSize 3650
 SectionEnd
 
-Section /o "Russian" SecTRussian
+Section /o "Русский" SecTRussian
  StrCpy $ThesCodes "ru_RU,$ThesCodes"
  AddSize 2080
 SectionEnd
 
-Section /o "Sloven\9acina" SecTSlovenian
+Section /o "Slovenšcina" SecTSlovenian
  StrCpy $ThesCodes "sl_SI,$ThesCodes"
  AddSize 1110
 SectionEnd
 
-Section /o "Slovenský" SecTSlovakian
+Section /o "Slovenský" SecTSlovakian
  StrCpy $ThesCodes "sk_SK,$ThesCodes"
  AddSize 930
 SectionEnd
@@ -563,21 +574,17 @@ Section /o "Svenska" SecTSwedish
  AddSize 720
 SectionEnd
 
-Section /o "Ukrainian" SecTUkrainian
+Section /o "Українська" SecTUkrainian
  StrCpy $ThesCodes "uk_UA,$ThesCodes"
- AddSize 1309
+ AddSize 1339
 SectionEnd
 
 SectionGroupEnd
 
 # Section descriptions
 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
-!insertmacro MUI_DESCRIPTION_TEXT ${SecCore} "$(SecCoreDescription)"
 !insertmacro MUI_DESCRIPTION_TEXT ${SecFileAssoc} "$(SecFileAssocDescription)"
 !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktop} "$(SecDesktopDescription)"
-!if ${SETUPTYPE} == BUNDLE
- !insertmacro MUI_DESCRIPTION_TEXT ${SecInstJabRef} "$(SecInstJabRefDescription)"
-!endif
 !insertmacro MUI_DESCRIPTION_TEXT ${SecDictionaries} "$(SecDictionariesDescription)"
 !insertmacro MUI_DESCRIPTION_TEXT ${SecThesaurus} "$(SecThesaurusDescription)"
 !insertmacro MUI_FUNCTION_DESCRIPTION_END
@@ -591,33 +598,18 @@ Function .onInit
   ${if} $R0 == "5.0" # 2000
   ${orif} $R0 == "5.1" # XP
   ${orif} $R0 == "5.2" # 2003
-    MessageBox MB_OK|MB_ICONSTOP "${APP_NAME} ${APP_VERSION} requires Windows Vista or newer." /SD IDOK
+  ${orif} $R0 == "6.0" # Vista
+    MessageBox MB_OK|MB_ICONSTOP "${APP_NAME} ${APP_VERSION} requires Windows 7 or newer." /SD IDOK
     Quit
   ${endif}
   
-  # check that the installer is not currently running
-  System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${BundleExeFile}.Instance") i .r1 ?e'
-  Pop $R0
-  ${if} $R0 != "0"
-   MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK
-   Abort
-  ${endif}
-  System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${ExeFile}.Instance") i .r1 ?e'
-  Pop $R0
-  ${if} $R0 != "0"
-   MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK
+  # Check that LyX is not currently running
+  FindProcDLL::FindProc "${BIN_LYX}"
+  ${if} $R0 == "1"
+   MessageBox MB_OK|MB_ICONSTOP "$(UnInstallRunning)" /SD IDOK
    Abort
   ${endif}
   
-  # FIXME: check that LyX is not currently running
-  #System::Call 'kernel32::CreateMutexA(i 0, i 0, t "LyX.exe.Instance") i .r1 ?e'
-  #Pop $R0
-  #MessageBox MB_OK "$R0"
-  #${if} $R0 != "0"
-  # MessageBox MB_OK|MB_ICONSTOP "$(LyXRunning)" 
-  # Abort
-  #${endif}
-  
   # read the user and computer name
   ReadRegStr $ComputerName HKLM "System\CurrentControlSet\Control\ComputerName\ActiveComputerName" "ComputerName"
   System::Call "advapi32::GetUserName(t .r0, *i ${NSIS_MAX_STRLEN} r1) i.r2"
@@ -642,7 +634,7 @@ Function .onInit
    # because he won't have a chance to deny this
    StrCpy $4 $0 -10 # remove '\bin\lyx,0'
    # (for FileCheck the variables $0 and $1 cannot be used)
-   !insertmacro FileCheck $5 "Uninstall-LyX.exe" "$4" # macro from LyXUtils.nsh
+   !insertmacro FileCheck $5 "Uninstall-${APP_NAME}.exe" "$4" # macro from LyXUtils.nsh
    ${if} $5 == "False"
     Goto ForceInstallation
    ${endif}
@@ -700,13 +692,6 @@ Function .onInit
  
   Call SearchExternal
   
-  !if ${SETUPTYPE} == BUNDLE
-   # don't let the installer sections appear when the programs are already installed
-   ${if} $PathBibTeXEditor != ""
-    SectionSetText 3 "" # hides the corresponding uninstaller section, ${SecInstJabRef}
-   ${endif}
-  !endif
-  
   # select sections of already installed spell-checker dictionaries, make them read-only
   # and set the necessary size to 0 bytes
   StrCpy $String $FoundDict
@@ -717,7 +702,7 @@ Function .onInit
    SectionSetFlags ${SecDAfrikaans} $0
    SectionSetSize ${SecDAfrikaans} 0
   ${endif}
-  StrCpy $Search "ar_DZ"
+  StrCpy $Search "ar_SA"
   Call StrPoint
   ${if} $Pointer != "-1"
    IntOp $0 ${SF_SELECTED} | ${SF_RO}
@@ -942,6 +927,13 @@ Function .onInit
    SectionSetFlags ${SecDGalician} $0
    SectionSetSize ${SecDGalician} 0
   ${endif}
+  StrCpy $Search "ka_GE"
+  Call StrPoint
+  ${if} $Pointer != "-1"
+   IntOp $0 ${SF_SELECTED} | ${SF_RO}
+   SectionSetFlags ${SecDGeorgian} $0
+   SectionSetSize ${SecDGeorgian} 0
+  ${endif}
   StrCpy $Search "he_IL"
   Call StrPoint
   ${if} $Pointer != "-1"
@@ -1173,6 +1165,13 @@ Function .onInit
    SectionSetFlags ${SecDThai} $0
    SectionSetSize ${SecDThai} 0
   ${endif}
+  StrCpy $Search "bo_CN"
+  Call StrPoint
+  ${if} $Pointer != "-1"
+   IntOp $0 ${SF_SELECTED} | ${SF_RO}
+   SectionSetFlags ${SecDTibetan} $0
+   SectionSetSize ${SecDTibetan} 0
+  ${endif}
   StrCpy $Search "tk_TM"
   Call StrPoint
   ${if} $Pointer != "-1"
@@ -1212,8 +1211,15 @@ Function .onInit
   # select sections of already installed thesaurus dictionaries, make them read-only
   # and set the necessary size to 0 bytes
   StrCpy $String $FoundThes
-  StrCpy $Search "bg_BG"
+  StrCpy $Search "ar_SA"
   Call StrPoint # function from LyXUtils.nsh
+  ${if} $Pointer != "-1"
+   IntOp $0 ${SF_SELECTED} | ${SF_RO}
+   SectionSetFlags ${SecTArabic} $0
+   SectionSetSize ${SecTArabic} 0
+  ${endif}
+  StrCpy $Search "bg_BG"
+  Call StrPoint
   ${if} $Pointer != "-1"
    IntOp $0 ${SF_SELECTED} | ${SF_RO}
    SectionSetFlags ${SecTBulgarian} $0
@@ -1254,6 +1260,13 @@ Function .onInit
    SectionSetFlags ${SecTGermanCH} $0
    SectionSetSize ${SecTGermanCH} 0
   ${endif}
+  StrCpy $Search "en_AU"
+  Call StrPoint
+  ${if} $Pointer != "-1"
+   IntOp $0 ${SF_SELECTED} | ${SF_RO}
+   SectionSetFlags ${SecTEnglishAU} $0
+   SectionSetSize ${SecTEnglishAU} 0
+  ${endif}
   StrCpy $Search "en_GB"
   Call StrPoint
   ${if} $Pointer != "-1"
@@ -1265,8 +1278,8 @@ Function .onInit
   Call StrPoint
   ${if} $Pointer != "-1"
    IntOp $0 ${SF_SELECTED} | ${SF_RO}
-   SectionSetFlags ${SecTEnglishUSAU} $0
-   SectionSetSize ${SecTEnglishUSAU} 0
+   SectionSetFlags ${SecTEnglishUS} $0
+   SectionSetSize ${SecTEnglishUS} 0
   ${endif}
   StrCpy $Search "es_ES"
   Call StrPoint
@@ -1331,6 +1344,13 @@ Function .onInit
    SectionSetFlags ${SecTNorwegianNB} $0
    SectionSetSize ${SecTNorwegianNB} 0
   ${endif}
+  StrCpy $Search "nn_NO"
+  Call StrPoint
+  ${if} $Pointer != "-1"
+   IntOp $0 ${SF_SELECTED} | ${SF_RO}
+   SectionSetFlags ${SecTNorwegianNN} $0
+   SectionSetSize ${SecTNorwegianNN} 0
+  ${endif}
   StrCpy $Search "pl_PL"
   Call StrPoint
   ${if} $Pointer != "-1"
@@ -1400,7 +1420,7 @@ Function un.onInit
   !insertmacro MULTIUSER_UNINIT
 
   # Check that LyX is not currently running
-  FindProcDLL::FindProc "lyx.exe"
+  FindProcDLL::FindProc "${BIN_LYX}"
   ${if} $R0 == "1"
    MessageBox MB_OK|MB_ICONSTOP "$(UnInstallRunning)" /SD IDOK
    Abort
@@ -1443,18 +1463,8 @@ Function un.onInit
    SectionSetText 2 "" # hides the corresponding uninstaller section
   ${endif}
   
-  # test if JabRef was installed together with LyX
-  ReadRegStr $0 SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "OnlyWithLyX"
-  ${if} $0 == "Yes${APP_SERIES_KEY}"
-   SectionSetText 3 "JabRef" # names the corersponding uninstaller section
-   StrCpy $JabRefInstalled "Yes"
-  ${else}
-   SectionSetText 3 "" # hides the corresponding uninstaller section
-  ${endif}
-
   # question message if the user really wants to uninstall LyX
   MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "$(UnReallyRemoveLabel)" /SD IDYES IDYES +2 # continue if yes
   Abort
 
 FunctionEnd
-