diff --git a/development/Win32/packaging/installer/components/configure.nsh b/development/Win32/packaging/installer/components/configure.nsh index 560fa96480..a56bc82f75 100644 --- a/development/Win32/packaging/installer/components/configure.nsh +++ b/development/Win32/packaging/installer/components/configure.nsh @@ -62,6 +62,26 @@ Section -InstallData SectionEnd +Section -LaTeX + + ;dvipost package + + Call SearchLaTeXLocalRoot + Pop $R0 + + ${if} $R0 != "" + SetOutPath "$R0\tex\latex\dvipost" + File "${FILES_DVIPOST_PKG}\dvipost.sty" + ${endif} + + ;Update file name database + + ${if} $PathLaTeX != "" + nsExec::Exec '"$PathLaTeX\initexmf.exe" --update-fndb' + ${endif} + +SectionEnd + Section -Configure ;Remove old configuration files diff --git a/development/Win32/packaging/installer/components/core.nsh b/development/Win32/packaging/installer/components/core.nsh index f7d3b75ce4..dfab249922 100644 --- a/development/Win32/packaging/installer/components/core.nsh +++ b/development/Win32/packaging/installer/components/core.nsh @@ -90,21 +90,5 @@ Section -Core SecCore SetOutPath "$INSTDIR\aiksaurus" !insertmacro FileListAiksaurusData File "${FILES_AIKSAURUS}\" - - ;dvipost package - - Call SearchLaTeXLocalRoot - Pop $R0 - - ${if} $R0 != "" - SetOutPath "$R0\tex\latex\dvipost" - File "${FILES_DVIPOST_PKG}\dvipost.sty" - ${endif} - - ;Update file name database - - ${if} $PathLaTeX != "" - nsExec::Exec '"$PathLaTeX\initexmf.exe" --update-fndb' - ${endif} SectionEnd diff --git a/development/Win32/packaging/installer/include/declarations.nsh b/development/Win32/packaging/installer/include/declarations.nsh index cdf5c34c06..096f807104 100644 --- a/development/Win32/packaging/installer/include/declarations.nsh +++ b/development/Win32/packaging/installer/include/declarations.nsh @@ -41,6 +41,7 @@ ReserveFile "dialogs\external.ini" ReserveFile "dialogs\viewer.ini" ReserveFile "dialogs\langselect.ini" !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS +ReserveFile "${FILES_DVIPOST_PKG}\dvipost.sty" ;-------------------------------- ;Variables