-
- # create Uninstaller
- WriteUninstaller "${PRODUCT_UNINSTALL_EXE}"
-
- # run LyX's configure script
- MessageBox MB_OK|MB_ICONINFORMATION "$(LatexConfigInfo)"
- ExecWait '"$INSTDIR\Resources\configLyX.bat"'
- Delete "$INSTDIR\Resources\configLyX.bat"
-
- # ask to update MiKTeX
- Call UpdateMiKTeX # function from latex.nsh
-
- SectionEnd
-
-!endif # endif ${INSTALLER_VERSION} == "Complete"
-
-# ----------------------------------------------------------------------------
-
-!if ${INSTALLER_VERSION} == "Small"
-
- # The '-' makes the section invisible.
- Section "-Installation actions" SecInstallation
-
- # dummy actions to avoid NSIS warnings
- StrCpy $FileName ""
- StrCpy $NewString ""
- StrCpy $OldString ""
-
- # extract all files
- SetOutPath "$INSTDIR"
- File /r "${PRODUCT_SOURCEDIR}\bin"
- File /r "${PRODUCT_SOURCEDIR}\etc"
- File /r "${PRODUCT_SOURCEDIR}\Resources"
-
- # install GhostScript if not already installed
- Call Ghostscript # function from InstallThirdPartyProgs.nsh
-
- # install ImageMagick if not already installed
- Call ImageMagick # function from InstallThirdPartyProgs.nsh
-
- # install Aspell if not already installed
- Call InstallAspell # function from Aspell.nsh
-
- # install Aiksaurus if not already installed
- Call Aiksaurus # function from InstallThirdPartyProgs.nsh
-
- # install the LaTeX class files that are delivered with LyX
- # and enable MiKTeX's automatic package installation
- Call ConfigureMiKTeX # Function from LaTeX.nsh