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 LyX\220
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 "$(SecFileAssocTitle)" SecFileAssoc
48 StrCpy $CreateFileAssociations "true"
51 Section "$(SecDesktopTitle)" SecDesktop
52 StrCpy $CreateDesktopIcon "true"
55 # Expand the list of dictionaries by default as this was requested by several
56 # users. For the thesaurus this is was not requested because this section
57 # is by default empty.
58 SectionGroup /e "$(SecDictionaries)" SecDictionaries
60 Section /o "Afrikaans" SecDAfrikaans
61 StrCpy $DictCodes "af_ZA,$DictCodes"
65 Section /o "العربية" SecDArabic
66 StrCpy $DictCodes "ar_SA,$DictCodes"
70 Section /o "հայերեն" SecDArmenian
71 StrCpy $DictCodes "hy_AM,$DictCodes"
75 Section /o "Bahasa Indonesia" SecDIndonesian
76 StrCpy $DictCodes "id_ID,$DictCodes"
80 Section /o "Bahasa Melayu" SecDMalayan
81 StrCpy $DictCodes "ms_MY,$DictCodes"
85 Section /o "беларускі" SecDBelarusian
86 StrCpy $DictCodes "be_BY,$DictCodes"
90 Section /o "Brezhoneg" SecDBreton
91 StrCpy $DictCodes "br_FR,$DictCodes"
95 Section /o "български" SecDBulgarian
96 StrCpy $DictCodes "bg_BG,$DictCodes"
100 Section /o "Català" SecDCatalanian
101 StrCpy $DictCodes "ca_ES,$DictCodes"
105 Section /o "Ceština" SecDCzech
106 StrCpy $DictCodes "cs_CZ,$DictCodes"
110 Section /o "Coptic" SecDCoptic
111 StrCpy $DictCodes "cop_EG,$DictCodes"
115 Section /o "Cymraeg" SecDWelsh
116 StrCpy $DictCodes "cy_GB,$DictCodes"
120 Section /o "Dansk" SecDDanish
121 StrCpy $DictCodes "da_DK,$DictCodes"
125 Section /o "Deutsch (A)" SecDGermanAT
126 StrCpy $DictCodes "de_AT,$DictCodes"
130 Section /o "Deutsch (CH)" SecDGermanCH
131 StrCpy $DictCodes "de_CH,$DictCodes"
135 Section "Deutsch (D)" SecDGermanD
136 # already installed by default
138 #StrCpy $DictCodes "de_DE,$DictCodes"
142 Section /o "Ελληνικά" SecDGreek
143 StrCpy $DictCodes "el_GR,$DictCodes"
147 Section /o "Eesti" SecDEstonian
148 StrCpy $DictCodes "et_EE,$DictCodes"
152 Section /o "English (AU)" SecDEnglishAU
153 StrCpy $DictCodes "en_AU,$DictCodes"
157 Section /o "English (CA)" SecDEnglishCA
158 StrCpy $DictCodes "en_CA,$DictCodes"
162 Section "English (GB)" SecDEnglishGB
163 # already installed by default
165 #StrCpy $DictCodes "en_GB,$DictCodes"
169 Section /o "English (NZ)" SecDEnglishNZ
170 StrCpy $DictCodes "en_NZ,$DictCodes"
174 Section "English (US)" SecDEnglishUS
175 # already installed by default
177 #StrCpy $DictCodes "en_US,$DictCodes"
181 Section "Español (ES)" SecDSpanishES
182 # already installed by default
184 #StrCpy $DictCodes "es_ES,$DictCodes"
188 Section "Español (MX)" SecDSpanishMX
189 # already installed by default
191 #StrCpy $DictCodes "es_MX,$DictCodes"
195 Section /o "Esperanto" SecDEsperanto
196 StrCpy $DictCodes "eo_EO,$DictCodes"
200 Section /o "Euskara" SecDBasque
201 StrCpy $DictCodes "eu_ES,$DictCodes"
205 Section /o "فارسی" SecDFarsi
206 StrCpy $DictCodes "fa_IR,$DictCodes"
210 Section "Français" SecDFrench
211 # already installed by default
213 #StrCpy $DictCodes "fr_FR,$DictCodes"
217 Section /o "Français (Canada)" SecDFrenchCanada
218 StrCpy $DictCodes "fr_CA,$DictCodes"
222 Section /o "Gaeilge" SecDGaelic
223 StrCpy $DictCodes "ga_IR,$DictCodes"
227 Section /o "Gàidhlig" SecDScottish
228 StrCpy $DictCodes "gd_GB,$DictCodes"
232 Section /o "Galego" SecDGalician
233 StrCpy $DictCodes "gl_ES,$DictCodes"
237 Section /o "ქართული ენა" SecDGeorgian
238 StrCpy $DictCodes "ka_GE,$DictCodes"
242 Section /o "עִברִית" SecDHebrew
243 StrCpy $DictCodes "he_IL,$DictCodes"
247 Section /o "Hrvatski" SecDCroatian
248 StrCpy $DictCodes "hr_HR,$DictCodes"
252 Section /o "Magyar" SecDHungarian
253 StrCpy $DictCodes "hu_HU,$DictCodes"
257 Section /o "हिंदी" SecDHindi
258 StrCpy $DictCodes "hi_IN,$DictCodes"
262 Section /o "Interlingua" SecDInterlingua
263 StrCpy $DictCodes "ia_IA,$DictCodes"
267 Section /o "Íslenska" SecDIcelandic
268 StrCpy $DictCodes "is_IS,$DictCodes"
272 Section /o "Italiano" SecDItalian
273 StrCpy $DictCodes "it_IT,$DictCodes"
277 Section /o "Қазақша" SecDKazakh
278 StrCpy $DictCodes "kk_KZ,$DictCodes"
282 Section /o "한국어" SecDKorean
283 StrCpy $DictCodes "ko_KR,$DictCodes"
287 Section /o "Latina" SecDLatin
288 StrCpy $DictCodes "la_LA,$DictCodes"
292 Section /o "Lietuviu" SecDLithuanian
293 StrCpy $DictCodes "lt_LT,$DictCodes"
297 Section /o "Latviešu" SecDLatvian
298 StrCpy $DictCodes "lv_LV,$DictCodes"
302 Section /o "मराठी" SecDMarathi
303 StrCpy $DictCodes "mr_IN,$DictCodes"
307 Section /o "Nederlands" SecDDutch
308 StrCpy $DictCodes "nl_NL,$DictCodes"
312 Section /o "Norsk (Bokmål)" SecDNorwegianNB
313 StrCpy $DictCodes "nb_NO,$DictCodes"
317 Section /o "Norsk (Nynorsk)" SecDNorwegianNN
318 StrCpy $DictCodes "nn_NO,$DictCodes"
322 Section /o "Occitan" SecDOccitan
323 StrCpy $DictCodes "oc_FR,$DictCodes"
327 Section /o "Polski" SecDPolish
328 StrCpy $DictCodes "pl_PL,$DictCodes"
332 Section /o "Português (BR)" SecDPortugueseBR
333 StrCpy $DictCodes "pt_BR,$DictCodes"
337 Section /o "Português (PT)" SecDPortuguesePT
338 StrCpy $DictCodes "pt_PT,$DictCodes"
342 Section /o "Româna" SecDRomanian
343 StrCpy $DictCodes "ro_RO,$DictCodes"
347 Section /o "Русский" SecDRussian
348 StrCpy $DictCodes "ru_RU,$DictCodes"
352 Section /o "Serbšcina (Dolno)" SecDSorbianD
353 StrCpy $DictCodes "dsb_DE,$DictCodes"
357 Section /o "Serbšcina (Horno)" SecDSorbianH
358 StrCpy $DictCodes "hsb_DE,$DictCodes"
362 Section /o "Shqip" SecDAlbanian
363 StrCpy $DictCodes "sq_AL,$DictCodes"
367 Section /o "Slovenšcina" SecDSlovenian
368 StrCpy $DictCodes "sl_SI,$DictCodes"
372 Section /o "Slovenský" SecDSlovakian
373 StrCpy $DictCodes "sk_SK,$DictCodes"
377 Section /o "Српски (Ћирилица)" SecDSerbianC
378 StrCpy $DictCodes "sr_RS,$DictCodes"
382 Section /o "Srpski (Latinica)" SecDSerbianL
383 StrCpy $DictCodes "sr_RS-Latin,$DictCodes"
387 Section /o "Svenska" SecDSwedish
388 StrCpy $DictCodes "sv_SE,$DictCodes"
392 Section /o "தமிழ்" SecDTamil
393 StrCpy $DictCodes "ta_IN,$DictCodes"
397 Section /o "తెలుగు" SecDTelugu
398 StrCpy $DictCodes "te_IN,$DictCodes"
402 Section /o "ไทย" SecDThai
403 StrCpy $DictCodes "th_TH,$DictCodes"
407 Section /o "Tibetan" SecDTibetan
408 StrCpy $DictCodes "bo_CN,$DictCodes"
412 Section /o "Türkmençe" SecDTurkmen
413 StrCpy $DictCodes "tk_TM,$DictCodes"
417 Section /o "Türkçe" SecDTurkish
418 StrCpy $DictCodes "tr_TR,$DictCodes"
422 Section /o "Українська" SecDUkrainian
423 StrCpy $DictCodes "uk_UA,$DictCodes"
427 Section /o "اردو" SecDUrdu
428 StrCpy $DictCodes "ur_PK,$DictCodes"
432 Section /o "Tiếng Việt" SecDVietnamese
433 StrCpy $DictCodes "vi_VN,$DictCodes"
440 SectionGroup "$(SecThesaurus)" SecThesaurus
442 Section /o "العربية" SecTArabic
443 StrCpy $ThesCodes "ar_SA,$ThesCodes"
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 ${SecFileAssoc} "$(SecFileAssocDescription)"
587 !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktop} "$(SecDesktopDescription)"
588 !insertmacro MUI_DESCRIPTION_TEXT ${SecDictionaries} "$(SecDictionariesDescription)"
589 !insertmacro MUI_DESCRIPTION_TEXT ${SecThesaurus} "$(SecThesaurusDescription)"
590 !insertmacro MUI_FUNCTION_DESCRIPTION_END
593 # .onInit must be here after the section definition because we have to set
594 # the selection states of the dictionary sections
597 !if ${APP_VERSION_ACHITECHTURE} = 64
598 ${IfNot} ${RunningX64}
599 MessageBox MB_OK|MB_ICONSTOP "Cannot install a 64 bit app on 32 bit Windows, please use the 32 bit installer" /SD IDOK
604 SetRegView ${APP_VERSION_ACHITECHTURE}
606 ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
607 ${if} $R0 == "5.0" # 2000
608 ${orif} $R0 == "5.1" # XP
609 ${orif} $R0 == "5.2" # 2003
610 ${orif} $R0 == "6.0" # Vista
611 MessageBox MB_OK|MB_ICONSTOP "${APP_NAME} ${APP_VERSION} requires Windows 7 or newer." /SD IDOK
615 # Check that LyX is not currently running
616 FindProcDLL::FindProc "${BIN_LYX}"
618 MessageBox MB_OK|MB_ICONSTOP "$(UnInstallRunning)" /SD IDOK
622 !insertmacro MULTIUSER_INIT
624 # check if this LyX version is already installed
625 ${if} $MultiUser.Privileges == "Admin"
626 ${orif} $MultiUser.Privileges == "Power"
627 ReadRegStr $0 HKLM "${APP_UNINST_KEY}" "DisplayIcon"
629 ReadRegStr $0 HKCU "${APP_UNINST_KEY}" "DisplayIcon"
630 # handle also the case that LyX is already installed in HKLM
632 ReadRegStr $0 HKLM "${APP_UNINST_KEY}" "DisplayIcon"
636 # check if the uninstaller was acidentally deleted
637 # if so don't bother the user if he realy wants to install a new LyX over an existing one
638 # because he won't have a chance to deny this
639 StrCpy $4 $0 -12 # remove '\bin\lyx.exe'
640 # (for FileCheck the variables $0 and $1 cannot be used)
641 !insertmacro FileCheck $5 "Uninstall-${APP_NAME}.exe" "$4" # macro from LyXUtils.nsh
643 Goto ForceInstallation
645 # installing over an existing installation of the same LyX release is not necessary
646 # if the users does this he most probably has a problem with LyX that can better be solved
647 # by reinstalling LyX
648 # for beta and other test releases over-installing can even cause errors
649 MessageBox MB_YESNO|MB_DEFBUTTON2|MB_ICONEXCLAMATION "$(AlreadyInstalled)" /SD IDNO IDYES ForceInstallation
654 # check if there is an existing LyX installation of the same LyX series
655 # we usually don't release more than 10 versions so with 20 we are safe to check if a newer version is installed
656 IntOp $4 ${APP_VERSION_REVISION} + 20
658 ${if} $MultiUser.Privileges == "Admin"
659 ${orif} $MultiUser.Privileges == "Power"
660 ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5" "DisplayVersion"
661 # also check for an emergency release
663 ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$51" "DisplayVersion"
666 ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5" "DisplayVersion"
667 # also check for an emergency release
669 ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$51" "DisplayVersion"
673 StrCpy $R5 $0 # store the read version number
674 StrCpy $OldVersionNumber "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5"
675 # we don't stop here because we want the latest installed version
679 ${if} $OldVersionNumber > ${APP_SERIES_KEY}
680 # store the version number and reformat it temporarily for the error message
681 StrCpy $R0 $OldVersionNumber
682 StrCpy $OldVersionNumber $R5
683 MessageBox MB_OK|MB_ICONSTOP "$(NewerInstalled)" /SD IDOK
684 StrCpy $OldVersionNumber $R0
688 # this can be reset to "true" in section SecDesktop
689 StrCpy $CreateDesktopIcon "false"
690 StrCpy $CreateFileAssociations "false"
693 # Show banner while installer is intializating
694 Banner::show /NOUNLOAD "Checking system"
699 # select sections of already installed spell-checker dictionaries, make them read-only
700 # and set the necessary size to 0 bytes
701 StrCpy $String $FoundDict
702 StrCpy $Search "af_ZA"
703 Call StrPoint # function from LyXUtils.nsh
704 ${if} $Pointer != "-1"
705 IntOp $0 ${SF_SELECTED} | ${SF_RO}
706 SectionSetFlags ${SecDAfrikaans} $0
707 SectionSetSize ${SecDAfrikaans} 0
709 StrCpy $Search "ar_SA"
711 ${if} $Pointer != "-1"
712 IntOp $0 ${SF_SELECTED} | ${SF_RO}
713 SectionSetFlags ${SecDArabic} $0
714 SectionSetSize ${SecDArabic} 0
716 StrCpy $Search "hy_AM"
718 ${if} $Pointer != "-1"
719 IntOp $0 ${SF_SELECTED} | ${SF_RO}
720 SectionSetFlags ${SecDArmenian} $0
721 SectionSetSize ${SecDArmenian} 0
723 StrCpy $Search "id_ID"
725 ${if} $Pointer != "-1"
726 IntOp $0 ${SF_SELECTED} | ${SF_RO}
727 SectionSetFlags ${SecDIndonesian} $0
728 SectionSetSize ${SecDIndonesian} 0
730 StrCpy $Search "ms_MY"
732 ${if} $Pointer != "-1"
733 IntOp $0 ${SF_SELECTED} | ${SF_RO}
734 SectionSetFlags ${SecDMalayan} $0
735 SectionSetSize ${SecDMalayan} 0
737 StrCpy $Search "be_BY"
739 ${if} $Pointer != "-1"
740 IntOp $0 ${SF_SELECTED} | ${SF_RO}
741 SectionSetFlags ${SecDBelarusian} $0
742 SectionSetSize ${SecDBelarusian} 0
744 StrCpy $Search "br_FR"
746 ${if} $Pointer != "-1"
747 IntOp $0 ${SF_SELECTED} | ${SF_RO}
748 SectionSetFlags ${SecDBreton} $0
749 SectionSetSize ${SecDBreton} 0
751 StrCpy $Search "bg_BG"
753 ${if} $Pointer != "-1"
754 IntOp $0 ${SF_SELECTED} | ${SF_RO}
755 SectionSetFlags ${SecDBulgarian} $0
756 SectionSetSize ${SecDBulgarian} 0
758 StrCpy $Search "ca_ES"
760 ${if} $Pointer != "-1"
761 IntOp $0 ${SF_SELECTED} | ${SF_RO}
762 SectionSetFlags ${SecDCatalanian} $0
763 SectionSetSize ${SecDCatalanian} 0
765 StrCpy $Search "cs_CZ"
767 ${if} $Pointer != "-1"
768 IntOp $0 ${SF_SELECTED} | ${SF_RO}
769 SectionSetFlags ${SecDCzech} $0
770 SectionSetSize ${SecDCzech} 0
773 StrCpy $Search "cop_EG"
775 ${if} $Pointer != "-1"
776 IntOp $0 ${SF_SELECTED} | ${SF_RO}
777 SectionSetFlags ${SecDCoptic} $0
778 SectionSetSize ${SecDCoptic} 0
780 StrCpy $Search "cy_GB"
782 ${if} $Pointer != "-1"
783 IntOp $0 ${SF_SELECTED} | ${SF_RO}
784 SectionSetFlags ${SecDWelsh} $0
785 SectionSetSize ${SecDWelsh} 0
787 StrCpy $Search "da_DK"
789 ${if} $Pointer != "-1"
790 IntOp $0 ${SF_SELECTED} | ${SF_RO}
791 SectionSetFlags ${SecDDanish} $0
792 SectionSetSize ${SecDDanish} 0
794 StrCpy $Search "de_AT"
796 ${if} $Pointer != "-1"
797 IntOp $0 ${SF_SELECTED} | ${SF_RO}
798 SectionSetFlags ${SecDGermanAT} $0
799 SectionSetSize ${SecDGermanAT} 0
801 StrCpy $Search "de_CH"
803 ${if} $Pointer != "-1"
804 IntOp $0 ${SF_SELECTED} | ${SF_RO}
805 SectionSetFlags ${SecDGermanCH} $0
806 SectionSetSize ${SecDGermanCH} 0
808 StrCpy $Search "de_DE"
810 ${if} $Pointer != "-1"
811 IntOp $0 ${SF_SELECTED} | ${SF_RO}
812 SectionSetFlags ${SecDGermanD} $0
813 SectionSetSize ${SecDGermanD} 0
815 StrCpy $Search "el_GR"
817 ${if} $Pointer != "-1"
818 IntOp $0 ${SF_SELECTED} | ${SF_RO}
819 SectionSetFlags ${SecDGreek} $0
820 SectionSetSize ${SecDGreek} 0
822 StrCpy $Search "et_EE"
824 ${if} $Pointer != "-1"
825 IntOp $0 ${SF_SELECTED} | ${SF_RO}
826 SectionSetFlags ${SecDEstonian} $0
827 SectionSetSize ${SecDEstonian} 0
829 StrCpy $Search "en_AU"
831 ${if} $Pointer != "-1"
832 IntOp $0 ${SF_SELECTED} | ${SF_RO}
833 SectionSetFlags ${SecDEnglishAU} $0
834 SectionSetSize ${SecDEnglishAU} 0
836 StrCpy $Search "en_CA"
838 ${if} $Pointer != "-1"
839 IntOp $0 ${SF_SELECTED} | ${SF_RO}
840 SectionSetFlags ${SecDEnglishCA} $0
841 SectionSetSize ${SecDEnglishCA} 0
843 StrCpy $Search "en_GB"
845 ${if} $Pointer != "-1"
846 IntOp $0 ${SF_SELECTED} | ${SF_RO}
847 SectionSetFlags ${SecDEnglishGB} $0
848 SectionSetSize ${SecDEnglishGB} 0
850 StrCpy $Search "en_NZ"
852 ${if} $Pointer != "-1"
853 IntOp $0 ${SF_SELECTED} | ${SF_RO}
854 SectionSetFlags ${SecDEnglishNZ} $0
855 SectionSetSize ${SecDEnglishNZ} 0
857 StrCpy $Search "en_US"
859 ${if} $Pointer != "-1"
860 IntOp $0 ${SF_SELECTED} | ${SF_RO}
861 SectionSetFlags ${SecDEnglishUS} $0
862 SectionSetSize ${SecDEnglishUS} 0
864 StrCpy $Search "es_ES"
866 ${if} $Pointer != "-1"
867 IntOp $0 ${SF_SELECTED} | ${SF_RO}
868 SectionSetFlags ${SecDSpanishES} $0
869 SectionSetSize ${SecDSpanishES} 0
871 StrCpy $Search "es_MX"
873 ${if} $Pointer != "-1"
874 IntOp $0 ${SF_SELECTED} | ${SF_RO}
875 SectionSetFlags ${SecDSpanishMX} $0
876 SectionSetSize ${SecDSpanishMX} 0
878 StrCpy $Search "eo_EO"
880 ${if} $Pointer != "-1"
881 IntOp $0 ${SF_SELECTED} | ${SF_RO}
882 SectionSetFlags ${SecDEsperanto} $0
883 SectionSetSize ${SecDEsperanto} 0
885 StrCpy $Search "eu_ES"
887 ${if} $Pointer != "-1"
888 IntOp $0 ${SF_SELECTED} | ${SF_RO}
889 SectionSetFlags ${SecDBasque} $0
890 SectionSetSize ${SecDBasque} 0
892 StrCpy $Search "fa_IR"
894 ${if} $Pointer != "-1"
895 IntOp $0 ${SF_SELECTED} | ${SF_RO}
896 SectionSetFlags ${SecDFarsi} $0
897 SectionSetSize ${SecDFarsi} 0
899 StrCpy $Search "fr_CA"
901 ${if} $Pointer != "-1"
902 IntOp $0 ${SF_SELECTED} | ${SF_RO}
903 SectionSetFlags ${SecDFrenchCanada} $0
904 SectionSetSize ${SecDFrenchCanada} 0
906 StrCpy $Search "fr_FR"
908 ${if} $Pointer != "-1"
909 IntOp $0 ${SF_SELECTED} | ${SF_RO}
910 SectionSetFlags ${SecDFrench} $0
911 SectionSetSize ${SecDFrench} 0
913 StrCpy $Search "ga_IR"
915 ${if} $Pointer != "-1"
916 IntOp $0 ${SF_SELECTED} | ${SF_RO}
917 SectionSetFlags ${SecDGaelic} $0
918 SectionSetSize ${SecDGaelic} 0
920 StrCpy $Search "gd_GB"
922 ${if} $Pointer != "-1"
923 IntOp $0 ${SF_SELECTED} | ${SF_RO}
924 SectionSetFlags ${SecDScottish} $0
925 SectionSetSize ${SecDScottish} 0
927 StrCpy $Search "gl_ES"
929 ${if} $Pointer != "-1"
930 IntOp $0 ${SF_SELECTED} | ${SF_RO}
931 SectionSetFlags ${SecDGalician} $0
932 SectionSetSize ${SecDGalician} 0
934 StrCpy $Search "ka_GE"
936 ${if} $Pointer != "-1"
937 IntOp $0 ${SF_SELECTED} | ${SF_RO}
938 SectionSetFlags ${SecDGeorgian} $0
939 SectionSetSize ${SecDGeorgian} 0
941 StrCpy $Search "he_IL"
943 ${if} $Pointer != "-1"
944 IntOp $0 ${SF_SELECTED} | ${SF_RO}
945 SectionSetFlags ${SecDHebrew} $0
946 SectionSetSize ${SecDHebrew} 0
948 StrCpy $Search "hi_IN"
950 ${if} $Pointer != "-1"
951 IntOp $0 ${SF_SELECTED} | ${SF_RO}
952 SectionSetFlags ${SecDHindi} $0
953 SectionSetSize ${SecDHindi} 0
955 StrCpy $Search "hr_HR"
957 ${if} $Pointer != "-1"
958 IntOp $0 ${SF_SELECTED} | ${SF_RO}
959 SectionSetFlags ${SecDCroatian} $0
960 SectionSetSize ${SecDCroatian} 0
962 StrCpy $Search "hu_HU"
964 ${if} $Pointer != "-1"
965 IntOp $0 ${SF_SELECTED} | ${SF_RO}
966 SectionSetFlags ${SecDHungarian} $0
967 SectionSetSize ${SecDHungarian} 0
969 StrCpy $Search "ia_IA"
971 ${if} $Pointer != "-1"
972 IntOp $0 ${SF_SELECTED} | ${SF_RO}
973 SectionSetFlags ${SecDInterlingua} $0
974 SectionSetSize ${SecDInterlingua} 0
976 StrCpy $Search "is_IS"
978 ${if} $Pointer != "-1"
979 IntOp $0 ${SF_SELECTED} | ${SF_RO}
980 SectionSetFlags ${SecDIcelandic} $0
981 SectionSetSize ${SecDIcelandic} 0
983 StrCpy $Search "it_IT"
985 ${if} $Pointer != "-1"
986 IntOp $0 ${SF_SELECTED} | ${SF_RO}
987 SectionSetFlags ${SecDItalian} $0
988 SectionSetSize ${SecDItalian} 0
990 StrCpy $Search "kk_KZ"
992 ${if} $Pointer != "-1"
993 IntOp $0 ${SF_SELECTED} | ${SF_RO}
994 SectionSetFlags ${SecDKazakh} $0
995 SectionSetSize ${SecDKazakh} 0
997 StrCpy $Search "ko_KR"
999 ${if} $Pointer != "-1"
1000 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1001 SectionSetFlags ${SecDKorean} $0
1002 SectionSetSize ${SecDKorean} 0
1004 StrCpy $Search "la_LA"
1006 ${if} $Pointer != "-1"
1007 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1008 SectionSetFlags ${SecDLatin} $0
1009 SectionSetSize ${SecDLatin} 0
1011 StrCpy $Search "lt_LT"
1013 ${if} $Pointer != "-1"
1014 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1015 SectionSetFlags ${SecDLithuanian} $0
1016 SectionSetSize ${SecDLithuanian} 0
1018 StrCpy $Search "lv_LV"
1020 ${if} $Pointer != "-1"
1021 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1022 SectionSetFlags ${SecDLatvian} $0
1023 SectionSetSize ${SecDLatvian} 0
1025 StrCpy $Search "mr_IN"
1027 ${if} $Pointer != "-1"
1028 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1029 SectionSetFlags ${SecDMarathi} $0
1030 SectionSetSize ${SecDMarathi} 0
1032 StrCpy $Search "nl_NL"
1034 ${if} $Pointer != "-1"
1035 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1036 SectionSetFlags ${SecDDutch} $0
1037 SectionSetSize ${SecDDutch} 0
1039 StrCpy $Search "nb_NO"
1041 ${if} $Pointer != "-1"
1042 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1043 SectionSetFlags ${SecDNorwegianNB} $0
1044 SectionSetSize ${SecDNorwegianNB} 0
1046 StrCpy $Search "nn_NO"
1048 ${if} $Pointer != "-1"
1049 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1050 SectionSetFlags ${SecDNorwegianNN} $0
1051 SectionSetSize ${SecDNorwegianNN} 0
1053 StrCpy $Search "oc_FR"
1055 ${if} $Pointer != "-1"
1056 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1057 SectionSetFlags ${SecDOccitan} $0
1058 SectionSetSize ${SecDOccitan} 0
1060 StrCpy $Search "pl_PL"
1062 ${if} $Pointer != "-1"
1063 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1064 SectionSetFlags ${SecDPolish} $0
1065 SectionSetSize ${SecDPolish} 0
1067 StrCpy $Search "pt_BR"
1069 ${if} $Pointer != "-1"
1070 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1071 SectionSetFlags ${SecDPortugueseBR} $0
1072 SectionSetSize ${SecDPortugueseBR} 0
1074 StrCpy $Search "pt_PT"
1076 ${if} $Pointer != "-1"
1077 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1078 SectionSetFlags ${SecDPortuguesePT} $0
1079 SectionSetSize ${SecDPortuguesePT} 0
1081 StrCpy $Search "ro_RO"
1083 ${if} $Pointer != "-1"
1084 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1085 SectionSetFlags ${SecDRomanian} $0
1086 SectionSetSize ${SecDRomanian} 0
1088 StrCpy $Search "ru_RU"
1090 ${if} $Pointer != "-1"
1091 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1092 SectionSetFlags ${SecDRussian} $0
1093 SectionSetSize ${SecDRussian} 0
1095 StrCpy $Search "dsb_DE"
1097 ${if} $Pointer != "-1"
1098 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1099 SectionSetFlags ${SecDSorbianD} $0
1100 SectionSetSize ${SecDSorbianD} 0
1102 StrCpy $Search "hsb_DE"
1104 ${if} $Pointer != "-1"
1105 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1106 SectionSetFlags ${SecDSorbianH} $0
1107 SectionSetSize ${SecDSorbianH} 0
1109 StrCpy $Search "sq_AL"
1111 ${if} $Pointer != "-1"
1112 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1113 SectionSetFlags ${SecDAlbanian} $0
1114 SectionSetSize ${SecDAlbanian} 0
1116 StrCpy $Search "sl_SI"
1118 ${if} $Pointer != "-1"
1119 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1120 SectionSetFlags ${SecDSlovenian} $0
1121 SectionSetSize ${SecDSlovenian} 0
1123 StrCpy $Search "sk_SK"
1125 ${if} $Pointer != "-1"
1126 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1127 SectionSetFlags ${SecDSlovakian} $0
1128 SectionSetSize ${SecDSlovakian} 0
1130 StrCpy $Search "sr_RS"
1132 ${if} $Pointer != "-1"
1133 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1134 SectionSetFlags ${SecDSerbianC} $0
1135 SectionSetSize ${SecDSerbianC} 0
1137 StrCpy $Search "sr_RS-Latin"
1139 ${if} $Pointer != "-1"
1140 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1141 SectionSetFlags ${SecDSerbianL} $0
1142 SectionSetSize ${SecDSerbianL} 0
1144 StrCpy $Search "sv_SE"
1146 ${if} $Pointer != "-1"
1147 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1148 SectionSetFlags ${SecDSwedish} $0
1149 SectionSetSize ${SecDSwedish} 0
1151 StrCpy $Search "ta_IN"
1153 ${if} $Pointer != "-1"
1154 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1155 SectionSetFlags ${SecDTamil} $0
1156 SectionSetSize ${SecDTamil} 0
1158 StrCpy $Search "te_IN"
1160 ${if} $Pointer != "-1"
1161 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1162 SectionSetFlags ${SecDTelugu} $0
1163 SectionSetSize ${SecDTelugu} 0
1165 StrCpy $Search "th_TH"
1167 ${if} $Pointer != "-1"
1168 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1169 SectionSetFlags ${SecDThai} $0
1170 SectionSetSize ${SecDThai} 0
1172 StrCpy $Search "bo_CN"
1174 ${if} $Pointer != "-1"
1175 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1176 SectionSetFlags ${SecDTibetan} $0
1177 SectionSetSize ${SecDTibetan} 0
1179 StrCpy $Search "tk_TM"
1181 ${if} $Pointer != "-1"
1182 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1183 SectionSetFlags ${SecDTurkmen} $0
1184 SectionSetSize ${SecDTurkmen} 0
1186 StrCpy $Search "tr_TR"
1188 ${if} $Pointer != "-1"
1189 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1190 SectionSetFlags ${SecDTurkish} $0
1191 SectionSetSize ${SecDTurkish} 0
1193 StrCpy $Search "uk_UA"
1195 ${if} $Pointer != "-1"
1196 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1197 SectionSetFlags ${SecDUkrainian} $0
1198 SectionSetSize ${SecDUkrainian} 0
1200 StrCpy $Search "ur_PK"
1202 ${if} $Pointer != "-1"
1203 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1204 SectionSetFlags ${SecDUrdu} $0
1205 SectionSetSize ${SecDUrdu} 0
1207 StrCpy $Search "vi_VN"
1209 ${if} $Pointer != "-1"
1210 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1211 SectionSetFlags ${SecDVietnamese} $0
1212 SectionSetSize ${SecDVietnamese} 0
1215 # select sections of already installed thesaurus dictionaries, make them read-only
1216 # and set the necessary size to 0 bytes
1217 StrCpy $String $FoundThes
1218 StrCpy $Search "ar_SA"
1219 Call StrPoint # function from LyXUtils.nsh
1220 ${if} $Pointer != "-1"
1221 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1222 SectionSetFlags ${SecTArabic} $0
1223 SectionSetSize ${SecTArabic} 0
1225 StrCpy $Search "bg_BG"
1227 ${if} $Pointer != "-1"
1228 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1229 SectionSetFlags ${SecTBulgarian} $0
1230 SectionSetSize ${SecTBulgarian} 0
1232 StrCpy $Search "ca_ES"
1234 ${if} $Pointer != "-1"
1235 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1236 SectionSetFlags ${SecTCatalan} $0
1237 SectionSetSize ${SecTCatalan} 0
1239 StrCpy $Search "cs_CZ"
1241 ${if} $Pointer != "-1"
1242 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1243 SectionSetFlags ${SecTCzech} $0
1244 SectionSetSize ${SecTCzech} 0
1246 StrCpy $Search "da_DK"
1248 ${if} $Pointer != "-1"
1249 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1250 SectionSetFlags ${SecTDanish} $0
1251 SectionSetSize ${SecTDanish} 0
1253 StrCpy $Search "de_DE"
1255 ${if} $Pointer != "-1"
1256 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1257 SectionSetFlags ${SecTGermanDA} $0
1258 SectionSetSize ${SecTGermanDA} 0
1260 StrCpy $Search "de_CH"
1262 ${if} $Pointer != "-1"
1263 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1264 SectionSetFlags ${SecTGermanCH} $0
1265 SectionSetSize ${SecTGermanCH} 0
1267 StrCpy $Search "en_AU"
1269 ${if} $Pointer != "-1"
1270 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1271 SectionSetFlags ${SecTEnglishAU} $0
1272 SectionSetSize ${SecTEnglishAU} 0
1274 StrCpy $Search "en_GB"
1276 ${if} $Pointer != "-1"
1277 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1278 SectionSetFlags ${SecTEnglishGB} $0
1279 SectionSetSize ${SecTEnglishGB} 0
1281 StrCpy $Search "en_US"
1283 ${if} $Pointer != "-1"
1284 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1285 SectionSetFlags ${SecTEnglishUS} $0
1286 SectionSetSize ${SecTEnglishUS} 0
1288 StrCpy $Search "es_ES"
1290 ${if} $Pointer != "-1"
1291 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1292 SectionSetFlags ${SecTSpanish} $0
1293 SectionSetSize ${SecTSpanish} 0
1295 StrCpy $Search "fr_FR"
1297 ${if} $Pointer != "-1"
1298 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1299 SectionSetFlags ${SecTFrench} $0
1300 SectionSetSize ${SecTFrench} 0
1302 StrCpy $Search "ga_IR"
1304 ${if} $Pointer != "-1"
1305 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1306 SectionSetFlags ${SecTGaelic} $0
1307 SectionSetSize ${SecTGaelic} 0
1309 StrCpy $Search "gl_ES"
1311 ${if} $Pointer != "-1"
1312 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1313 SectionSetFlags ${SecTGalician} $0
1314 SectionSetSize ${SecTGalician} 0
1316 StrCpy $Search "el_GR"
1318 ${if} $Pointer != "-1"
1319 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1320 SectionSetFlags ${SecTGreek} $0
1321 SectionSetSize ${SecTGreek} 0
1323 StrCpy $Search "is_IS"
1325 ${if} $Pointer != "-1"
1326 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1327 SectionSetFlags ${SecTIcelandic} $0
1328 SectionSetSize ${SecTIcelandic} 0
1330 StrCpy $Search "it_IT"
1332 ${if} $Pointer != "-1"
1333 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1334 SectionSetFlags ${SecTItalian} $0
1335 SectionSetSize ${SecTItalian} 0
1337 StrCpy $Search "hu_HU"
1339 ${if} $Pointer != "-1"
1340 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1341 SectionSetFlags ${SecTHungarian} $0
1342 SectionSetSize ${SecTHungarian} 0
1344 StrCpy $Search "nb_NO"
1346 ${if} $Pointer != "-1"
1347 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1348 SectionSetFlags ${SecTNorwegianNB} $0
1349 SectionSetSize ${SecTNorwegianNB} 0
1351 StrCpy $Search "nn_NO"
1353 ${if} $Pointer != "-1"
1354 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1355 SectionSetFlags ${SecTNorwegianNN} $0
1356 SectionSetSize ${SecTNorwegianNN} 0
1358 StrCpy $Search "pl_PL"
1360 ${if} $Pointer != "-1"
1361 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1362 SectionSetFlags ${SecTPolish} $0
1363 SectionSetSize ${SecTPolish} 0
1365 StrCpy $Search "pt_PT"
1367 ${if} $Pointer != "-1"
1368 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1369 SectionSetFlags ${SecTPortuguese} $0
1370 SectionSetSize ${SecTPortuguese} 0
1372 StrCpy $Search "ro_RO"
1374 ${if} $Pointer != "-1"
1375 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1376 SectionSetFlags ${SecTRomanian} $0
1377 SectionSetSize ${SecTRomanian} 0
1379 StrCpy $Search "ru_RU"
1381 ${if} $Pointer != "-1"
1382 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1383 SectionSetFlags ${SecTRussian} $0
1384 SectionSetSize ${SecTRussian} 0
1386 StrCpy $Search "sl_SI"
1388 ${if} $Pointer != "-1"
1389 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1390 SectionSetFlags ${SecTSlovenian} $0
1391 SectionSetSize ${SecTSlovenian} 0
1393 StrCpy $Search "sk_SK"
1395 ${if} $Pointer != "-1"
1396 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1397 SectionSetFlags ${SecTSlovakian} $0
1398 SectionSetSize ${SecTSlovakian} 0
1400 StrCpy $Search "sv_SE"
1402 ${if} $Pointer != "-1"
1403 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1404 SectionSetFlags ${SecTSwedish} $0
1405 SectionSetSize ${SecTSwedish} 0
1407 StrCpy $Search "uk_UA"
1409 ${if} $Pointer != "-1"
1410 IntOp $0 ${SF_SELECTED} | ${SF_RO}
1411 SectionSetFlags ${SecTUkrainian} $0
1412 SectionSetSize ${SecTUkrainian} 0
1421 # this function is called at first after starting the uninstaller
1424 SetRegView ${APP_VERSION_ACHITECHTURE}
1426 !insertmacro MULTIUSER_UNINIT
1428 # Check that LyX is not currently running
1429 FindProcDLL::FindProc "${BIN_LYX}"
1431 MessageBox MB_OK|MB_ICONSTOP "$(UnInstallRunning)" /SD IDOK
1435 # set registry root key
1436 ${if} $MultiUser.Privileges == "Admin"
1437 ${orif} $MultiUser.Privileges == "Power"
1438 SetShellVarContext all
1440 SetShellVarContext current
1443 # Ascertain whether the user has sufficient privileges to uninstall.
1444 # abort when LyX was installed with admin permissions but the user doesn't have administrator privileges
1445 ReadRegStr $0 HKLM "${APP_UNINST_KEY}" "DisplayVersion"
1447 ${andif} $MultiUser.Privileges != "Admin"
1448 ${andif} $MultiUser.Privileges != "Power"
1449 MessageBox MB_OK|MB_ICONSTOP "$(UnNotAdminLabel)" /SD IDOK
1452 # warning when LyX couldn't be found in the registry
1453 ${if} $0 == "" # check in HKCU
1454 ReadRegStr $0 HKCU "${APP_UNINST_KEY}" "DisplayVersion"
1456 MessageBox MB_OK|MB_ICONEXCLAMATION "$(UnNotInRegistryLabel)" /SD IDOK
1460 # Macro to investigate name of LyX's preferences folders to be able remove them
1461 !insertmacro UnAppPreSuff $AppPre $AppSuff # macro from LyXUtils.nsh
1463 # test if MiKTeX was installed together with LyX
1464 ReadRegStr $0 SHCTX "SOFTWARE\MiKTeX.org\MiKTeX" "OnlyWithLyX"
1465 ${if} $0 == "Yes${APP_SERIES_KEY}"
1466 SectionSetText 2 "MiKTeX" # names the corersponding uninstaller section
1467 StrCpy $LaTeXInstalled "MiKTeX"
1469 SectionSetText 2 "" # hides the corresponding uninstaller section
1472 # question message if the user really wants to uninstall LyX
1473 MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "$(UnReallyRemoveLabel)" /SD IDYES IDYES +2 # continue if yes