run the LyX configure.py script, so MiKTeX can download its packages. the console output is captured and shown in the details list.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24154 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Joost Verburg 2008-04-07 17:26:02 +00:00
parent b55cd38c09
commit afd7bd4608
4 changed files with 136 additions and 117 deletions

View File

@ -100,6 +100,9 @@ VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${APP_INFO}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${APP_VERSION}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "${APP_COPYRIGHT}"
#--------------------------------
# Interface initialization
Function InitInterface
# Warn the user when no Administrator or Power user privileges are available

View File

@ -30,14 +30,14 @@ Function .onInit
!insertmacro PRINTER_INIT
!insertmacro MULTIUSER_INIT
${unless} ${silent}
${IfNot} ${Silent}
Banner::show /NOUNLOAD "Checking system"
${EndIf}
Call SearchExternal
Call InitExternal
${unless} ${silent}
${IfNot} ${Silent}
Banner::destroy
${EndIf}

View File

@ -83,6 +83,9 @@ ${LangFileString} TEXT_NOTINSTALLED_GHOSTSCRIPT "The Ghostscript setup wizard wa
${LangFileString} TEXT_NOTINSTALLED_VIEWER "You did not associate GSView with the PDF/Postscript file types. Do you want to run GSView setup again?"
${LangFileString} TEXT_NOTINSTALLED_DICT "The setup wizard of the $DictionaryLangName spell checker dictionary was not completed. Do you want to run the setup again?"
${LangFileString} TEXT_CONFIGURE_MIKTEXFNDB "Updating MiKTeX filename database..."
${LangFileString} TEXT_CONFIGURE_LYX "Configuring LyX (MiKTeX may download missing packages, this can take some time) ..."
${LangFileString} TEXT_FINISH_DESKTOP "Create desktop shortcut"
${LangFileString} TEXT_FINISH_WEBSITE "Visit lyx.org for the latest news, support and tips"

View File

@ -132,13 +132,13 @@ Section -dvipost
# Update file name database
${if} $PathLaTeX != ""
nsExec::Exec '"$PathLaTeX\initexmf.exe" --update-fndb'
DetailPrint $(TEXT_CONFIGURE_MIKTEXFNDB)
nsExec::ExecToLog '"$PathLaTeX\initexmf.exe" --update-fndb'
Pop $UpdateFNDBReturn # Return value
${endif}
SectionEnd
#--------------------------------
# Postscript printer for metafile to EPS converter
@ -163,6 +163,19 @@ Section -PSPrinter
SectionEnd
#--------------------------------
# Run the LyX configure.py script, so MiKTeX can download its packages
Var PythonReturn
Section -ConfigureScript
DetailPrint $(TEXT_CONFIGURE_LYX)
nsExec::ExecToLog '"$INSTDIR\python\python.exe" "$INSTDIR\Resources\configure.py"'
Pop $PythonReturn # Return value
SectionEnd
#--------------------------------
# Desktop shortcut