installer:

- fix bundle installer so that MiKTeX is installed before LyX
- fix some ImageMagick settings
- cleanups and visual feedback for new installations

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40533 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2011-12-21 01:12:43 +00:00
parent 28b401b40e
commit cdb56cafb3
5 changed files with 34 additions and 17 deletions

View File

@ -51,8 +51,10 @@ BrandingText " "
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "LyX ${APP_SERIES_NAME}" !define MUI_STARTMENUPAGE_DEFAULTFOLDER "LyX ${APP_SERIES_NAME}"
!insertmacro MUI_PAGE_STARTMENU ${APP_NAME} $StartmenuFolder !insertmacro MUI_PAGE_STARTMENU ${APP_NAME} $StartmenuFolder
# Select latex.exe manually !if ${SETUPTYPE} != BUNDLE
Page custom LatexFolder LatexFolder_LeaveFunction # Select latex.exe manually
Page custom LatexFolder LatexFolder_LeaveFunction
!endif # end if != BUNDLE
# Watch the components being installed. # Watch the components being installed.
!insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_INSTFILES

View File

@ -42,8 +42,10 @@ Configuration of standard NSIS header files
# Functions to check and configure the LaTeX-system # Functions to check and configure the LaTeX-system
!include include\LaTeX.nsh !include include\LaTeX.nsh
# Function for page to manually select LaTeX's installation folder !if ${SETUPTYPE} != BUNDLE
!include gui\LaTeXFolder.nsh # Function for page to manually select LaTeX's installation folder
!include gui\LaTeXFolder.nsh
!endif # end if != BUNDLE
#-------------------------------- #--------------------------------
# Include standard functions # Include standard functions

View File

@ -38,9 +38,11 @@ Var Pointer
Var PSVPath Var PSVPath
Var PythonPath Var PythonPath
Var Search Var Search
!if ${SETUPTYPE} != BUNDLE
Var State
!endif
Var SVGPath Var SVGPath
Var StartmenuFolder Var StartmenuFolder
Var State
Var String Var String
Var UpdateFNDBReturn Var UpdateFNDBReturn
Var UserList Var UserList

View File

@ -217,12 +217,18 @@ Section -ConfigureScript
SetOutPath "$INSTDIR\Resources" SetOutPath "$INSTDIR\Resources"
DetailPrint $(TEXT_CONFIGURE_LYX) DetailPrint $(TEXT_CONFIGURE_LYX)
nsExec::ExecToLog '"$INSTDIR\python\python.exe" "$INSTDIR\Resources\configure.py"' nsExec::ExecToLog '"$INSTDIR\Python\python.exe" "$INSTDIR\Resources\configure.py"'
Pop $ConfigureReturn # Return value Pop $ConfigureReturn # Return value
# ask to update MiKTeX # ask to update MiKTeX
${if} $LaTeXInstalled == "MiKTeX" ${if} $LaTeXInstalled == "MiKTeX"
Call UpdateMiKTeX # function from latex.nsh Call UpdateMiKTeX # function from latex.nsh
# for new installations a second run is necessary to give the users feedback about
# the ongoing installation of LaTeX packages
# a new installed MiKTeX needs some time until it is ready to install packages
!if ${SETUPTYPE} == BUNDLE
nsExec::ExecToLog '"$INSTDIR\Python\python.exe" "$INSTDIR\Resources\configure.py"'
!endif # end if == BUNDLE
${endif} ${endif}
SectionEnd SectionEnd
@ -232,10 +238,11 @@ SectionEnd
Function StartLyX Function StartLyX
# Enable desktop icon creation when there is an icon already # run LyX in a command line window to give the users feedback about
# Old shortcuts need to be updated # the time consuming LaTeX package installation
Exec "$INSTDIR\${APP_RUN}" #Exec 'cmd /K " "$INSTDIR\bin\lyx.exe""'
Exec "$INSTDIR\${AppRun}"
FunctionEnd FunctionEnd

View File

@ -42,6 +42,16 @@ Section -ProgramFiles SecProgramFiles
# recursively copy all files under Resources # recursively copy all files under Resources
File /r "${FILES_LYX}\Resources" File /r "${FILES_LYX}\Resources"
!if ${SETUPTYPE} == BUNDLE
# extract the Jabref and MiKTeX installer
File /r "${FILES_LYX}\external"
# install MiKTeX if not already installed
Call InstallMiKTeX # function from LaTeX.nsh
!endif # end if BUNDLE
# Python # Python
SetOutPath "$INSTDIR" SetOutPath "$INSTDIR"
# recursively copy all files under Python # recursively copy all files under Python
@ -67,12 +77,12 @@ Section -ProgramFiles SecProgramFiles
WriteRegStr SHCTX "SOFTWARE\Classes\Applications" "AutoRun" "$INSTDIR\imagemagick\convert.exe $$" WriteRegStr SHCTX "SOFTWARE\Classes\Applications" "AutoRun" "$INSTDIR\imagemagick\convert.exe $$"
WriteRegStr SHCTX "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "BinPath" "$INSTDIR\imagemagick" WriteRegStr SHCTX "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "BinPath" "$INSTDIR\imagemagick"
WriteRegStr SHCTX "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "CoderModulesPath" "$INSTDIR\imagemagick\modules\coders" WriteRegStr SHCTX "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "CoderModulesPath" "$INSTDIR\imagemagick\modules\coders"
WriteRegStr SHCTX "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "ConfigurePath" "$INSTDIR\imagemagick\config" WriteRegStr SHCTX "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "ConfigurePath" "$INSTDIR\imagemagick"
WriteRegStr SHCTX "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "FilterModulesPath" "$INSTDIR\imagemagick\modules\filters" WriteRegStr SHCTX "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "FilterModulesPath" "$INSTDIR\imagemagick\modules\filters"
WriteRegStr SHCTX "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "LibPath" "$INSTDIR\imagemagick" WriteRegStr SHCTX "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "LibPath" "$INSTDIR\imagemagick"
WriteRegStr SHCTX "SOFTWARE\ImageMagick\Current" "BinPath" "$INSTDIR\imagemagick" WriteRegStr SHCTX "SOFTWARE\ImageMagick\Current" "BinPath" "$INSTDIR\imagemagick"
WriteRegStr SHCTX "SOFTWARE\ImageMagick\Current" "CoderModulesPath" "$INSTDIR\imagemagick\modules\coders" WriteRegStr SHCTX "SOFTWARE\ImageMagick\Current" "CoderModulesPath" "$INSTDIR\imagemagick\modules\coders"
WriteRegStr SHCTX "SOFTWARE\ImageMagick\Current" "ConfigurePath" "$INSTDIR\imagemagick\config" WriteRegStr SHCTX "SOFTWARE\ImageMagick\Current" "ConfigurePath" "$INSTDIR\imagemagick"
WriteRegStr SHCTX "SOFTWARE\ImageMagick\Current" "FilterModulesPath" "$INSTDIR\imagemagick\modules\filters" WriteRegStr SHCTX "SOFTWARE\ImageMagick\Current" "FilterModulesPath" "$INSTDIR\imagemagick\modules\filters"
WriteRegStr SHCTX "SOFTWARE\ImageMagick\Current" "LibPath" "$INSTDIR\imagemagick" WriteRegStr SHCTX "SOFTWARE\ImageMagick\Current" "LibPath" "$INSTDIR\imagemagick"
WriteRegDWORD SHCTX "SOFTWARE\ImageMagick\Current" "QuantumDepth" 0x00000010 WriteRegDWORD SHCTX "SOFTWARE\ImageMagick\Current" "QuantumDepth" 0x00000010
@ -88,12 +98,6 @@ Section -ProgramFiles SecProgramFiles
!if ${SETUPTYPE} == BUNDLE !if ${SETUPTYPE} == BUNDLE
# extract the Jabref and MiKTeX installer
File /r "${FILES_LYX}\external"
# install MiKTeX if not already installed
Call InstallMiKTeX # function from LaTeX.nsh
# install JabRef if not already installed and the user selected it # install JabRef if not already installed and the user selected it
# if no BibTeX editor is installed # if no BibTeX editor is installed
${if} $PathBibTeXEditor == "" ${if} $PathBibTeXEditor == ""