mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Wininstaller2: small cosmetic bugfix
This commit is contained in:
parent
822a9ef573
commit
baf792f1b0
@ -957,6 +957,16 @@ Section -UninstallInfoRegistry # Registry information in "SOFTWARE\Microsoft\Win
|
|||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section -ConfigureScript # Runs the configure.py script
|
Section -ConfigureScript # Runs the configure.py script
|
||||||
|
|
||||||
|
# Manipulate PATH environment of the running installer process, so that configure.py can find all the stuff needed
|
||||||
|
ReadEnvStr $0 "PATH"
|
||||||
|
${StrRep} $pathPrefix $pathPrefix "$$LyXDir" "$INSTDIR"
|
||||||
|
System::Call 'Kernel32::SetEnvironmentVariable(t "PATH", t "$pathPrefix;$0")'
|
||||||
|
|
||||||
|
Call PrepareShellCTX
|
||||||
|
SetShellVarContext current # Otherwise $APPDATA would return C:\ProgrammData instead of C:\Users\username\AppData\Roaming
|
||||||
|
SetOutPath "$APPDATA\LyX${VERSION_MAJOR}.${VERSION_MINOR}" # Need to run configure from the user dir, because it creates .lst files and some folders.
|
||||||
|
|
||||||
${StrStr} $0 $LatexPath "\miktex\bin"
|
${StrStr} $0 $LatexPath "\miktex\bin"
|
||||||
# R9 is used in $(TEXT_CONFIGURE_LYX)
|
# R9 is used in $(TEXT_CONFIGURE_LYX)
|
||||||
${If} $0 == "" # TexLive
|
${If} $0 == "" # TexLive
|
||||||
@ -967,14 +977,6 @@ Section -ConfigureScript # Runs the configure.py script
|
|||||||
StrCpy $LaTeXInstalled $R9 # FIXME remove
|
StrCpy $LaTeXInstalled $R9 # FIXME remove
|
||||||
DetailPrint $(TEXT_CONFIGURE_LYX) # Uses R9 to display the name of the installed latex distribution
|
DetailPrint $(TEXT_CONFIGURE_LYX) # Uses R9 to display the name of the installed latex distribution
|
||||||
|
|
||||||
# Manipulate PATH environment of the running installer process, so that configure.py can find all the stuff needed
|
|
||||||
ReadEnvStr $0 "PATH"
|
|
||||||
${StrRep} $pathPrefix $pathPrefix "$$LyXDir" "$INSTDIR"
|
|
||||||
System::Call 'Kernel32::SetEnvironmentVariable(t "PATH", t "$pathPrefix;$0")'
|
|
||||||
|
|
||||||
Call PrepareShellCTX
|
|
||||||
SetShellVarContext current # Otherwise $APPDATA would return C:\ProgrammData instead of C:\Users\username\AppData\Roaming
|
|
||||||
SetOutPath "$APPDATA\LyX${VERSION_MAJOR}.${VERSION_MINOR}" # Need to run configure from the user dir, because it creates .lst files and some folders.
|
|
||||||
nsExec::ExecToLog '"$INSTDIR\Python\python.exe" "$INSTDIR\Resources\configure.py"'
|
nsExec::ExecToLog '"$INSTDIR\Python\python.exe" "$INSTDIR\Resources\configure.py"'
|
||||||
Pop $0 # Return value
|
Pop $0 # Return value
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
Loading…
Reference in New Issue
Block a user