]> git.lyx.org Git - features.git/commitdiff
* All ImageMagick and Ghostscript resources are no longer installed as separate files...
authorJoost Verburg <joostverburg@users.sourceforge.net>
Fri, 21 Aug 2009 22:31:06 +0000 (22:31 +0000)
committerJoost Verburg <joostverburg@users.sourceforge.net>
Fri, 21 Aug 2009 22:31:06 +0000 (22:31 +0000)
* Updated download location
* Fixed compatibility issue with recent NSIS versions

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31186 a592a061-630c-0410-9148-cb99ea01b6c8

development/Win32/launcher/launcher.nsi
development/Win32/packaging/installer/include/declarations.nsh
development/Win32/pdfview/pdfview.nsi

index 7b4d90beac760aa56422a2b2878d6c51ce6582a1..424203daf6df893e854095bfd59a11bad604e04d 100644 (file)
@@ -16,8 +16,6 @@ also included.
 !include LogicLib.nsh
 !include FileFunc.nsh
 !include StrFunc.nsh
-!insertmacro GetParameters
-!insertmacro GetParent
 ${StrStr}
 
 # Configuration from installer
@@ -151,25 +149,14 @@ Section -Prepare
   Push "$LyXFolder\aiksaurus"
   Call SetEnvironmentVariable
 
-  # Location of Ghostscript
+  # Location of Ghostscript (for ImageMagick)
   Push LYX_GHOSTSCRIPT_EXE
-  Push "$LyXFolder\ghostscript\bin\gswin32c.exe"
+  Push "$LyXFolder\ghostscript\gswin32c.exe"
   Call SetEnvironmentVariable
   Push LYX_GHOSTSCRIPT_DLL
-  Push "$LyXFolder\ghostscript\bin\gsdll32.dll"
+  Push "$LyXFolder\ghostscript\gsdll32.dll"
   Call SetEnvironmentVariable
-  Push LYX_GHOSTSCRIPT_FONTS
-  Push "$LyXFolder\ghostscript\fonts"
-  Call SetEnvironmentVariable
-  
-  # Ghostscript resources
-  Push GS_DLL
-  Push "$LyXFolder\ghostscript\bin\gsdll32.dll"
-  Call SetEnvironmentVariable  
-  Push GS_LIB
-  Push "$LyXFolder\ghostscript\lib;$LyXFolder\ghostscript\fonts;$LyXFolder\ghostscript\Resource"
-  Call SetEnvironmentVariable
-
 SectionEnd
 
 Section -Launch
@@ -247,8 +234,7 @@ SectionEnd
 Function InitInterface
   
   #Command line parameters
-  Call GetParameters
-  Pop $Parameters
+  ${GetParameters} $Parameters
   
   #Check for debug mode
   ${StrStr} $R0 $Parameters "-dbg"
index 6e2662858ffab33ff929322e1b79836d9c008ef7..75fad732013c89ce57a12698ed7fbb54296ff048 100644 (file)
@@ -65,16 +65,9 @@ SetCompressor /SOLID lzma
 # CTAN and SourceForge select a mirror automatically
 
 !define DOWNLOAD_LATEX "http://www.ctan.org/get/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
-!define DOWNLOADALT_LATEX "http://www.ctan.org/get/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
-
 !define DOWNLOAD_IMAGEMAGICK "http://downloads.sourceforge.net/imagemagick/${SETUPFILE_IMAGEMAGICK}"
-!define DOWNLOADALT_IMAGEMAGICK "http://downloads.sourceforge.net/imagemagick/${SETUPFILE_IMAGEMAGICK}"
-
 !define DOWNLOAD_GHOSTSCRIPT "http://downloads.sourceforge.net/imagemagick/${SETUPFILE_GHOSTSCRIPT}"
-!define DOWNLOADALT_GHOSTSCRIPT "http://downloads.sourceforge.net/imagemagick/${SETUPFILE_GHOSTSCRIPT}"
-
 !define DOWNLOAD_ASPELLDICTS "ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows"
-!define DOWNLOADALT_ASPELLDICTS "http://www.lyx.org/~bpeng/aspell6-windows"
 
 #--------------------------------
 # Locations of setup files for components (for bundled setup)
index 08d51400ffd6a7a444766aaa3e55166724f7aa0f..07b6b321d07347f42f16292c5c2ca2a03db96d8e 100644 (file)
@@ -16,11 +16,6 @@ http://magic.aladdin.cs.cmu.edu/2005/07/15/pdfopen-and-pdfclose/
 !include LogicLib.nsh
 !include FileFunc.nsh
 
-# Functions from FileFunc.nsh
-!insertmacro GetParameters
-!insertmacro GetFileName
-!insertmacro GetParent
-
 #--------------------------------
 # Settings
 
@@ -54,6 +49,7 @@ Var OriginalFileName
 Var OriginalDir
 
 Var PDFFile
+Var ViewerFileName
 Var Viewer
 
 Var ChangeNotification
@@ -122,8 +118,8 @@ Section "View PDF file"
 
   # Check whether the file will be opened with Adobe Reader or Adobe Acrobat
   !insertmacro SystemCall "shell32::FindExecutable(t '$OriginalFile', t '', t .s)"
-  Call GetFileName
-  Pop $Viewer
+  Pop $ViewerFileName
+  ${GetFileName} $ViewerFileName $Viewer
 
   ${If} $Viewer == ""
     MessageBox MB_OK|MB_ICONEXCLAMATION "No PDF viewer is installed. \