1 # this file contains the main installer sections
3 !if ${INSTALLER_VERSION} == "Complete"
5 # The '-' makes the section invisible.
6 Section "-Installation actions" SecInstallation
8 # dummy actions to avoid NSIS warnings
15 File /r "${PRODUCT_SOURCEDIR}\bin"
16 File /r "${PRODUCT_SOURCEDIR}\etc"
17 File /r "${PRODUCT_SOURCEDIR}\Resources"
18 File /r "${PRODUCT_SOURCEDIR}\external"
20 # install MiKTeX if not already installed
21 Call InstallMiKTeX # function from LaTeX.nsh
23 # install Ghostscript if not already installed
24 Call Ghostscript # function from InstallThirdPartyProgs.nsh
26 # install ImageMagick if not already installed
27 Call ImageMagick # function from InstallThirdPartyProgs.nsh
29 # install Aspell if not already installed
30 Call InstallAspell # function from Aspell.nsh
32 # install Aiksaurus if not already installed
33 Call Aiksaurus # function from InstallThirdPartyProgs.nsh
35 # install GSview if not already installed and the user selected it
36 Call PostScript # function from InstallThirdPartyProgs.nsh
38 # install JabRef if not already installed and the user selected it
39 Call BibTeX # function from InstallThirdPartyProgs.nsh
41 # install the LaTeX class files that are delivered with LyX
42 # and enable MiKTeX's automatic package installation
43 Call ConfigureMiKTeX # Function from LaTeX.nsh
45 # install Aspell dictionaries
46 Call InstallAspellDictionary # function from Aspell.nsh
49 Call ConfigureLyX # Function from ConfigLyX.nsh
51 # refresh shell, update the environment variables otherwise the first
52 # configure run will fail when MiKTeX was just installed
53 System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) (${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
56 WriteUninstaller "${PRODUCT_UNINSTALL_EXE}"
58 # run LyX's configure script
59 MessageBox MB_OK|MB_ICONINFORMATION "$(LatexConfigInfo)"
60 ExecWait '"$INSTDIR\Resources\configLyX.bat"'
61 Delete "$INSTDIR\Resources\configLyX.bat"
63 # ask to update MiKTeX
64 Call UpdateMiKTeX # function from latex.nsh
68 !endif # endif ${INSTALLER_VERSION} == "Complete"
70 # ----------------------------------------------------------------------------
72 !if ${INSTALLER_VERSION} == "Small"
74 # The '-' makes the section invisible.
75 Section "-Installation actions" SecInstallation
77 # dummy actions to avoid NSIS warnings
84 File /r "${PRODUCT_SOURCEDIR}\bin"
85 File /r "${PRODUCT_SOURCEDIR}\etc"
86 File /r "${PRODUCT_SOURCEDIR}\Resources"
88 # install GhostScript if not already installed
89 Call Ghostscript # function from InstallThirdPartyProgs.nsh
91 # install ImageMagick if not already installed
92 Call ImageMagick # function from InstallThirdPartyProgs.nsh
94 # install Aspell if not already installed
95 Call InstallAspell # function from Aspell.nsh
97 # install Aiksaurus if not already installed
98 Call Aiksaurus # function from InstallThirdPartyProgs.nsh
100 # install the LaTeX class files that are delivered with LyX
101 # and enable MiKTeX's automatic package installation
102 Call ConfigureMiKTeX # Function from LaTeX.nsh
104 # install Aspell dictionaries
105 Call InstallAspellDictionary # function from Aspell.nsh
108 Call ConfigureLyX # Function from ConfigLyX.nsh
111 WriteUninstaller "${PRODUCT_UNINSTALL_EXE}"
113 # run LyX's configure script
114 MessageBox MB_OK|MB_ICONINFORMATION "$(LatexConfigInfo)"
115 ExecWait '"$INSTDIR\Resources\configLyX.bat"'
116 Delete "$INSTDIR\Resources\configLyX.bat"
118 # ask to update MiKTeX
119 Call UpdateMiKTeX # function from latex.nsh
123 !endif # endif ${INSTALLER_VERSION} == "Small"