2007-02-08 21:09:30 +00:00
|
|
|
|
/*
|
2008-03-30 21:37:53 +00:00
|
|
|
|
init.nsh
|
|
|
|
|
|
2012-11-11 17:07:55 +00:00
|
|
|
|
Initialization functions
|
2007-02-08 21:09:30 +00:00
|
|
|
|
*/
|
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
#--------------------------------
|
|
|
|
|
# User initialization
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
Var ComponentPath
|
|
|
|
|
Var LyXLangName
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2011-05-23 04:12:10 +00:00
|
|
|
|
# COMPONENT can be LaTeX, ImageMagick and Ghostscript
|
2008-03-30 21:37:53 +00:00
|
|
|
|
!macro EXTERNAL_INIT COMPONENT
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
# APP_REGKEY_SETUP = "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"
|
|
|
|
|
# where ${APP_NAME}${APP_SERIES_KEY} is something like LyX16
|
|
|
|
|
ReadRegStr $ComponentPath SHELL_CONTEXT "${APP_REGKEY_SETUP}" "${COMPONENT} Path"
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
# BIN_LATEX etc are defined in settings.nsh
|
|
|
|
|
${If} ${FileExists} "$ComponentPath\${BIN_${COMPONENT}}"
|
|
|
|
|
# set variables like PathLaTeX
|
|
|
|
|
StrCpy $Path${COMPONENT} $ComponentPath
|
|
|
|
|
${EndIf}
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
!macroend
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
Function InitUser
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
# Get directories of components from registry
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
!insertmacro EXTERNAL_INIT LaTeX
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
# Get LyX language
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
ReadRegStr $LyXLangName SHELL_CONTEXT "${APP_REGKEY_SETUP}" "LyX Language"
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
${If} $LyXLangName != ""
|
|
|
|
|
StrCpy $LangName $LyXLangName
|
|
|
|
|
${EndIf}
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
|
|
FunctionEnd
|
2011-05-23 04:12:10 +00:00
|
|
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
|
# visible installer sections
|
|
|
|
|
|
|
|
|
|
Section "!${APP_NAME}" SecCore
|
2012-11-12 00:31:00 +00:00
|
|
|
|
SectionIn RO
|
2011-05-23 04:12:10 +00:00
|
|
|
|
SectionEnd
|
2012-11-12 00:31:00 +00:00
|
|
|
|
|
2013-05-31 02:27:08 +00:00
|
|
|
|
Section /o "$(SecFileAssocTitle)" SecFileAssoc
|
|
|
|
|
SectionIn RO # remove this line LyX 2.1 final!
|
|
|
|
|
#StrCpy $CreateFileAssociations "true"
|
2011-05-23 04:12:10 +00:00
|
|
|
|
SectionEnd
|
2012-11-12 00:31:00 +00:00
|
|
|
|
|
2011-09-05 07:20:53 +00:00
|
|
|
|
Section "$(SecDesktopTitle)" SecDesktop
|
2012-11-12 00:31:00 +00:00
|
|
|
|
StrCpy $CreateDesktopIcon "true"
|
2011-05-23 04:12:10 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
!if ${SETUPTYPE} == BUNDLE
|
|
|
|
|
Section /o "$(SecInstJabRefTitle)" SecInstJabRef
|
2012-11-22 19:17:45 +00:00
|
|
|
|
AddSize ${SIZE_JABREF}
|
2011-05-23 04:12:10 +00:00
|
|
|
|
StrCpy $InstallJabRef "true"
|
|
|
|
|
SectionEnd
|
|
|
|
|
!endif
|
|
|
|
|
|
2012-12-31 16:28:50 +00:00
|
|
|
|
# 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
|
2012-06-03 15:17:01 +00:00
|
|
|
|
|
2012-06-03 21:55:21 +00:00
|
|
|
|
Section /o "Afrikaans" SecDAfrikaans
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "af_ZA,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 1440
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Arabic" SecDArabic
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "ar_DZ,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 2500
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Armenian" SecDArmenian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "hy_AM,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 2000
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Bahasa Indonesia" SecDIndonesian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "id_ID,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 217
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Bahasa Melayu" SecDMalayan
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "ms_MY,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 227
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Belarusian" SecDBelarusian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "be_BY,$DictCodes"
|
|
|
|
|
AddSize 1730
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Brezhoneg" SecDBreton
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "br_FR,$DictCodes"
|
2013-04-07 23:17:23 +00:00
|
|
|
|
AddSize 5510
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Bulgarian" SecDBulgarian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "bg_BG,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 985
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Catal<61>" SecDCatalanian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "ca_ES,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 1210
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Ce<43>tina" SecDCzech
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "cs_CZ,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 2190
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2013-05-31 02:27:08 +00:00
|
|
|
|
Section /o "Coptic" SecDCoptic
|
|
|
|
|
StrCpy $DictCodes "cop_EG,$DictCodes"
|
|
|
|
|
AddSize 151
|
|
|
|
|
SectionEnd
|
2012-11-10 21:08:43 +00:00
|
|
|
|
|
2012-06-03 21:55:21 +00:00
|
|
|
|
Section /o "Cymraeg" SecDWelsh
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "cy_GB,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 1540
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Dansk" SecDDanish
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "da_DK,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 2470
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-06-03 15:17:01 +00:00
|
|
|
|
Section /o "German (A)" SecDGermanAT
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "de_AT,$DictCodes"
|
|
|
|
|
AddSize 3620
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "German (CH)" SecDGermanCH
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "de_CH,$DictCodes"
|
|
|
|
|
AddSize 3620
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section "German (D)" SecDGermanD
|
2012-06-03 21:55:21 +00:00
|
|
|
|
# already installed by default
|
2012-11-10 06:05:19 +00:00
|
|
|
|
SectionIn RO
|
2012-11-10 21:08:43 +00:00
|
|
|
|
#StrCpy $DictCodes "de_DE,$DictCodes"
|
|
|
|
|
AddSize 3620
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-06-03 21:55:21 +00:00
|
|
|
|
Section /o "Greek" SecDGreek
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "el_GR,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 6550
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Eesti" SecDEstonian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "et_EE,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 4400
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2013-05-31 02:27:08 +00:00
|
|
|
|
Section /o "English (AU)" SecDEnglishAU
|
|
|
|
|
StrCpy $DictCodes "en_AU,$DictCodes"
|
|
|
|
|
AddSize 587
|
|
|
|
|
SectionEnd
|
2012-06-03 21:55:21 +00:00
|
|
|
|
|
|
|
|
|
Section /o "English (CA)" SecDEnglishCA
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "en_CA,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 690
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section "English (GB)" SecDEnglishGB
|
|
|
|
|
# already installed by default
|
2012-11-10 06:05:19 +00:00
|
|
|
|
SectionIn RO
|
2012-11-10 21:08:43 +00:00
|
|
|
|
#StrCpy $DictCodes "en_GB,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 757
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2013-05-31 02:27:08 +00:00
|
|
|
|
Section /o "English (NZ)" SecDEnglishNZ
|
|
|
|
|
StrCpy $DictCodes "en_NZ,$DictCodes"
|
|
|
|
|
AddSize 551
|
|
|
|
|
SectionEnd
|
2012-06-03 21:55:21 +00:00
|
|
|
|
|
|
|
|
|
Section "English (US)" SecDEnglishUS
|
|
|
|
|
# already installed by default
|
2012-11-10 06:05:19 +00:00
|
|
|
|
SectionIn RO
|
2012-11-10 21:08:43 +00:00
|
|
|
|
#StrCpy $DictCodes "en_US,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 688
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section "Espa<70>ol (ES)" SecDSpanishES
|
|
|
|
|
# already installed by default
|
2012-11-10 06:05:19 +00:00
|
|
|
|
SectionIn RO
|
2012-11-10 21:08:43 +00:00
|
|
|
|
#StrCpy $DictCodes "es_ES,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 974
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section "Espa<70>ol (MX)" SecDSpanishMX
|
|
|
|
|
# already installed by default
|
2012-11-10 06:05:19 +00:00
|
|
|
|
SectionIn RO
|
2012-11-10 21:08:43 +00:00
|
|
|
|
#StrCpy $DictCodes "es_MX,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 924
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Esperanto" SecDEsperanto
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "eo_EO,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 389
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Euskara" SecDBasque
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "eu_ES,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 4850
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Farsi" SecDFarsi
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "fa_IR,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 6710
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section "Fran<61>ais" SecDFrench
|
|
|
|
|
# already installed by default
|
2012-11-10 06:05:19 +00:00
|
|
|
|
SectionIn RO
|
2012-11-10 21:08:43 +00:00
|
|
|
|
#StrCpy $DictCodes "fr_FR,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 1200
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2013-04-13 12:29:07 +00:00
|
|
|
|
Section /o "Fran<61>ais (Canada)" SecDFrenchCanada
|
2013-04-13 11:37:02 +00:00
|
|
|
|
StrCpy $DictCodes "fr_CA,$DictCodes"
|
|
|
|
|
AddSize 1390
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-06-03 21:55:21 +00:00
|
|
|
|
Section /o "Gaeilge" SecDGaelic
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "ga_IR,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 1090
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "G<>idhlig" SecDScottish
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "gd_GB,$DictCodes"
|
2014-03-06 23:24:28 +00:00
|
|
|
|
AddSize 2504
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Galego" SecDGalician
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "gl_ES,$DictCodes"
|
2014-03-06 23:24:28 +00:00
|
|
|
|
AddSize 3911
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Hebrew" SecDHebrew
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "he_IL,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 3120
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Hrvatski" SecDCroatian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "hr_HR,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 2240
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Magyar" SecDHungarian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "hu_HU,$DictCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 3380
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2013-05-31 02:27:08 +00:00
|
|
|
|
Section /o "Hindi" SecDHindi
|
|
|
|
|
StrCpy $DictCodes "hi_IN,$DictCodes"
|
|
|
|
|
AddSize 1900
|
|
|
|
|
SectionEnd
|
2012-11-11 06:12:43 +00:00
|
|
|
|
|
2012-06-03 21:55:21 +00:00
|
|
|
|
Section /o "Interlingua" SecDInterlingua
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "ia_IA,$DictCodes"
|
2014-03-06 23:24:28 +00:00
|
|
|
|
AddSize 613
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "<22>slenska" SecDIcelandic
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "is_IS,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 2320
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Italiano" SecDItalian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "it_IT,$DictCodes"
|
2014-03-06 23:24:28 +00:00
|
|
|
|
AddSize 1380
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Kazakh" SecDKazakh
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "kk_KZ,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 2120
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Korean" SecDKorean
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "ko_KR,$DictCodes"
|
2013-04-07 23:17:23 +00:00
|
|
|
|
AddSize 16540
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Latina" SecDLatin
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "la_LA,$DictCodes"
|
2013-04-08 00:05:19 +00:00
|
|
|
|
AddSize 2040
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Lietuviu" SecDLithuanian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "lt_LT,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 1320
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Latvie<69>u" SecDLatvian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "lv_LV,$DictCodes"
|
2013-04-28 04:03:13 +00:00
|
|
|
|
AddSize 2243
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
2013-05-31 02:27:08 +00:00
|
|
|
|
Section /o "Marathi" SecDMarathi
|
|
|
|
|
StrCpy $DictCodes "mr_IN,$DictCodes"
|
|
|
|
|
AddSize 5290
|
|
|
|
|
SectionEnd
|
2013-04-07 23:17:23 +00:00
|
|
|
|
|
2012-06-03 21:55:21 +00:00
|
|
|
|
Section /o "Nederlands" SecDDutch
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "nl_NL,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 1820
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Norsk (Bokm<6B>l)" SecDNorwegianNB
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "nb_NO,$DictCodes"
|
2013-04-28 04:03:13 +00:00
|
|
|
|
AddSize 3992
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Norsk (Nynorsk)" SecDNorwegianNN
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "nn_NO,$DictCodes"
|
2013-05-20 01:18:11 +00:00
|
|
|
|
AddSize 1515
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
2013-05-31 02:27:08 +00:00
|
|
|
|
Section /o "Occitan" SecDOccitan
|
|
|
|
|
StrCpy $DictCodes "oc_FR,$DictCodes"
|
|
|
|
|
AddSize 31710
|
|
|
|
|
SectionEnd
|
2012-11-11 06:12:43 +00:00
|
|
|
|
|
2012-06-03 21:55:21 +00:00
|
|
|
|
Section /o "Polski" SecDPolish
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "pl_PL,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 4540
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Portugu<67>s (BR)" SecDPortugueseBR
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "pt_BR,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 5280
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Portugu<67>s (PT)" SecDPortuguesePT
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "pt_PT,$DictCodes"
|
2014-03-06 23:24:28 +00:00
|
|
|
|
AddSize 1595
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Rom<6F>na" SecDRomanian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "ro_RO,$DictCodes"
|
2014-03-06 23:24:28 +00:00
|
|
|
|
AddSize 2255
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-11-10 06:05:19 +00:00
|
|
|
|
Section /o "Russian" SecDRussian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "ru_RU,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 1920
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Serb<72>cina (Dolno)" SecDSorbianD
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "dsb_DE,$DictCodes"
|
2014-03-06 23:24:28 +00:00
|
|
|
|
AddSize 1035
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-06-03 21:55:21 +00:00
|
|
|
|
Section /o "Serb<72>cina (Horno)" SecDSorbianH
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "hsb_DE,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 740
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Shqipe" SecDAlbanian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "sq_AL,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 2400
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-11-21 22:48:33 +00:00
|
|
|
|
Section /o "Sloven<65>cina" SecDSlovenian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "sl_SI,$DictCodes"
|
2012-11-21 22:48:33 +00:00
|
|
|
|
AddSize 2910
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-11-21 22:48:33 +00:00
|
|
|
|
Section /o "Slovensk<73>" SecDSlovakian
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $DictCodes "sk_SK,$DictCodes"
|
2013-04-08 00:05:19 +00:00
|
|
|
|
AddSize 3310
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
2013-04-08 21:42:18 +00:00
|
|
|
|
Section /o "Srpski (Cirilica)" SecDSerbianC
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "sr_RS,$DictCodes"
|
2014-03-06 23:24:28 +00:00
|
|
|
|
AddSize 4401
|
2013-04-08 21:42:18 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Srpski (Latinica)" SecDSerbianL
|
|
|
|
|
StrCpy $DictCodes "sr_RS-Latin,$DictCodes"
|
2014-03-06 23:24:28 +00:00
|
|
|
|
AddSize 2843
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Svenska" SecDSwedish
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "sv_SE,$DictCodes"
|
2012-12-31 16:28:50 +00:00
|
|
|
|
AddSize 2028
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
2012-11-11 06:12:43 +00:00
|
|
|
|
|
2013-05-31 02:27:08 +00:00
|
|
|
|
Section /o "Tamil" SecDTamil
|
|
|
|
|
StrCpy $DictCodes "ta_IN,$DictCodes"
|
|
|
|
|
AddSize 5911
|
|
|
|
|
SectionEnd
|
2012-11-11 06:12:43 +00:00
|
|
|
|
|
2013-05-31 02:27:08 +00:00
|
|
|
|
Section /o "Telugu" SecDTelugu
|
|
|
|
|
StrCpy $DictCodes "te_IN,$DictCodes"
|
|
|
|
|
AddSize 3400
|
|
|
|
|
SectionEnd
|
2012-06-03 21:55:21 +00:00
|
|
|
|
|
|
|
|
|
Section /o "Thai" SecDThai
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "th_TH,$DictCodes"
|
2012-06-03 21:55:21 +00:00
|
|
|
|
AddSize 351
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2014-03-06 23:24:28 +00:00
|
|
|
|
Section /o "T<>rkmen<65>e" SecDTurkmen
|
|
|
|
|
StrCpy $DictCodes "tk_TM,$DictCodes"
|
|
|
|
|
AddSize 950
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-06-03 21:55:21 +00:00
|
|
|
|
Section /o "Ukrainian" SecDUkrainian
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "uk_UA,$DictCodes"
|
2014-03-06 23:24:28 +00:00
|
|
|
|
AddSize 3077
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
2013-05-31 02:27:08 +00:00
|
|
|
|
Section /o "Urdu" SecDUrdu
|
|
|
|
|
StrCpy $DictCodes "ur_PK,$DictCodes"
|
|
|
|
|
AddSize 1401
|
|
|
|
|
SectionEnd
|
2012-11-11 06:12:43 +00:00
|
|
|
|
|
2012-06-03 21:55:21 +00:00
|
|
|
|
Section /o "Vietnamese" SecDVietnamese
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $DictCodes "vi_VN,$DictCodes"
|
|
|
|
|
AddSize 40
|
2012-06-03 21:55:21 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionGroupEnd
|
|
|
|
|
|
2012-11-11 06:12:43 +00:00
|
|
|
|
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionGroup "Thesaurus" SecThesaurus
|
|
|
|
|
|
|
|
|
|
Section /o "Bulgarian" SecTBulgarian
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "bg_BG,$ThesCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 3020
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Catal<61>" SecTCatalan
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "ca_ES,$ThesCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 731
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Ce<43>tina" SecTCzech
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "cs_CZ,$ThesCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 635
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Dansk" SecTDanish
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "da_DK,$ThesCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 2360
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Deutsch (D/A)" SecTGermanDA
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "de_DE,$ThesCodes"
|
2012-11-16 00:21:47 +00:00
|
|
|
|
AddSize 14600
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Deutsch (CH)" SecTGermanCH
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "de_CH,$ThesCodes"
|
2012-11-16 00:21:47 +00:00
|
|
|
|
AddSize 14600
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "English (GB)" SecTEnglishGB
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "en_GB,$ThesCodes"
|
2014-03-07 23:25:22 +00:00
|
|
|
|
AddSize 14300
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "English (US/AU)" SecTEnglishUSAU
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "en_US,$ThesCodes"
|
2014-03-07 23:25:22 +00:00
|
|
|
|
AddSize 21600
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Espa<70>ol" SecTSpanish
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "es_ES,$ThesCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 2860
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Fran<61>ais" SecTFrench
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "fr_FR,$ThesCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 5060
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Gaeilge" SecTGaelic
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "ga_IR,$ThesCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 30600
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2014-03-06 23:24:28 +00:00
|
|
|
|
Section /o "Galego" SecTGalician
|
|
|
|
|
StrCpy $ThesCodes "gl_ES,$ThesCodes"
|
|
|
|
|
AddSize 510
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-06-03 15:17:01 +00:00
|
|
|
|
Section /o "Greek" SecTGreek
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "el_GR,$ThesCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 903
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2013-04-28 04:03:13 +00:00
|
|
|
|
Section /o "<22>slenska" SecTIcelandic
|
|
|
|
|
StrCpy $ThesCodes "is_IS,$ThesCodes"
|
|
|
|
|
AddSize 63
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-06-03 15:17:01 +00:00
|
|
|
|
Section /o "Italiano" SecTItalian
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "it_IT,$ThesCodes"
|
2013-04-08 00:05:19 +00:00
|
|
|
|
AddSize 2520
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Magyar" SecTHungarian
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "hu_HU,$ThesCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 632
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2013-04-07 23:17:23 +00:00
|
|
|
|
Section /o "Norsk (Bokm<6B>l)" SecTNorwegianNB
|
|
|
|
|
StrCpy $ThesCodes "nb_NO,$ThesCodes"
|
2013-04-28 04:03:13 +00:00
|
|
|
|
AddSize 2535
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Polski" SecTPolish
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "pl_PL,$ThesCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 5580
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Portugu<67>s" SecTPortuguese
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "pt_PT,$ThesCodes"
|
2013-04-07 23:17:23 +00:00
|
|
|
|
AddSize 860
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Rom<6F>na" SecTRomanian
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "ro_RO,$ThesCodes"
|
2013-04-08 00:05:19 +00:00
|
|
|
|
AddSize 3650
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Russian" SecTRussian
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "ru_RU,$ThesCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 2080
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-11-21 22:48:33 +00:00
|
|
|
|
Section /o "Sloven<65>cina" SecTSlovenian
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "sl_SI,$ThesCodes"
|
2014-03-06 23:24:28 +00:00
|
|
|
|
AddSize 1121
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-11-21 22:48:33 +00:00
|
|
|
|
Section /o "Slovensk<73>" SecTSlovakian
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "sk_SK,$ThesCodes"
|
2013-04-08 00:05:19 +00:00
|
|
|
|
AddSize 930
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Section /o "Svenska" SecTSwedish
|
2012-12-31 16:28:50 +00:00
|
|
|
|
StrCpy $ThesCodes "sv_SE,$ThesCodes"
|
2012-06-03 15:17:01 +00:00
|
|
|
|
AddSize 720
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2013-04-28 04:03:13 +00:00
|
|
|
|
Section /o "Ukrainian" SecTUkrainian
|
|
|
|
|
StrCpy $ThesCodes "uk_UA,$ThesCodes"
|
|
|
|
|
AddSize 1309
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
2012-06-03 15:17:01 +00:00
|
|
|
|
SectionGroupEnd
|
|
|
|
|
|
2011-05-23 04:12:10 +00:00
|
|
|
|
# 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)"
|
2011-06-08 16:41:48 +00:00
|
|
|
|
!if ${SETUPTYPE} == BUNDLE
|
|
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecInstJabRef} "$(SecInstJabRefDescription)"
|
|
|
|
|
!endif
|
2012-11-11 17:07:55 +00:00
|
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecDictionaries} "$(SecDictionariesDescription)"
|
|
|
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecThesaurus} "$(SecThesaurusDescription)"
|
2011-05-23 04:12:10 +00:00
|
|
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
|
|
|
|
|
2012-11-10 06:05:19 +00:00
|
|
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
|
# Installer initialization
|
|
|
|
|
|
|
|
|
|
!macro PRINTER_INIT
|
|
|
|
|
|
|
|
|
|
${If} ${AtLeastWinVista}
|
|
|
|
|
StrCpy $PrinterConf "printui.exe"
|
|
|
|
|
${Else}
|
|
|
|
|
StrCpy $PrinterConf "rundll32.exe printui.dll,PrintUIEntry"
|
|
|
|
|
${EndIf}
|
|
|
|
|
|
|
|
|
|
!macroend
|
|
|
|
|
|
|
|
|
|
# .onInit must be here after the section definition because we have to set
|
|
|
|
|
# the selection states of the dictionary sections
|
|
|
|
|
Function .onInit
|
|
|
|
|
|
|
|
|
|
${IfNot} ${IsNT}
|
|
|
|
|
${OrIfNot} ${AtLeastWinXP}
|
2014-02-18 01:15:53 +00:00
|
|
|
|
MessageBox MB_OK|MB_ICONSTOP "${APP_NAME} ${APP_VERSION} requires Windows XP or later." /SD IDOK
|
2012-11-10 06:05:19 +00:00
|
|
|
|
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"
|
2014-02-18 01:15:53 +00:00
|
|
|
|
MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK
|
2012-11-10 06:05:19 +00:00
|
|
|
|
Abort
|
|
|
|
|
${endif}
|
|
|
|
|
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${ExeFile}.Instance") i .r1 ?e'
|
|
|
|
|
Pop $R0
|
|
|
|
|
${if} $R0 != "0"
|
2014-02-18 01:15:53 +00:00
|
|
|
|
MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK
|
2012-11-10 06:05:19 +00:00
|
|
|
|
Abort
|
|
|
|
|
${endif}
|
2013-05-02 23:11:32 +00:00
|
|
|
|
|
|
|
|
|
# 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}
|
|
|
|
|
|
2012-11-11 06:12:43 +00:00
|
|
|
|
!insertmacro MULTIUSER_INIT
|
|
|
|
|
|
2012-11-10 06:05:19 +00:00
|
|
|
|
# check if this LyX version is already installed
|
|
|
|
|
${if} $MultiUser.Privileges == "Admin"
|
|
|
|
|
${orif} $MultiUser.Privileges == "Power"
|
|
|
|
|
ReadRegStr $0 HKLM "${APP_UNINST_KEY}" "Publisher"
|
|
|
|
|
${else}
|
|
|
|
|
ReadRegStr $0 HKCU "${APP_UNINST_KEY}" "Publisher"
|
|
|
|
|
# handle also the case that LyX is already installed in HKLM
|
|
|
|
|
${if} $0 == ""
|
|
|
|
|
ReadRegStr $0 HKLM "${APP_UNINST_KEY}" "Publisher"
|
|
|
|
|
${endif}
|
|
|
|
|
${endif}
|
|
|
|
|
${if} $0 != ""
|
2014-02-18 01:15:53 +00:00
|
|
|
|
MessageBox MB_OK|MB_ICONSTOP "$(StillInstalled)" /SD IDOK
|
2012-11-10 06:05:19 +00:00
|
|
|
|
Abort
|
|
|
|
|
${endif}
|
2012-11-11 06:12:43 +00:00
|
|
|
|
|
|
|
|
|
# check if there is an existing LyX installation of the same LyX series
|
|
|
|
|
# we usually don't release more than 10 versions so with 20 we are safe to check if a newer version is installed
|
|
|
|
|
IntOp $4 ${APP_VERSION_REVISION} + 20
|
|
|
|
|
${for} $5 0 $4
|
|
|
|
|
${if} $MultiUser.Privileges == "Admin"
|
|
|
|
|
${orif} $MultiUser.Privileges == "Power"
|
|
|
|
|
ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5" "DisplayVersion"
|
2013-01-03 01:46:48 +00:00
|
|
|
|
# also check for an emergency release
|
|
|
|
|
${if} $0 == ""
|
|
|
|
|
ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$51" "DisplayVersion"
|
|
|
|
|
${endif}
|
2012-11-11 06:12:43 +00:00
|
|
|
|
${else}
|
|
|
|
|
ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5" "DisplayVersion"
|
2013-01-03 01:46:48 +00:00
|
|
|
|
# also check for an emergency release
|
|
|
|
|
${if} $0 == ""
|
|
|
|
|
ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$51" "DisplayVersion"
|
|
|
|
|
${endif}
|
2012-11-11 06:12:43 +00:00
|
|
|
|
${endif}
|
|
|
|
|
${if} $0 != ""
|
|
|
|
|
StrCpy $R5 $0 # store the read version number
|
|
|
|
|
StrCpy $OldVersionNumber "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5"
|
|
|
|
|
# we don't stop here because we want the latest installed version
|
|
|
|
|
${endif}
|
|
|
|
|
${next}
|
2013-05-02 23:11:32 +00:00
|
|
|
|
|
2012-11-11 06:12:43 +00:00
|
|
|
|
${if} $OldVersionNumber > ${APP_SERIES_KEY}
|
|
|
|
|
# store the version number and reformat it temporarily for the error message
|
|
|
|
|
StrCpy $R0 $OldVersionNumber
|
|
|
|
|
StrCpy $OldVersionNumber $R5
|
2014-02-18 01:15:53 +00:00
|
|
|
|
MessageBox MB_OK|MB_ICONSTOP "$(NewerInstalled)" /SD IDOK
|
2012-11-11 06:12:43 +00:00
|
|
|
|
StrCpy $OldVersionNumber $R0
|
|
|
|
|
Abort
|
|
|
|
|
${endif}
|
2012-11-10 06:05:19 +00:00
|
|
|
|
|
|
|
|
|
!insertmacro PRINTER_INIT
|
|
|
|
|
|
|
|
|
|
# this can be reset to "true" in section SecDesktop
|
|
|
|
|
StrCpy $CreateDesktopIcon "false"
|
|
|
|
|
StrCpy $CreateFileAssociations "false"
|
|
|
|
|
|
|
|
|
|
${IfNot} ${Silent}
|
|
|
|
|
# Show banner while installer is intializating
|
|
|
|
|
Banner::show /NOUNLOAD "Checking system"
|
|
|
|
|
${EndIf}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
StrCpy $Search "af_ZA"
|
|
|
|
|
Call StrPoint # function from LyXUtils.nsh
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDAfrikaans} $0
|
|
|
|
|
SectionSetSize ${SecDAfrikaans} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "ar_DZ"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDArabic} $0
|
|
|
|
|
SectionSetSize ${SecDArabic} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "hy_AM"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDArmenian} $0
|
|
|
|
|
SectionSetSize ${SecDArmenian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "id_ID"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDIndonesian} $0
|
|
|
|
|
SectionSetSize ${SecDIndonesian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "ms_MY"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDMalayan} $0
|
|
|
|
|
SectionSetSize ${SecDMalayan} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "be_BY"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDBelarusian} $0
|
|
|
|
|
SectionSetSize ${SecDBelarusian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "br_FR"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDBreton} $0
|
|
|
|
|
SectionSetSize ${SecDBreton} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "bg_BG"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDBulgarian} $0
|
|
|
|
|
SectionSetSize ${SecDBulgarian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "ca_ES"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDCatalanian} $0
|
|
|
|
|
SectionSetSize ${SecDCatalanian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "cs_CZ"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDCzech} $0
|
|
|
|
|
SectionSetSize ${SecDCzech} 0
|
|
|
|
|
${endif}
|
2012-11-10 21:08:43 +00:00
|
|
|
|
|
|
|
|
|
StrCpy $Search "cop_EG"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2013-05-31 02:27:08 +00:00
|
|
|
|
SectionSetFlags ${SecDCoptic} $0
|
|
|
|
|
SectionSetSize ${SecDCoptic} 0
|
2012-11-10 21:08:43 +00:00
|
|
|
|
${endif}
|
2012-11-10 06:05:19 +00:00
|
|
|
|
StrCpy $Search "cy_GB"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDWelsh} $0
|
|
|
|
|
SectionSetSize ${SecDWelsh} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "da_DK"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDDanish} $0
|
|
|
|
|
SectionSetSize ${SecDDanish} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "de_AT"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDGermanAT} $0
|
|
|
|
|
SectionSetSize ${SecDGermanAT} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "de_CH"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDGermanCH} $0
|
|
|
|
|
SectionSetSize ${SecDGermanCH} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "de_DE"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDGermanD} $0
|
|
|
|
|
SectionSetSize ${SecDGermanD} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "el_GR"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDGreek} $0
|
|
|
|
|
SectionSetSize ${SecDGreek} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "et_EE"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDEstonian} $0
|
|
|
|
|
SectionSetSize ${SecDEstonian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "en_AU"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2013-05-31 02:27:08 +00:00
|
|
|
|
SectionSetFlags ${SecDEnglishAU} $0
|
|
|
|
|
SectionSetSize ${SecDEnglishAU} 0
|
2012-11-10 06:05:19 +00:00
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "en_CA"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDEnglishCA} $0
|
|
|
|
|
SectionSetSize ${SecDEnglishCA} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "en_GB"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDEnglishGB} $0
|
|
|
|
|
SectionSetSize ${SecDEnglishGB} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "en_NZ"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2013-05-31 02:27:08 +00:00
|
|
|
|
SectionSetFlags ${SecDEnglishNZ} $0
|
|
|
|
|
SectionSetSize ${SecDEnglishNZ} 0
|
2012-11-10 06:05:19 +00:00
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "en_US"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDEnglishUS} $0
|
|
|
|
|
SectionSetSize ${SecDEnglishUS} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "es_ES"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDSpanishES} $0
|
|
|
|
|
SectionSetSize ${SecDSpanishES} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "es_MX"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDSpanishMX} $0
|
|
|
|
|
SectionSetSize ${SecDSpanishMX} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "eo_EO"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDEsperanto} $0
|
|
|
|
|
SectionSetSize ${SecDEsperanto} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "eu_ES"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDBasque} $0
|
|
|
|
|
SectionSetSize ${SecDBasque} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "fa_IR"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDFarsi} $0
|
|
|
|
|
SectionSetSize ${SecDFarsi} 0
|
|
|
|
|
${endif}
|
2013-04-13 11:37:02 +00:00
|
|
|
|
StrCpy $Search "fr_CA"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDFrenchCanada} $0
|
|
|
|
|
SectionSetSize ${SecDFrenchCanada} 0
|
|
|
|
|
${endif}
|
2012-11-10 06:05:19 +00:00
|
|
|
|
StrCpy $Search "fr_FR"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDFrench} $0
|
|
|
|
|
SectionSetSize ${SecDFrench} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "ga_IR"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDGaelic} $0
|
|
|
|
|
SectionSetSize ${SecDGaelic} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "gd_GB"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDScottish} $0
|
|
|
|
|
SectionSetSize ${SecDScottish} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "gl_ES"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDGalician} $0
|
|
|
|
|
SectionSetSize ${SecDGalician} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "he_IL"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDHebrew} $0
|
|
|
|
|
SectionSetSize ${SecDHebrew} 0
|
|
|
|
|
${endif}
|
2012-11-11 06:12:43 +00:00
|
|
|
|
StrCpy $Search "hi_IN"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2013-05-31 02:27:08 +00:00
|
|
|
|
SectionSetFlags ${SecDHindi} $0
|
|
|
|
|
SectionSetSize ${SecDHindi} 0
|
2012-11-11 06:12:43 +00:00
|
|
|
|
${endif}
|
2012-11-10 06:05:19 +00:00
|
|
|
|
StrCpy $Search "hr_HR"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDCroatian} $0
|
|
|
|
|
SectionSetSize ${SecDCroatian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "hu_HU"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDHungarian} $0
|
|
|
|
|
SectionSetSize ${SecDHungarian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "ia_IA"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDInterlingua} $0
|
|
|
|
|
SectionSetSize ${SecDInterlingua} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "is_IS"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDIcelandic} $0
|
|
|
|
|
SectionSetSize ${SecDIcelandic} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "it_IT"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDItalian} $0
|
|
|
|
|
SectionSetSize ${SecDItalian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "kk_KZ"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDKazakh} $0
|
|
|
|
|
SectionSetSize ${SecDKazakh} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "ko_KR"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDKorean} $0
|
|
|
|
|
SectionSetSize ${SecDKorean} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "la_LA"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDLatin} $0
|
|
|
|
|
SectionSetSize ${SecDLatin} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "lt_LT"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDLithuanian} $0
|
|
|
|
|
SectionSetSize ${SecDLithuanian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "lv_LV"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDLatvian} $0
|
|
|
|
|
SectionSetSize ${SecDLatvian} 0
|
|
|
|
|
${endif}
|
2013-05-31 02:27:08 +00:00
|
|
|
|
StrCpy $Search "mr_IN"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDMarathi} $0
|
|
|
|
|
SectionSetSize ${SecDMarathi} 0
|
|
|
|
|
${endif}
|
2012-11-10 06:05:19 +00:00
|
|
|
|
StrCpy $Search "nl_NL"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDDutch} $0
|
|
|
|
|
SectionSetSize ${SecDDutch} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "nb_NO"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDNorwegianNB} $0
|
|
|
|
|
SectionSetSize ${SecDNorwegianNB} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "nn_NO"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDNorwegianNN} $0
|
|
|
|
|
SectionSetSize ${SecDNorwegianNN} 0
|
|
|
|
|
${endif}
|
2012-11-11 06:12:43 +00:00
|
|
|
|
StrCpy $Search "oc_FR"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2013-05-31 02:27:08 +00:00
|
|
|
|
SectionSetFlags ${SecDOccitan} $0
|
|
|
|
|
SectionSetSize ${SecDOccitan} 0
|
2012-11-11 06:12:43 +00:00
|
|
|
|
${endif}
|
2012-11-10 06:05:19 +00:00
|
|
|
|
StrCpy $Search "pl_PL"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDPolish} $0
|
|
|
|
|
SectionSetSize ${SecDPolish} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "pt_BR"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDPortugueseBR} $0
|
|
|
|
|
SectionSetSize ${SecDPortugueseBR} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "pt_PT"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDPortuguesePT} $0
|
|
|
|
|
SectionSetSize ${SecDPortuguesePT} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "ro_RO"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDRomanian} $0
|
|
|
|
|
SectionSetSize ${SecDRomanian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "ru_RU"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDRussian} $0
|
|
|
|
|
SectionSetSize ${SecDRussian} 0
|
|
|
|
|
${endif}
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $Search "dsb_DE"
|
2012-11-10 06:05:19 +00:00
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDSorbianD} $0
|
|
|
|
|
SectionSetSize ${SecDSorbianD} 0
|
|
|
|
|
${endif}
|
2012-11-10 21:08:43 +00:00
|
|
|
|
StrCpy $Search "hsb_DE"
|
2012-11-10 06:05:19 +00:00
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDSorbianH} $0
|
|
|
|
|
SectionSetSize ${SecDSorbianH} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "sq_AL"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDAlbanian} $0
|
|
|
|
|
SectionSetSize ${SecDAlbanian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "sl_SI"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2012-11-21 22:48:33 +00:00
|
|
|
|
SectionSetFlags ${SecDSlovenian} $0
|
|
|
|
|
SectionSetSize ${SecDSlovenian} 0
|
2012-11-10 06:05:19 +00:00
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "sk_SK"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2012-11-21 22:48:33 +00:00
|
|
|
|
SectionSetFlags ${SecDSlovakian} $0
|
|
|
|
|
SectionSetSize ${SecDSlovakian} 0
|
2012-11-10 06:05:19 +00:00
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "sr_RS"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2013-04-08 21:42:18 +00:00
|
|
|
|
SectionSetFlags ${SecDSerbianC} $0
|
|
|
|
|
SectionSetSize ${SecDSerbianC} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "sr_RS-Latin"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDSerbianL} $0
|
|
|
|
|
SectionSetSize ${SecDSerbianL} 0
|
2012-11-10 06:05:19 +00:00
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "sv_SE"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDSwedish} $0
|
|
|
|
|
SectionSetSize ${SecDSwedish} 0
|
|
|
|
|
${endif}
|
2012-11-11 06:12:43 +00:00
|
|
|
|
StrCpy $Search "ta_IN"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2013-05-31 02:27:08 +00:00
|
|
|
|
SectionSetFlags ${SecDTamil} $0
|
|
|
|
|
SectionSetSize ${SecDTamil} 0
|
2012-11-11 06:12:43 +00:00
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "te_IN"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2013-05-31 02:27:08 +00:00
|
|
|
|
SectionSetFlags ${SecDTelugu} $0
|
|
|
|
|
SectionSetSize ${SecDTelugu} 0
|
2012-11-11 06:12:43 +00:00
|
|
|
|
${endif}
|
2012-11-10 06:05:19 +00:00
|
|
|
|
StrCpy $Search "th_TH"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDThai} $0
|
|
|
|
|
SectionSetSize ${SecDThai} 0
|
|
|
|
|
${endif}
|
2014-03-06 23:24:28 +00:00
|
|
|
|
StrCpy $Search "tk_TM"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDTurkmen} $0
|
|
|
|
|
SectionSetSize ${SecDTurkmen} 0
|
|
|
|
|
${endif}
|
2012-11-10 06:05:19 +00:00
|
|
|
|
StrCpy $Search "uk_UA"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDUkrainian} $0
|
|
|
|
|
SectionSetSize ${SecDUkrainian} 0
|
|
|
|
|
${endif}
|
2012-11-11 06:12:43 +00:00
|
|
|
|
StrCpy $Search "ur_PK"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2013-05-31 02:27:08 +00:00
|
|
|
|
SectionSetFlags ${SecDUrdu} $0
|
|
|
|
|
SectionSetSize ${SecDUrdu} 0
|
2012-11-11 06:12:43 +00:00
|
|
|
|
${endif}
|
2012-11-10 06:05:19 +00:00
|
|
|
|
StrCpy $Search "vi_VN"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecDVietnamese} $0
|
|
|
|
|
SectionSetSize ${SecDVietnamese} 0
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
Call StrPoint # function from LyXUtils.nsh
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTBulgarian} $0
|
|
|
|
|
SectionSetSize ${SecTBulgarian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "ca_ES"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTCatalan} $0
|
|
|
|
|
SectionSetSize ${SecTCatalan} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "cs_CZ"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTCzech} $0
|
|
|
|
|
SectionSetSize ${SecTCzech} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "da_DK"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTDanish} $0
|
|
|
|
|
SectionSetSize ${SecTDanish} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "de_DE"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTGermanDA} $0
|
|
|
|
|
SectionSetSize ${SecTGermanDA} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "de_CH"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTGermanCH} $0
|
|
|
|
|
SectionSetSize ${SecTGermanCH} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "en_GB"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTEnglishGB} $0
|
|
|
|
|
SectionSetSize ${SecTEnglishGB} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "en_US"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTEnglishUSAU} $0
|
|
|
|
|
SectionSetSize ${SecTEnglishUSAU} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "es_ES"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTSpanish} $0
|
|
|
|
|
SectionSetSize ${SecTSpanish} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "fr_FR"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTFrench} $0
|
|
|
|
|
SectionSetSize ${SecTFrench} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "ga_IR"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTGaelic} $0
|
|
|
|
|
SectionSetSize ${SecTGaelic} 0
|
|
|
|
|
${endif}
|
2014-03-06 23:24:28 +00:00
|
|
|
|
StrCpy $Search "gl_ES"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTGalician} $0
|
|
|
|
|
SectionSetSize ${SecTGalician} 0
|
|
|
|
|
${endif}
|
2012-11-10 06:05:19 +00:00
|
|
|
|
StrCpy $Search "el_GR"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTGreek} $0
|
|
|
|
|
SectionSetSize ${SecTGreek} 0
|
|
|
|
|
${endif}
|
2013-04-28 04:03:13 +00:00
|
|
|
|
StrCpy $Search "is_IS"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTIcelandic} $0
|
|
|
|
|
SectionSetSize ${SecTIcelandic} 0
|
|
|
|
|
${endif}
|
2012-11-10 06:05:19 +00:00
|
|
|
|
StrCpy $Search "it_IT"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTItalian} $0
|
|
|
|
|
SectionSetSize ${SecTItalian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "hu_HU"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTHungarian} $0
|
|
|
|
|
SectionSetSize ${SecTHungarian} 0
|
|
|
|
|
${endif}
|
2013-04-07 23:17:23 +00:00
|
|
|
|
StrCpy $Search "nb_NO"
|
2012-11-10 06:05:19 +00:00
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2013-04-07 23:17:23 +00:00
|
|
|
|
SectionSetFlags ${SecTNorwegianNB} $0
|
|
|
|
|
SectionSetSize ${SecTNorwegianNB} 0
|
2012-11-10 06:05:19 +00:00
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "pl_PL"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTPolish} $0
|
|
|
|
|
SectionSetSize ${SecTPolish} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "pt_PT"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTPortuguese} $0
|
|
|
|
|
SectionSetSize ${SecTPortuguese} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "ro_RO"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTRomanian} $0
|
|
|
|
|
SectionSetSize ${SecTRomanian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "ru_RU"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTRussian} $0
|
|
|
|
|
SectionSetSize ${SecTRussian} 0
|
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "sl_SI"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2012-11-21 22:48:33 +00:00
|
|
|
|
SectionSetFlags ${SecTSlovenian} $0
|
|
|
|
|
SectionSetSize ${SecTSlovenian} 0
|
2012-11-10 06:05:19 +00:00
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "sk_SK"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
2012-11-21 22:48:33 +00:00
|
|
|
|
SectionSetFlags ${SecTSlovakian} $0
|
|
|
|
|
SectionSetSize ${SecTSlovakian} 0
|
2012-11-10 06:05:19 +00:00
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "sv_SE"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTSwedish} $0
|
|
|
|
|
SectionSetSize ${SecTSwedish} 0
|
2013-04-28 04:03:13 +00:00
|
|
|
|
${endif}
|
|
|
|
|
StrCpy $Search "uk_UA"
|
|
|
|
|
Call StrPoint
|
|
|
|
|
${if} $Pointer != "-1"
|
|
|
|
|
IntOp $0 ${SF_SELECTED} | ${SF_RO}
|
|
|
|
|
SectionSetFlags ${SecTUkrainian} $0
|
|
|
|
|
SectionSetSize ${SecTUkrainian} 0
|
|
|
|
|
${endif}
|
2012-11-10 06:05:19 +00:00
|
|
|
|
|
|
|
|
|
${IfNot} ${Silent}
|
|
|
|
|
Banner::destroy
|
|
|
|
|
${EndIf}
|
|
|
|
|
|
|
|
|
|
FunctionEnd
|
|
|
|
|
|
|
|
|
|
# this function is called at first after starting the uninstaller
|
|
|
|
|
Function un.onInit
|
|
|
|
|
|
|
|
|
|
!insertmacro PRINTER_INIT
|
|
|
|
|
!insertmacro MULTIUSER_UNINIT
|
|
|
|
|
|
|
|
|
|
# Check that LyX is not currently running
|
|
|
|
|
FindProcDLL::FindProc "lyx.exe"
|
|
|
|
|
${if} $R0 == "1"
|
2014-02-18 01:15:53 +00:00
|
|
|
|
MessageBox MB_OK|MB_ICONSTOP "$(UnInstallRunning)" /SD IDOK
|
2012-11-10 06:05:19 +00:00
|
|
|
|
Abort
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
# set registry root key
|
|
|
|
|
${if} $MultiUser.Privileges == "Admin"
|
|
|
|
|
${orif} $MultiUser.Privileges == "Power"
|
|
|
|
|
SetShellVarContext all
|
|
|
|
|
${else}
|
|
|
|
|
SetShellVarContext current
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
# Ascertain whether the user has sufficient privileges to uninstall.
|
|
|
|
|
# abort when LyX was installed with admin permissions but the user doesn't have administrator privileges
|
|
|
|
|
ReadRegStr $0 HKLM "${APP_UNINST_KEY}" "DisplayVersion"
|
|
|
|
|
${if} $0 != ""
|
|
|
|
|
${andif} $MultiUser.Privileges != "Admin"
|
|
|
|
|
${andif} $MultiUser.Privileges != "Power"
|
2014-02-18 01:15:53 +00:00
|
|
|
|
MessageBox MB_OK|MB_ICONSTOP "$(UnNotAdminLabel)" /SD IDOK
|
2012-11-10 06:05:19 +00:00
|
|
|
|
Abort
|
|
|
|
|
${endif}
|
2012-11-11 17:07:55 +00:00
|
|
|
|
# warning when LyX couldn't be found in the registry
|
2012-11-10 06:05:19 +00:00
|
|
|
|
${if} $0 == "" # check in HKCU
|
|
|
|
|
ReadRegStr $0 HKCU "${APP_UNINST_KEY}" "DisplayVersion"
|
|
|
|
|
${if} $0 == ""
|
2014-02-18 01:15:53 +00:00
|
|
|
|
MessageBox MB_OK|MB_ICONEXCLAMATION "$(UnNotInRegistryLabel)" /SD IDOK
|
2012-11-10 06:05:19 +00:00
|
|
|
|
${endif}
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
# Macro to investigate name of LyX's preferences folders to be able remove them
|
|
|
|
|
!insertmacro UnAppPreSuff $AppPre $AppSuff # macro from LyXUtils.nsh
|
|
|
|
|
|
|
|
|
|
# test if MiKTeX was installed together with LyX
|
2012-11-11 06:12:43 +00:00
|
|
|
|
ReadRegStr $0 SHCTX "SOFTWARE\MiKTeX.org\MiKTeX" "OnlyWithLyX"
|
2012-11-10 06:05:19 +00:00
|
|
|
|
${if} $0 == "Yes${APP_SERIES_KEY}"
|
|
|
|
|
SectionSetText 2 "MiKTeX" # names the corersponding uninstaller section
|
|
|
|
|
StrCpy $LaTeXInstalled "MiKTeX"
|
|
|
|
|
${else}
|
|
|
|
|
SectionSetText 2 "" # hides the corresponding uninstaller section
|
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
|
|
# test if JabRef was installed together with LyX
|
2012-11-11 17:07:55 +00:00
|
|
|
|
ReadRegStr $0 SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "OnlyWithLyX"
|
2012-11-10 06:05:19 +00:00
|
|
|
|
${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
|
2014-02-18 01:15:53 +00:00
|
|
|
|
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "$(UnReallyRemoveLabel)" /SD IDYES IDYES +2 # continue if yes
|
2012-11-10 06:05:19 +00:00
|
|
|
|
Abort
|
|
|
|
|
|
|
|
|
|
FunctionEnd
|
|
|
|
|
|