]> git.lyx.org Git - lyx.git/commitdiff
installer: fix bug that MiKTeX is not found on some 64bit Windows
authorUwe Stöhr <uwestoehr@lyx.org>
Mon, 14 Jan 2013 00:45:42 +0000 (01:45 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Mon, 14 Jan 2013 00:45:42 +0000 (01:45 +0100)
- 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

development/Win32/packaging/installer/Readme.txt [new file with mode: 0644]
development/Win32/packaging/installer/include/LaTeX.nsh
development/Win32/packaging/installer/settings.nsh

diff --git a/development/Win32/packaging/installer/Readme.txt b/development/Win32/packaging/installer/Readme.txt
new file mode 100644 (file)
index 0000000..3996dc4
--- /dev/null
@@ -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
\ No newline at end of file
index 1acdd66569693ad66f7e3ac82a87e414775bbbc2..9f5f82f39e2e9a0cfe94426241f6decf8aabbadf 100644 (file)
@@ -27,6 +27,9 @@ Handling of LaTeX distributions
 Function LaTeXActions
  # checks if MiKTeX or TeXLive is installed
 
+  ${if} ${RunningX64}
+   SetRegView 64
+  ${endif}
   # test if MiKTeX is installed
   # 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"
index e95bfbf028d336ed4dd2af8ff907ff759b09e9a7..c04673bb688aeb1c3e16dafc7fe6b5648f529cfe 100644 (file)
@@ -14,7 +14,7 @@ These typically need to be modified for each LyX release
 !define APP_VERSION_REVISION 5
 !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_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
 
@@ -37,10 +37,9 @@ These typically need to be modified for each LyX release
 # File locations
 # !!! you need to adjust them to the folders in your Windows system !!!
 
-!define FILES_LYX "C:\LyX\lyx-20-install"
-!define FILES_DEPS "C:\LyX\lyx-20-build\msvc2010-deps\deps20"
-!define FILES_BUNDLE "C:\LyX\depsbundle"
-!define FILES_QT "C:\Qt\qt-everywhere-opensource-src-4.8.3"
+!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"
 !define ClassFileDir "${FILES_LYX}\Resources\tex"
 !define DVIPostFileDir "${FILES_DEPS}\tex"