1 # this file contains the main installer section
3 # The '-' makes the section invisible.
4 Section "-Installation actions" SecInstallation
6 # dummy actions to avoid NSIS warnings
13 File /r "${PRODUCT_SOURCEDIR}\bin"
14 File /r "${PRODUCT_SOURCEDIR}\etc"
15 File /r "${PRODUCT_SOURCEDIR}\Resources"
16 !if ${INSTALLER_VERSION} == "Complete"
17 File /r "${PRODUCT_SOURCEDIR}\external"
20 !if ${INSTALLER_VERSION} == "Complete"
21 # install MiKTeX if not already installed
22 Call InstallMiKTeX # function from LaTeX.nsh
25 # install Ghostscript if not already installed
26 Call Ghostscript # function from InstallThirdPartyProgs.nsh
28 # install ImageMagick if not already installed
29 Call ImageMagick # function from InstallThirdPartyProgs.nsh
31 # install Aspell if not already installed
32 Call InstallAspell # function from Aspell.nsh
34 # install Aiksaurus if not already installed
35 Call Aiksaurus # function from InstallThirdPartyProgs.nsh
37 !if ${INSTALLER_VERSION} == "Complete"
38 # install GSview if not already installed and the user selected it
39 Call PostScript # function from InstallThirdPartyProgs.nsh
41 # install JabRef if not already installed and the user selected it
42 Call BibTeX # function from InstallThirdPartyProgs.nsh
45 # install the LaTeX class files that are delivered with LyX
46 # and enable MiKTeX's automatic package installation
47 Call ConfigureMiKTeX # Function from LaTeX.nsh
49 # refresh shell, update the environment variables otherwise the first
50 # configure run will fail when MiKTeX was just installed
51 System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) (${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
53 # install Aspell dictionaries
54 Call InstallAspellDictionary # function from Aspell.nsh
57 Call ConfigureLyX # Function from ConfigLyX.nsh
60 WriteUninstaller "${PRODUCT_UNINSTALL_EXE}"
62 # run LyX's configure script
63 MessageBox MB_OK|MB_ICONINFORMATION "$(LatexConfigInfo)"
64 ExecWait '"$INSTDIR\Resources\configLyX.bat"'
65 Delete "$INSTDIR\Resources\configLyX.bat"
67 # ask to update MiKTeX
68 Call UpdateMiKTeX # function from latex.nsh