mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
installer: fix bug that MiKTeX is not found on some 64bit Windows
- LaTeX.nsh: fixe http://nsis.sourceforge.net/Download - settings.nsh: adapt path so that one needs to adapt less when using the installer source zip file - add a readme how to build the installer
This commit is contained in:
parent
ab8365b3ed
commit
6182ca208b
19
development/Win32/packaging/installer/Readme.txt
Normal file
19
development/Win32/packaging/installer/Readme.txt
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
To build the installer do the following:
|
||||||
|
|
||||||
|
1. extract the source zip-file to e.g. the path "C:\LyX"
|
||||||
|
2. open the file settings.nsh with a text editor
|
||||||
|
and adapt there the following paths to the one on your PC:
|
||||||
|
!define FILES_LYX "C:\LyX\LyXPackage\LyX"
|
||||||
|
!define FILES_DEPS "C:\LyX\LyX2.0x\lyx-windows-deps-msvc2008"
|
||||||
|
!define FILES_QT "C:\LyX\LyXPackage\LyX"
|
||||||
|
3. install NSIS (http://nsis.sourceforge.net/Download)
|
||||||
|
4. open the file FindProc.zip (that is part of this bundle),
|
||||||
|
extract from it the file FindProc.dll to the Plugins folder of
|
||||||
|
NSIS's installation folder
|
||||||
|
5. open the file InetLoad.zip (that is part of this bundle),
|
||||||
|
extract from it the file InetLoad.dll to the Plugins folder of
|
||||||
|
NSIS's installation folder
|
||||||
|
6. right-click on the file lyx-standard.nsi and choose "Compile NSIS script"
|
||||||
|
to compile the standard installer
|
||||||
|
7. right-click on the file lyx-bundle.nsi and choose "Compile NSIS script"
|
||||||
|
to compile the bundle installer
|
@ -27,6 +27,9 @@ Handling of LaTeX distributions
|
|||||||
Function LaTeXActions
|
Function LaTeXActions
|
||||||
# checks if MiKTeX or TeXLive is installed
|
# checks if MiKTeX or TeXLive is installed
|
||||||
|
|
||||||
|
${if} ${RunningX64}
|
||||||
|
SetRegView 64
|
||||||
|
${endif}
|
||||||
# test if MiKTeX is installed
|
# test if MiKTeX is installed
|
||||||
# reads the PATH variable via the registry because NSIS' "$%Path%" variable is not updated when the PATH changes
|
# reads the PATH variable via the registry because NSIS' "$%Path%" variable is not updated when the PATH changes
|
||||||
ReadRegStr $String HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "Path"
|
ReadRegStr $String HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "Path"
|
||||||
|
@ -14,7 +14,7 @@ These typically need to be modified for each LyX release
|
|||||||
!define APP_VERSION_REVISION 5
|
!define APP_VERSION_REVISION 5
|
||||||
!define APP_VERSION_EMERGENCY "1" # use "1" for an emergency release of LyX otherwise ""
|
!define APP_VERSION_EMERGENCY "1" # use "1" for an emergency release of LyX otherwise ""
|
||||||
!define APP_EMERGENCY_DOT "." # use "." for an emergency release of LyX otherwise ""
|
!define APP_EMERGENCY_DOT "." # use "." for an emergency release of LyX otherwise ""
|
||||||
!define APP_VERSION_BUILD 1 # Start with 1 for the installer releases of each version
|
!define APP_VERSION_BUILD 2 # Start with 1 for the installer releases of each version
|
||||||
|
|
||||||
!define APP_VERSION "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}${APP_EMERGENCY_DOT}${APP_VERSION_EMERGENCY}" # Version to display
|
!define APP_VERSION "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}${APP_EMERGENCY_DOT}${APP_VERSION_EMERGENCY}" # Version to display
|
||||||
|
|
||||||
@ -37,10 +37,9 @@ These typically need to be modified for each LyX release
|
|||||||
# File locations
|
# File locations
|
||||||
# !!! you need to adjust them to the folders in your Windows system !!!
|
# !!! you need to adjust them to the folders in your Windows system !!!
|
||||||
|
|
||||||
!define FILES_LYX "C:\LyX\lyx-20-install"
|
!define FILES_LYX "C:\LyX\LyXPackage\LyX"
|
||||||
!define FILES_DEPS "C:\LyX\lyx-20-build\msvc2010-deps\deps20"
|
!define FILES_DEPS "C:\LyX\LyX2.0x\lyx-windows-deps-msvc2008"
|
||||||
!define FILES_BUNDLE "C:\LyX\depsbundle"
|
!define FILES_QT "C:\LyX\LyXPackage\LyX"
|
||||||
!define FILES_QT "C:\Qt\qt-everywhere-opensource-src-4.8.3"
|
|
||||||
!define ClassFileDir "${FILES_LYX}\Resources\tex"
|
!define ClassFileDir "${FILES_LYX}\Resources\tex"
|
||||||
!define DVIPostFileDir "${FILES_DEPS}\tex"
|
!define DVIPostFileDir "${FILES_DEPS}\tex"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user