4 Initialization functions
7 #--------------------------------
13 # COMPONENT can be LaTeX, ImageMagick and Ghostscript
14 !macro EXTERNAL_INIT COMPONENT
16 # APP_REGKEY_SETUP = "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"
17 # where ${APP_NAME}${APP_SERIES_KEY} is something like LyX22
18 ReadRegStr $ComponentPath SHELL_CONTEXT "${APP_REGKEY_SETUP}" "${COMPONENT} Path"
20 # BIN_LATEX etc are defined in settings.nsh
21 ${If} ${FileExists} "$ComponentPath\${BIN_${COMPONENT}}"
22 # set variables like PathLaTeX
23 StrCpy $Path${COMPONENT} $ComponentPath
30 # Get directories of components from registry
32 !insertmacro EXTERNAL_INIT LaTeX
36 ReadRegStr $LyXLangName SHELL_CONTEXT "${APP_REGKEY_SETUP}" "LyX Language"
38 ${If} $LyXLangName != ""
39 StrCpy $LangName $LyXLangName
44 #--------------------------------
45 # visible installer sections
47 Section "!${APP_NAME}" SecCore
49 !if ${SETUPTYPE} == BUNDLE
50 # if no TeX was found MiKTeX will be installed which requires space
52 AddSize 1020000 # size in KB
57 Section "$(SecFileAssocTitle)" SecFileAssoc
58 StrCpy $CreateFileAssociations "true"
61 Section "$(SecDesktopTitle)" SecDesktop
62 StrCpy $CreateDesktopIcon "true"
65 # Expand the list of dictionaries by default as this was requested by several
66 # users. For the thesaurus this is was not requested because this section
67 # is by default empty.
68 SectionGroup /e "$(SecDictionaries)" SecDictionaries
70 Section /o "Afrikaans" SecDAfrikaans
71 StrCpy $DictCodes "af_ZA,$DictCodes"
75 Section /o "العربية" SecDArabic
76 StrCpy $DictCodes "ar_DZ,$DictCodes"
80 Section /o "հայերեն" SecDArmenian
81 StrCpy $DictCodes "hy_AM,$DictCodes"
85 Section /o "Bahasa Indonesia" SecDIndonesian
86 StrCpy $DictCodes "id_ID,$DictCodes"
90 Section /o "Bahasa Melayu" SecDMalayan
91 StrCpy $DictCodes "ms_MY,$DictCodes"
95 Section /o "беларускі" SecDBelarusian
96 StrCpy $DictCodes "be_BY,$DictCodes"
100 Section /o "Brezhoneg" SecDBreton
101 StrCpy $DictCodes "br_FR,$DictCodes"
105 Section /o "български" SecDBulgarian
106 StrCpy $DictCodes "bg_BG,$DictCodes"
110 Section /o "Català" SecDCatalanian
111 StrCpy $DictCodes "ca_ES,$DictCodes"
115 Section /o "Ceština" SecDCzech
116 StrCpy $DictCodes "cs_CZ,$DictCodes"
120 Section /o "Coptic" SecDCoptic
121 StrCpy $DictCodes "cop_EG,$DictCodes"
125 Section /o "Cymraeg" SecDWelsh
126 StrCpy $DictCodes "cy_GB,$DictCodes"
130 Section /o "Dansk" SecDDanish
131 StrCpy $DictCodes "da_DK,$DictCodes"
135 Section /o "Deutsch (A)" SecDGermanAT
136 StrCpy $DictCodes "de_AT,$DictCodes"
140 Section /o "Deutsch (CH)" SecDGermanCH
141 StrCpy $DictCodes "de_CH,$DictCodes"
145 Section "Deutsch (D)" SecDGermanD
146 # already installed by default
148 #StrCpy $DictCodes "de_DE,$DictCodes"
152 Section /o "Ελληνικά" SecDGreek
153 StrCpy $DictCodes "el_GR,$DictCodes"
157 Section /o "Eesti" SecDEstonian
158 StrCpy $DictCodes "et_EE,$DictCodes"
162 Section /o "English (AU)" SecDEnglishAU
163 StrCpy $DictCodes "en_AU,$DictCodes"
167 Section /o "English (CA)" SecDEnglishCA
168 StrCpy $DictCodes "en_CA,$DictCodes"
172 Section "English (GB)" SecDEnglishGB
173 # already installed by default
175 #StrCpy $DictCodes "en_GB,$DictCodes"
179 Section /o "English (NZ)" SecDEnglishNZ
180 StrCpy $DictCodes "en_NZ,$DictCodes"
184 Section "English (US)" SecDEnglishUS
185 # already installed by default
187 #StrCpy $DictCodes "en_US,$DictCodes"
191 Section "Español (ES)" SecDSpanishES
192 # already installed by default
194 #StrCpy $DictCodes "es_ES,$DictCodes"
198 Section "Español (MX)" SecDSpanishMX
199 # already installed by default
201 #StrCpy $DictCodes "es_MX,$DictCodes"
205 Section /o "Esperanto" SecDEsperanto
206 StrCpy $DictCodes "eo_EO,$DictCodes"
210 Section /o "Euskara" SecDBasque
211 StrCpy $DictCodes "eu_ES,$DictCodes"
215 Section /o "فارسی" SecDFarsi
216 StrCpy $DictCodes "fa_IR,$DictCodes"
220 Section "Français" SecDFrench
221 # already installed by default
223 #StrCpy $DictCodes "fr_FR,$DictCodes"
227 Section /o "Français (Canada)" SecDFrenchCanada
228 StrCpy $DictCodes "fr_CA,$DictCodes"
232 Section /o "Gaeilge" SecDGaelic
233 StrCpy $DictCodes "ga_IR,$DictCodes"
237 Section /o "Gàidhlig" SecDScottish
238 StrCpy $DictCodes "gd_GB,$DictCodes"
242 Section /o "Galego" SecDGalician
243 StrCpy $DictCodes "gl_ES,$DictCodes"
247 Section /o "עִברִית" SecDHebrew
248 StrCpy $DictCodes "he_IL,$DictCodes"
252 Section /o "Hrvatski" SecDCroatian
253 StrCpy $DictCodes "hr_HR,$DictCodes"
257 Section /o "Magyar" SecDHungarian
258 StrCpy $DictCodes "hu_HU,$DictCodes"
262 Section /o "हिंदी" SecDHindi
263 StrCpy $DictCodes "hi_IN,$DictCodes"
267 Section /o "Interlingua" SecDInterlingua
268 StrCpy $DictCodes "ia_IA,$DictCodes"
272 Section /o "Íslenska" SecDIcelandic
273 StrCpy $DictCodes "is_IS,$DictCodes"
277 Section /o "Italiano" SecDItalian
278 StrCpy $DictCodes "it_IT,$DictCodes"
282 Section /o "Қазақша" SecDKazakh
283 StrCpy $DictCodes "kk_KZ,$DictCodes"
287 Section /o "한국어" SecDKorean
288 StrCpy $DictCodes "ko_KR,$DictCodes"
292 Section /o "Latina" SecDLatin
293 StrCpy $DictCodes "la_LA,$DictCodes"
297 Section /o "Lietuviu" SecDLithuanian
298 StrCpy $DictCodes "lt_LT,$DictCodes"
302 Section /o "Latviešu" SecDLatvian
303 StrCpy $DictCodes "lv_LV,$DictCodes"
307 Section /o "मराठी" SecDMarathi
308 StrCpy $DictCodes "mr_IN,$DictCodes"
312 Section /o "Nederlands" SecDDutch
313 StrCpy $DictCodes "nl_NL,$DictCodes"
317 Section /o "Norsk (Bokmål)" SecDNorwegianNB
318 StrCpy $DictCodes "nb_NO,$DictCodes"
322 Section /o "Norsk (Nynorsk)" SecDNorwegianNN
323 StrCpy $DictCodes "nn_NO,$DictCodes"
327 Section /o "Occitan" SecDOccitan
328 StrCpy $DictCodes "oc_FR,$DictCodes"
332 Section /o "Polski" SecDPolish
333 StrCpy $DictCodes "pl_PL,$DictCodes"
337 Section /o "Português (BR)" SecDPortugueseBR
338 StrCpy $DictCodes "pt_BR,$DictCodes"
342 Section /o "Português (PT)" SecDPortuguesePT
343 StrCpy $DictCodes "pt_PT,$DictCodes"
347 Section /o "Româna" SecDRomanian
348 StrCpy $DictCodes "ro_RO,$DictCodes"
352 Section /o "Русский" SecDRussian
353 StrCpy $DictCodes "ru_RU,$DictCodes"
357 Section /o "Serbšcina (Dolno)" SecDSorbianD
358 StrCpy $DictCodes "dsb_DE,$DictCodes"
362 Section /o "Serbšcina (Horno)" SecDSorbianH
363 StrCpy $DictCodes "hsb_DE,$DictCodes"
367 Section /o "Shqip" SecDAlbanian
368 StrCpy $DictCodes "sq_AL,$DictCodes"
372 Section /o "Slovenšcina" SecDSlovenian
373 StrCpy $DictCodes "sl_SI,$DictCodes"
377 Section /o "Slovenský" SecDSlovakian
378 StrCpy $DictCodes "sk_SK,$DictCodes"
382 Section /o "Српски (Ћирилица)" SecDSerbianC
383 StrCpy $DictCodes "sr_RS,$DictCodes"
387 Section /o "Srpski (Latinica)" SecDSerbianL
388 StrCpy $DictCodes "sr_RS-Latin,$DictCodes"
392 Section /o "Svenska" SecDSwedish
393 StrCpy $DictCodes "sv_SE,$DictCodes"
397 Section /o "தமிழ்" SecDTamil
398 StrCpy $DictCodes "ta_IN,$DictCodes"
402 Section /o "తెలుగు" SecDTelugu
403 StrCpy $DictCodes "te_IN,$DictCodes"
407 Section /o "ไทย" SecDThai
408 StrCpy $DictCodes "th_TH,$DictCodes"
412 Section /o "Tibetan" SecDTibetan
413 StrCpy $DictCodes "bo_CN,$DictCodes"
417 Section /o "Türkmençe" SecDTurkmen
418 StrCpy $DictCodes "tk_TM,$DictCodes"
422 Section /o "Türkçe" SecDTurkish
423 StrCpy $DictCodes "tr_TR,$DictCodes"
427 Section /o "Українська" SecDUkrainian
428 StrCpy $DictCodes "uk_UA,$DictCodes"
432 Section /o "اردو" SecDUrdu
433 StrCpy $DictCodes "ur_PK,$DictCodes"
437 Section /o "Tiếng Việt" SecDVietnamese
438 StrCpy $DictCodes "vi_VN,$DictCodes"
445 SectionGroup "$(SecThesaurus)" SecThesaurus
447 Section /o "български" SecTBulgarian
448 StrCpy $ThesCodes "bg_BG,$ThesCodes"
452 Section /o "Català" SecTCatalan
453 StrCpy $ThesCodes "ca_ES,$ThesCodes"
457 Section /o "Ceština" SecTCzech
458 StrCpy $ThesCodes "cs_CZ,$ThesCodes"
462 Section /o "Dansk" SecTDanish
463 StrCpy $ThesCodes "da_DK,$ThesCodes"
467 Section /o "Deutsch (D/A)" SecTGermanDA
468 StrCpy $ThesCodes "de_DE,$ThesCodes"
472 Section /o "Deutsch (CH)" SecTGermanCH
473 StrCpy $ThesCodes "de_CH,$ThesCodes"
477 Section /o "English (AU)" SecTEnglishAU
478 StrCpy $ThesCodes "en_AU,$ThesCodes"
482 Section /o "English (GB)" SecTEnglishGB
483 StrCpy $ThesCodes "en_GB,$ThesCodes"
487 Section /o "English (US)" SecTEnglishUS
488 StrCpy $ThesCodes "en_US,$ThesCodes"
492 Section /o "Español" SecTSpanish
493 StrCpy $ThesCodes "es_ES,$ThesCodes"
497 Section /o "Français" SecTFrench
498 StrCpy $ThesCodes "fr_FR,$ThesCodes"
502 Section /o "Gaeilge" SecTGaelic
503 StrCpy $ThesCodes "ga_IR,$ThesCodes"
507 Section /o "Galego" SecTGalician
508 StrCpy $ThesCodes "gl_ES,$ThesCodes"
512 Section /o "Ελληνικά" SecTGreek
513 StrCpy $ThesCodes "el_GR,$ThesCodes"
517 Section /o "Íslenska" SecTIcelandic
518 StrCpy $ThesCodes "is_IS,$ThesCodes"
522 Section /o "Italiano" SecTItalian
523 StrCpy $ThesCodes "it_IT,$ThesCodes"
527 Section /o "Magyar" SecTHungarian
528 StrCpy $ThesCodes "hu_HU,$ThesCodes"
532 Section /o "Norsk (Bokmål)" SecTNorwegianNB
533 StrCpy $ThesCodes "nb_NO,$ThesCodes"
537 Section /o "Norsk (Nynorsk)" SecTNorwegianNN
538 StrCpy $ThesCodes "nn_NO,$ThesCodes"
542 Section /o "Polski" SecTPolish
543 StrCpy $ThesCodes "pl_PL,$ThesCodes"
547 Section /o "Português" SecTPortuguese
548 StrCpy $ThesCodes "pt_PT,$ThesCodes"
552 Section /o "Româna" SecTRomanian
553 StrCpy $ThesCodes "ro_RO,$ThesCodes"
557 Section /o "Русский" SecTRussian
558 StrCpy $ThesCodes "ru_RU,$ThesCodes"
562 Section /o "Slovenšcina" SecTSlovenian
563 StrCpy $ThesCodes "sl_SI,$ThesCodes"
567 Section /o "Slovenský" SecTSlovakian
568 StrCpy $ThesCodes "sk_SK,$ThesCodes"
572 Section /o "Svenska" SecTSwedish
573 StrCpy $ThesCodes "sv_SE,$ThesCodes"
577 Section /o "Українська" SecTUkrainian
578 StrCpy $ThesCodes "uk_UA,$ThesCodes"
584 # Section descriptions
585 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
586 !insertmacro MUI_DESCRIPTION_TEXT ${SecCore} "$(SecCoreDescription)"
587 !insertmacro MUI_DESCRIPTION_TEXT ${SecFileAssoc} "$(SecFileAssocDescription)"
588 !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktop} "$(SecDesktopDescription)"
589 !insertmacro MUI_DESCRIPTION_TEXT ${SecDictionaries} "$(SecDictionariesDescription)"
590 !insertmacro MUI_DESCRIPTION_TEXT ${SecThesaurus} "$(SecThesaurusDescription)"
591 !insertmacro MUI_FUNCTION_DESCRIPTION_END
594 # .onInit must be here after the section definition because we have to set
595 # the selection states of the dictionary sections
598 ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
599 ${if} $R0 == "5.0" # 2000
600 ${orif} $R0 == "5.1" # XP
601 ${orif} $R0 == "5.2" # 2003
602 ${orif} $R0 == "6.0" # Vista
603 MessageBox MB_OK|MB_ICONSTOP "${APP_NAME} ${APP_VERSION} requires Windows 7 or newer." /SD IDOK
607 # check that another LyX installer is not currently running
608 !if ${SETUPTYPE} == STANDARD
609 FindProcDLL::FindProc "${BundleExeFile}"
611 MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK
615 !if ${SETUPTYPE} == BUNDLE
616 FindProcDLL::FindProc "${ExeFile}"
618 MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK
623 # Check that LyX is not currently running
624 FindProcDLL::FindProc "${BIN_LYX}"
626 MessageBox MB_OK|MB_ICONSTOP "$(UnInstallRunning)" /SD IDOK
630 # read the user and computer name
631 ReadRegStr $ComputerName HKLM "System\CurrentControlSet\Control\ComputerName\ActiveComputerName" "ComputerName"
632 System::Call "advapi32::GetUserName(t .r0, *i ${NSIS_MAX_STRLEN} r1) i.r2"
635 !insertmacro MULTIUSER_INIT
637 # check if this LyX version is already installed
638 ${if} $MultiUser.Privileges == "Admin"
639 ${orif} $MultiUser.Privileges == "Power"
640 ReadRegStr $0 HKLM "${APP_UNINST_KEY}" "DisplayIcon"
642 ReadRegStr $0 HKCU "${APP_UNINST_KEY}" "DisplayIcon"
643 # handle also the case that LyX is already installed in HKLM
645 ReadRegStr $0 HKLM "${APP_UNINST_KEY}" "DisplayIcon"
649 # check if the uninstaller was acidentally deleted
650 # if so don't bother the user if he realy wants to install a new LyX over an existing one
651 # because he won't have a chance to deny this
652 StrCpy $4 $0 -10 # remove '\bin\lyx,0'
653 # (for FileCheck the variables $0 and $1 cannot be used)
654 !insertmacro FileCheck $5 "Uninstall-${APP_NAME}.exe" "$4" # macro from LyXUtils.nsh
656 Goto ForceInstallation
658 # installing over an existing installation of the same LyX release is not necessary
659 # if the users does this he most probably has a problem with LyX that can better be solved
660 # by reinstalling LyX
661 # for beta and other test releases over-installing can even cause errors
662 MessageBox MB_YESNO|MB_DEFBUTTON2|MB_ICONEXCLAMATION "$(AlreadyInstalled)" /SD IDNO IDYES ForceInstallation
667 # check if there is an existing LyX installation of the same LyX series
668 # we usually don't release more than 10 versions so with 20 we are safe to check if a newer version is installed
669 IntOp $4 ${APP_VERSION_REVISION} + 20
671 ${if} $MultiUser.Privileges == "Admin"
672 ${orif} $MultiUser.Privileges == "Power"
673 ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5" "DisplayVersion"
674 # also check for an emergency release
676 ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$51" "DisplayVersion"
679 ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5" "DisplayVersion"
680 # also check for an emergency release
682 ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$51" "DisplayVersion"
686 StrCpy $R5 $0 # store the read version number
687 StrCpy $OldVersionNumber "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5"
688 # we don't stop here because we want the latest installed version
692 ${if} $OldVersionNumber > ${APP_SERIES_KEY}
693 # store the version number and reformat it temporarily for the error message
694 StrCpy $R0 $OldVersionNumber
695 StrCpy $OldVersionNumber $R5
696 MessageBox MB_OK|MB_ICONSTOP "$(NewerInstalled)" /SD IDOK
697 StrCpy $OldVersionNumber $R0
701 # this can be reset to "true" in section SecDesktop
702 StrCpy $CreateDesktopIcon "false"
703 StrCpy $CreateFileAssociations "false"
706 # Show banner while installer is intializating
707 Banner::show /NOUNLOAD "Checking system"
712 #!if ${SETUPTYPE} == BUNDLE
713 # # don't let the installer sections appear when the programs are already installed
714 # ${if} $PathBibTeXEditor != ""
715 # SectionSetText 3 "" # hides the corresponding uninstaller section, ${SecInstJabRef}
719 # select sections of already installed spell-checker dictionaries, make them read-only
720 # and set the necessary size to 0 bytes
721 StrCpy $String $FoundDict
722 StrCpy $Search "af_ZA"
723 Call StrPoint # function from LyXUtils.nsh
724 ${if} $Pointer != "-1"
725 IntOp $0 ${SF_SELECTED} | ${SF_RO}
726 SectionSetFlags ${SecDAfrikaans} $0
727 SectionSetSize ${SecDAfrikaans} 0
729 StrCpy $Search "ar_DZ"
731 ${if} $Pointer != "-1"
732 IntOp $0 ${SF_SELECTED} | ${SF_RO}
733 SectionSetFlags ${SecDArabic} $0
734 SectionSetSize ${SecDArabic} 0
736 StrCpy $Search "hy_AM"
738 ${if} $Pointer != "-1"
739 IntOp $0 ${SF_SELECTED} | ${SF_RO}
740 SectionSetFlags ${SecDArmenian} $0
741 SectionSetSize ${SecDArmenian} 0
743 StrCpy $Search "id_ID"
745 ${if} $Pointer != "-1"
746 IntOp $0 ${SF_SELECTED} | ${SF_RO}
747 SectionSetFlags ${SecDIndonesian} $0
748 SectionSetSize ${SecDIndonesian} 0
750 StrCpy $Search "ms_MY"
752 ${if} $Pointer != "-1"
753 IntOp $0 ${SF_SELECTED} | ${SF_RO}
754 SectionSetFlags ${SecDMalayan} $0
755 SectionSetSize ${SecDMalayan} 0
757 StrCpy $Search "be_BY"
759 ${if} $Pointer != "-1"
760 IntOp $0 ${SF_SELECTED} | ${SF_RO}
761 SectionSetFlags ${SecDBelarusian} $0
762 SectionSetSize ${SecDBelarusian} 0
764 StrCpy $Search "br_FR"
766 ${if} $Pointer != "-1"
767 IntOp $0 ${SF_SELECTED} | ${SF_RO}
768 SectionSetFlags ${SecDBreton} $0
769 SectionSetSize ${SecDBreton} 0
771 StrCpy $Search "bg_BG"
773 ${if} $Pointer != "-1"
774 IntOp $0 ${SF_SELECTED} | ${SF_RO}
775 SectionSetFlags ${SecDBulgarian} $0
776 SectionSetSize ${SecDBulgarian} 0
778 StrCpy $Search "ca_ES"
780 ${if} $Pointer != "-1"
781 IntOp $0 ${SF_SELECTED} | ${SF_RO}
782 SectionSetFlags ${SecDCatalanian} $0
783 SectionSetSize ${SecDCatalanian} 0
785 StrCpy $Search "cs_CZ"
787 ${if} $Pointer != "-1"
788 IntOp $0 ${SF_SELECTED} | ${SF_RO}
789 SectionSetFlags ${SecDCzech} $0
790 SectionSetSize ${SecDCzech} 0
793 StrCpy $Search "cop_EG"
795 ${if} $Pointer != "-1"
796 IntOp $0 ${SF_SELECTED} | ${SF_RO}
797 SectionSetFlags ${SecDCoptic} $0
798 SectionSetSize ${SecDCoptic} 0
800 StrCpy $Search "cy_GB"
802 ${if} $Pointer != "-1"
803 IntOp $0 ${SF_SELECTED} | ${SF_RO}
804 SectionSetFlags ${SecDWelsh} $0
805 SectionSetSize ${SecDWelsh} 0
807 StrCpy $Search "da_DK"
809 ${if} $Pointer != "-1"
810 IntOp $0 ${SF_SELECTED} | ${SF_RO}
811 SectionSetFlags ${SecDDanish} $0
812 SectionSetSize ${SecDDanish} 0
814 StrCpy $Search "de_AT"
816 ${if} $Pointer != "-1"
817 IntOp $0 ${SF_SELECTED} | ${SF_RO}
818 SectionSetFlags ${SecDGermanAT} $0
819 SectionSetSize ${SecDGermanAT} 0
821 StrCpy $Search "de_CH"
823 ${if} $Pointer != "-1"
824 IntOp $0 ${SF_SELECTED} | ${SF_RO}
825 SectionSetFlags ${SecDGermanCH} $0
826 SectionSetSize ${SecDGermanCH} 0
828 StrCpy $Search "de_DE"
830 ${if} $Pointer != "-1"
831 IntOp $0 ${SF_SELECTED} | ${SF_RO}
832 SectionSetFlags ${SecDGermanD} $0
833 SectionSetSize ${SecDGermanD} 0
835 StrCpy $Search "el_GR"
837 ${if} $Pointer != "-1"
838 IntOp $0 ${SF_SELECTED} | ${SF_RO}
839 SectionSetFlags ${SecDGreek} $0
840 SectionSetSize ${SecDGreek} 0
842 StrCpy $Search "et_EE"
844 ${if} $Pointer != "-1"
845 IntOp $0 ${SF_SELECTED} | ${SF_RO}
846 SectionSetFlags ${SecDEstonian} $0
847 SectionSetSize ${SecDEstonian} 0
849 StrCpy $Search "en_AU"
851 ${if} $Pointer != "-1"
852 IntOp $0 ${SF_SELECTED} | ${SF_RO}
853 SectionSetFlags ${SecDEnglishAU} $0
854 SectionSetSize ${SecDEnglishAU} 0
856 StrCpy $Search "en_CA"
858 ${if} $Pointer != "-1"
859 IntOp $0 ${SF_SELECTED} | ${SF_RO}
860 SectionSetFlags ${SecDEnglishCA} $0
861 SectionSetSize ${SecDEnglishCA} 0
863 StrCpy $Search "en_GB"
865 ${if} $Pointer != "-1"
866 IntOp $0 ${SF_SELECTED} | ${SF_RO}
867 SectionSetFlags ${SecDEnglishGB} $0
868 SectionSetSize ${SecDEnglishGB} 0
870 StrCpy $Search "en_NZ"
872 ${if} $Pointer != "-1"
873 IntOp $0 ${SF_SELECTED} | ${SF_RO}
874 SectionSetFlags ${SecDEnglishNZ} $0
875 SectionSetSize ${SecDEnglishNZ} 0
877 StrCpy $Search "en_US"
879 ${if} $Pointer != "-1"
880 IntOp $0 ${SF_SELECTED} | ${SF_RO}
881 SectionSetFlags ${SecDEnglishUS} $0
882 SectionSetSize ${SecDEnglishUS} 0
884 StrCpy $Search "es_ES"
886 ${if} $Pointer != "-1"
887 IntOp $0 ${SF_SELECTED} | ${SF_RO}
888 SectionSetFlags ${SecDSpanishES} $0
889 SectionSetSize ${SecDSpanishES} 0
891 StrCpy $Search "es_MX"
893 ${if} $Pointer != "-1"
894 IntOp $0 ${SF_SELECTED} | ${SF_RO}
895 SectionSetFlags ${SecDSpanishMX} $0
896 SectionSetSize ${SecDSpanishMX} 0
898 StrCpy $Search "eo_EO"
900 ${if} $Pointer != "-1"
901 IntOp $0 ${SF_SELECTED} | ${SF_RO}
902 SectionSetFlags ${SecDEsperanto} $0
903 SectionSetSize ${SecDEsperanto} 0
905 StrCpy $Search "eu_ES"
907 ${if} $Pointer != "-1"
908 IntOp $0 ${SF_SELECTED} | ${SF_RO}
909 SectionSetFlags ${SecDBasque} $0
910 SectionSetSize ${SecDBasque} 0
912 StrCpy $Search "fa_IR"
914 ${if} $Pointer != "-1"
915 IntOp $0 ${SF_SELECTED} | ${SF_RO}
916 SectionSetFlags ${SecDFarsi} $0
917 SectionSetSize ${SecDFarsi} 0
919 StrCpy $Search "fr_CA"
921 ${if} $Pointer != "-1"
922 IntOp $0 ${SF_SELECTED} | ${SF_RO}
923 SectionSetFlags ${SecDFrenchCanada} $0
924 SectionSetSize ${SecDFrenchCanada} 0
926 StrCpy $Search "fr_FR"
928 ${if} $Pointer != "-1"
929 IntOp $0 ${SF_SELECTED} | ${SF_RO}
930 SectionSetFlags ${SecDFrench} $0
931 SectionSetSize ${SecDFrench} 0
933 StrCpy $Search "ga_IR"
935 ${if} $Pointer != "-1"
936 IntOp $0 ${SF_SELECTED} | ${SF_RO}
937 SectionSetFlags ${SecDGaelic} $0
938 SectionSetSize ${SecDGaelic} 0
940 StrCpy $Search "gd_GB"
942 ${if} $Pointer != "-1"
943 IntOp $0 ${SF_SELECTED} | ${SF_RO}
944 SectionSetFlags ${SecDScottish} $0
945 SectionSetSize ${SecDScottish} 0
947 StrCpy $Search "gl_ES"
949 ${if} $Pointer != "-1"
950 IntOp $0 ${SF_SELECTED} | ${SF_RO}
951 SectionSetFlags ${SecDGalician} $0
952 SectionSetSize ${SecDGalician} 0
954 StrCpy $Search "he_IL"
956 ${if} $Pointer != "-1"
957 IntOp $0 ${SF_SELECTED} | ${SF_RO}
958 SectionSetFlags ${SecDHebrew} $0
959 SectionSetSize ${SecDHebrew} 0
961 StrCpy $Search "hi_IN"
963 ${if} $Pointer != "-1"
964 IntOp $0 ${SF_SELECTED} | ${SF_RO}
965 SectionSetFlags ${SecDHindi} $0
966 SectionSetSize ${SecDHindi} 0
968 StrCpy $Search "hr_HR"
970 ${if} $Pointer != "-1"
971 IntOp $0 ${SF_SELECTED} | ${SF_RO}
972 SectionSetFlags ${SecDCroatian} $0
973 SectionSetSize ${SecDCroatian} 0
975 StrCpy $Search "hu_HU"
977 ${if} $Pointer != "-1"
978 IntOp $0 ${SF_SELECTED} | ${SF_RO}
979 SectionSetFlags ${SecDHungarian} $0
980 SectionSetSize ${SecDHungarian} 0
982 StrCpy $Search "ia_IA"
984 ${if} $Pointer != "-1"
985 IntOp $0 ${SF_SELECTED} | ${SF_RO}
986 SectionSetFlags ${SecDInterlingua} $0
987 SectionSetSize ${SecDInterlingua} 0
989 StrCpy $Search "is_IS"
991 ${if} $Pointer != "-1"
992 IntOp $0 ${SF_SELECTED} | ${SF_RO}
993 SectionSetFlags ${SecDIcelandic} $0
994 SectionSetSize ${SecDIcelandic} 0
996 StrCpy $Search "it_IT"
998 ${if} $Pointer != "-1"
999 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1000 SectionSetFlags ${SecDItalian} $0
1001 SectionSetSize ${SecDItalian} 0
1003 StrCpy $Search "kk_KZ"
1005 ${if} $Pointer != "-1"
1006 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1007 SectionSetFlags ${SecDKazakh} $0
1008 SectionSetSize ${SecDKazakh} 0
1010 StrCpy $Search "ko_KR"
1012 ${if} $Pointer != "-1"
1013 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1014 SectionSetFlags ${SecDKorean} $0
1015 SectionSetSize ${SecDKorean} 0
1017 StrCpy $Search "la_LA"
1019 ${if} $Pointer != "-1"
1020 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1021 SectionSetFlags ${SecDLatin} $0
1022 SectionSetSize ${SecDLatin} 0
1024 StrCpy $Search "lt_LT"
1026 ${if} $Pointer != "-1"
1027 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1028 SectionSetFlags ${SecDLithuanian} $0
1029 SectionSetSize ${SecDLithuanian} 0
1031 StrCpy $Search "lv_LV"
1033 ${if} $Pointer != "-1"
1034 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1035 SectionSetFlags ${SecDLatvian} $0
1036 SectionSetSize ${SecDLatvian} 0
1038 StrCpy $Search "mr_IN"
1040 ${if} $Pointer != "-1"
1041 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1042 SectionSetFlags ${SecDMarathi} $0
1043 SectionSetSize ${SecDMarathi} 0
1045 StrCpy $Search "nl_NL"
1047 ${if} $Pointer != "-1"
1048 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1049 SectionSetFlags ${SecDDutch} $0
1050 SectionSetSize ${SecDDutch} 0
1052 StrCpy $Search "nb_NO"
1054 ${if} $Pointer != "-1"
1055 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1056 SectionSetFlags ${SecDNorwegianNB} $0
1057 SectionSetSize ${SecDNorwegianNB} 0
1059 StrCpy $Search "nn_NO"
1061 ${if} $Pointer != "-1"
1062 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1063 SectionSetFlags ${SecDNorwegianNN} $0
1064 SectionSetSize ${SecDNorwegianNN} 0
1066 StrCpy $Search "oc_FR"
1068 ${if} $Pointer != "-1"
1069 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1070 SectionSetFlags ${SecDOccitan} $0
1071 SectionSetSize ${SecDOccitan} 0
1073 StrCpy $Search "pl_PL"
1075 ${if} $Pointer != "-1"
1076 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1077 SectionSetFlags ${SecDPolish} $0
1078 SectionSetSize ${SecDPolish} 0
1080 StrCpy $Search "pt_BR"
1082 ${if} $Pointer != "-1"
1083 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1084 SectionSetFlags ${SecDPortugueseBR} $0
1085 SectionSetSize ${SecDPortugueseBR} 0
1087 StrCpy $Search "pt_PT"
1089 ${if} $Pointer != "-1"
1090 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1091 SectionSetFlags ${SecDPortuguesePT} $0
1092 SectionSetSize ${SecDPortuguesePT} 0
1094 StrCpy $Search "ro_RO"
1096 ${if} $Pointer != "-1"
1097 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1098 SectionSetFlags ${SecDRomanian} $0
1099 SectionSetSize ${SecDRomanian} 0
1101 StrCpy $Search "ru_RU"
1103 ${if} $Pointer != "-1"
1104 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1105 SectionSetFlags ${SecDRussian} $0
1106 SectionSetSize ${SecDRussian} 0
1108 StrCpy $Search "dsb_DE"
1110 ${if} $Pointer != "-1"
1111 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1112 SectionSetFlags ${SecDSorbianD} $0
1113 SectionSetSize ${SecDSorbianD} 0
1115 StrCpy $Search "hsb_DE"
1117 ${if} $Pointer != "-1"
1118 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1119 SectionSetFlags ${SecDSorbianH} $0
1120 SectionSetSize ${SecDSorbianH} 0
1122 StrCpy $Search "sq_AL"
1124 ${if} $Pointer != "-1"
1125 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1126 SectionSetFlags ${SecDAlbanian} $0
1127 SectionSetSize ${SecDAlbanian} 0
1129 StrCpy $Search "sl_SI"
1131 ${if} $Pointer != "-1"
1132 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1133 SectionSetFlags ${SecDSlovenian} $0
1134 SectionSetSize ${SecDSlovenian} 0
1136 StrCpy $Search "sk_SK"
1138 ${if} $Pointer != "-1"
1139 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1140 SectionSetFlags ${SecDSlovakian} $0
1141 SectionSetSize ${SecDSlovakian} 0
1143 StrCpy $Search "sr_RS"
1145 ${if} $Pointer != "-1"
1146 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1147 SectionSetFlags ${SecDSerbianC} $0
1148 SectionSetSize ${SecDSerbianC} 0
1150 StrCpy $Search "sr_RS-Latin"
1152 ${if} $Pointer != "-1"
1153 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1154 SectionSetFlags ${SecDSerbianL} $0
1155 SectionSetSize ${SecDSerbianL} 0
1157 StrCpy $Search "sv_SE"
1159 ${if} $Pointer != "-1"
1160 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1161 SectionSetFlags ${SecDSwedish} $0
1162 SectionSetSize ${SecDSwedish} 0
1164 StrCpy $Search "ta_IN"
1166 ${if} $Pointer != "-1"
1167 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1168 SectionSetFlags ${SecDTamil} $0
1169 SectionSetSize ${SecDTamil} 0
1171 StrCpy $Search "te_IN"
1173 ${if} $Pointer != "-1"
1174 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1175 SectionSetFlags ${SecDTelugu} $0
1176 SectionSetSize ${SecDTelugu} 0
1178 StrCpy $Search "th_TH"
1180 ${if} $Pointer != "-1"
1181 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1182 SectionSetFlags ${SecDThai} $0
1183 SectionSetSize ${SecDThai} 0
1185 StrCpy $Search "bo_CN"
1187 ${if} $Pointer != "-1"
1188 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1189 SectionSetFlags ${SecDTibetan} $0
1190 SectionSetSize ${SecDTibetan} 0
1192 StrCpy $Search "tk_TM"
1194 ${if} $Pointer != "-1"
1195 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1196 SectionSetFlags ${SecDTurkmen} $0
1197 SectionSetSize ${SecDTurkmen} 0
1199 StrCpy $Search "tr_TR"
1201 ${if} $Pointer != "-1"
1202 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1203 SectionSetFlags ${SecDTurkish} $0
1204 SectionSetSize ${SecDTurkish} 0
1206 StrCpy $Search "uk_UA"
1208 ${if} $Pointer != "-1"
1209 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1210 SectionSetFlags ${SecDUkrainian} $0
1211 SectionSetSize ${SecDUkrainian} 0
1213 StrCpy $Search "ur_PK"
1215 ${if} $Pointer != "-1"
1216 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1217 SectionSetFlags ${SecDUrdu} $0
1218 SectionSetSize ${SecDUrdu} 0
1220 StrCpy $Search "vi_VN"
1222 ${if} $Pointer != "-1"
1223 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1224 SectionSetFlags ${SecDVietnamese} $0
1225 SectionSetSize ${SecDVietnamese} 0
1228 # select sections of already installed thesaurus dictionaries, make them read-only
1229 # and set the necessary size to 0 bytes
1230 StrCpy $String $FoundThes
1231 StrCpy $Search "bg_BG"
1232 Call StrPoint # function from LyXUtils.nsh
1233 ${if} $Pointer != "-1"
1234 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1235 SectionSetFlags ${SecTBulgarian} $0
1236 SectionSetSize ${SecTBulgarian} 0
1238 StrCpy $Search "ca_ES"
1240 ${if} $Pointer != "-1"
1241 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1242 SectionSetFlags ${SecTCatalan} $0
1243 SectionSetSize ${SecTCatalan} 0
1245 StrCpy $Search "cs_CZ"
1247 ${if} $Pointer != "-1"
1248 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1249 SectionSetFlags ${SecTCzech} $0
1250 SectionSetSize ${SecTCzech} 0
1252 StrCpy $Search "da_DK"
1254 ${if} $Pointer != "-1"
1255 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1256 SectionSetFlags ${SecTDanish} $0
1257 SectionSetSize ${SecTDanish} 0
1259 StrCpy $Search "de_DE"
1261 ${if} $Pointer != "-1"
1262 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1263 SectionSetFlags ${SecTGermanDA} $0
1264 SectionSetSize ${SecTGermanDA} 0
1266 StrCpy $Search "de_CH"
1268 ${if} $Pointer != "-1"
1269 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1270 SectionSetFlags ${SecTGermanCH} $0
1271 SectionSetSize ${SecTGermanCH} 0
1273 StrCpy $Search "en_AU"
1275 ${if} $Pointer != "-1"
1276 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1277 SectionSetFlags ${SecTEnglishAU} $0
1278 SectionSetSize ${SecTEnglishAU} 0
1280 StrCpy $Search "en_GB"
1282 ${if} $Pointer != "-1"
1283 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1284 SectionSetFlags ${SecTEnglishGB} $0
1285 SectionSetSize ${SecTEnglishGB} 0
1287 StrCpy $Search "en_US"
1289 ${if} $Pointer != "-1"
1290 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1291 SectionSetFlags ${SecTEnglishUS} $0
1292 SectionSetSize ${SecTEnglishUS} 0
1294 StrCpy $Search "es_ES"
1296 ${if} $Pointer != "-1"
1297 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1298 SectionSetFlags ${SecTSpanish} $0
1299 SectionSetSize ${SecTSpanish} 0
1301 StrCpy $Search "fr_FR"
1303 ${if} $Pointer != "-1"
1304 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1305 SectionSetFlags ${SecTFrench} $0
1306 SectionSetSize ${SecTFrench} 0
1308 StrCpy $Search "ga_IR"
1310 ${if} $Pointer != "-1"
1311 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1312 SectionSetFlags ${SecTGaelic} $0
1313 SectionSetSize ${SecTGaelic} 0
1315 StrCpy $Search "gl_ES"
1317 ${if} $Pointer != "-1"
1318 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1319 SectionSetFlags ${SecTGalician} $0
1320 SectionSetSize ${SecTGalician} 0
1322 StrCpy $Search "el_GR"
1324 ${if} $Pointer != "-1"
1325 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1326 SectionSetFlags ${SecTGreek} $0
1327 SectionSetSize ${SecTGreek} 0
1329 StrCpy $Search "is_IS"
1331 ${if} $Pointer != "-1"
1332 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1333 SectionSetFlags ${SecTIcelandic} $0
1334 SectionSetSize ${SecTIcelandic} 0
1336 StrCpy $Search "it_IT"
1338 ${if} $Pointer != "-1"
1339 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1340 SectionSetFlags ${SecTItalian} $0
1341 SectionSetSize ${SecTItalian} 0
1343 StrCpy $Search "hu_HU"
1345 ${if} $Pointer != "-1"
1346 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1347 SectionSetFlags ${SecTHungarian} $0
1348 SectionSetSize ${SecTHungarian} 0
1350 StrCpy $Search "nb_NO"
1352 ${if} $Pointer != "-1"
1353 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1354 SectionSetFlags ${SecTNorwegianNB} $0
1355 SectionSetSize ${SecTNorwegianNB} 0
1357 StrCpy $Search "nn_NO"
1359 ${if} $Pointer != "-1"
1360 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1361 SectionSetFlags ${SecTNorwegianNN} $0
1362 SectionSetSize ${SecTNorwegianNN} 0
1364 StrCpy $Search "pl_PL"
1366 ${if} $Pointer != "-1"
1367 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1368 SectionSetFlags ${SecTPolish} $0
1369 SectionSetSize ${SecTPolish} 0
1371 StrCpy $Search "pt_PT"
1373 ${if} $Pointer != "-1"
1374 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1375 SectionSetFlags ${SecTPortuguese} $0
1376 SectionSetSize ${SecTPortuguese} 0
1378 StrCpy $Search "ro_RO"
1380 ${if} $Pointer != "-1"
1381 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1382 SectionSetFlags ${SecTRomanian} $0
1383 SectionSetSize ${SecTRomanian} 0
1385 StrCpy $Search "ru_RU"
1387 ${if} $Pointer != "-1"
1388 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1389 SectionSetFlags ${SecTRussian} $0
1390 SectionSetSize ${SecTRussian} 0
1392 StrCpy $Search "sl_SI"
1394 ${if} $Pointer != "-1"
1395 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1396 SectionSetFlags ${SecTSlovenian} $0
1397 SectionSetSize ${SecTSlovenian} 0
1399 StrCpy $Search "sk_SK"
1401 ${if} $Pointer != "-1"
1402 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1403 SectionSetFlags ${SecTSlovakian} $0
1404 SectionSetSize ${SecTSlovakian} 0
1406 StrCpy $Search "sv_SE"
1408 ${if} $Pointer != "-1"
1409 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1410 SectionSetFlags ${SecTSwedish} $0
1411 SectionSetSize ${SecTSwedish} 0
1413 StrCpy $Search "uk_UA"
1415 ${if} $Pointer != "-1"
1416 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1417 SectionSetFlags ${SecTUkrainian} $0
1418 SectionSetSize ${SecTUkrainian} 0
1427 # this function is called at first after starting the uninstaller
1430 !insertmacro MULTIUSER_UNINIT
1432 # Check that LyX is not currently running
1433 FindProcDLL::FindProc "${BIN_LYX}"
1435 MessageBox MB_OK|MB_ICONSTOP "$(UnInstallRunning)" /SD IDOK
1439 # set registry root key
1440 ${if} $MultiUser.Privileges == "Admin"
1441 ${orif} $MultiUser.Privileges == "Power"
1442 SetShellVarContext all
1444 SetShellVarContext current
1447 # Ascertain whether the user has sufficient privileges to uninstall.
1448 # abort when LyX was installed with admin permissions but the user doesn't have administrator privileges
1449 ReadRegStr $0 HKLM "${APP_UNINST_KEY}" "DisplayVersion"
1451 ${andif} $MultiUser.Privileges != "Admin"
1452 ${andif} $MultiUser.Privileges != "Power"
1453 MessageBox MB_OK|MB_ICONSTOP "$(UnNotAdminLabel)" /SD IDOK
1456 # warning when LyX couldn't be found in the registry
1457 ${if} $0 == "" # check in HKCU
1458 ReadRegStr $0 HKCU "${APP_UNINST_KEY}" "DisplayVersion"
1460 MessageBox MB_OK|MB_ICONEXCLAMATION "$(UnNotInRegistryLabel)" /SD IDOK
1464 # Macro to investigate name of LyX's preferences folders to be able remove them
1465 !insertmacro UnAppPreSuff $AppPre $AppSuff # macro from LyXUtils.nsh
1467 # test if MiKTeX was installed together with LyX
1468 ReadRegStr $0 SHCTX "SOFTWARE\MiKTeX.org\MiKTeX" "OnlyWithLyX"
1469 ${if} $0 == "Yes${APP_SERIES_KEY}"
1470 SectionSetText 2 "MiKTeX" # names the corersponding uninstaller section
1471 StrCpy $LaTeXInstalled "MiKTeX"
1473 SectionSetText 2 "" # hides the corresponding uninstaller section
1476 # question message if the user really wants to uninstall LyX
1477 MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "$(UnReallyRemoveLabel)" /SD IDYES IDYES +2 # continue if yes