!define MUI_STARTMENUPAGE_DEFAULTFOLDER "LyX ${APP_SERIES_NAME}"
!insertmacro MUI_PAGE_STARTMENU ${APP_NAME} $StartmenuFolder
-# Select latex.exe manually
-Page custom LatexFolder LatexFolder_LeaveFunction
+!if ${SETUPTYPE} != BUNDLE
+ # Select latex.exe manually
+ Page custom LatexFolder LatexFolder_LeaveFunction
+!endif # end if != BUNDLE
# Watch the components being installed.
!insertmacro MUI_PAGE_INSTFILES
# Functions to check and configure the LaTeX-system
!include include\LaTeX.nsh
-# Function for page to manually select LaTeX's installation folder
-!include gui\LaTeXFolder.nsh
+!if ${SETUPTYPE} != BUNDLE
+ # Function for page to manually select LaTeX's installation folder
+ !include gui\LaTeXFolder.nsh
+!endif # end if != BUNDLE
#--------------------------------
# Include standard functions
Var PSVPath
Var PythonPath
Var Search
+!if ${SETUPTYPE} != BUNDLE
+ Var State
+!endif
Var SVGPath
Var StartmenuFolder
-Var State
Var String
Var UpdateFNDBReturn
Var UserList
SetOutPath "$INSTDIR\Resources"
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
# ask to update MiKTeX
${if} $LaTeXInstalled == "MiKTeX"
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}
SectionEnd
Function StartLyX
- # Enable desktop icon creation when there is an icon already
- # Old shortcuts need to be updated
+ # run LyX in a command line window to give the users feedback about
+ # the time consuming LaTeX package installation
- Exec "$INSTDIR\${APP_RUN}"
+ #Exec 'cmd /K " "$INSTDIR\bin\lyx.exe""'
+ Exec "$INSTDIR\${AppRun}"
FunctionEnd
# recursively copy all files under 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
SetOutPath "$INSTDIR"
# recursively copy all files under Python
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" "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" "LibPath" "$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" "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" "LibPath" "$INSTDIR\imagemagick"
WriteRegDWORD SHCTX "SOFTWARE\ImageMagick\Current" "QuantumDepth" 0x00000010
!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
# if no BibTeX editor is installed
${if} $PathBibTeXEditor == ""