]> git.lyx.org Git - features.git/commitdiff
installer: remove unnecessary check for Adobe Reader/Acrobat
authorUwe Stöhr <uwestoehr@lyx.org>
Tue, 20 Nov 2012 20:53:35 +0000 (21:53 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Tue, 20 Nov 2012 20:53:35 +0000 (21:53 +0100)
This is already done by the program pdfview every time it is called. This additionally fixes the bug that viewing PDF files could fail if Acrobat was not the default PDF viewer of the system while LyX was installed, but became later the default PDF viewer.

development/Win32/packaging/installer/ChangeLog.txt
development/Win32/packaging/installer/include/detection.nsh
development/Win32/packaging/installer/include/variables.nsh
development/Win32/packaging/installer/setup/configure.nsh

index 2f17750bc89b62e9e62f958ac0390b94a0967a0b..86653a7a2c8b6280de9d60b338e02f9e73ad7215 100644 (file)
@@ -2,6 +2,9 @@
 - support to update the view as PDF if Adobe Reader XI is used
 - fix long standing bug that updating a PDF view failed for larger
   LyX documents if Adobe Reader or Acrobat was used as PDF viewer
+- fixed bug that viewing PDF files could fail if Acrobat or Adobe Reader was
+  not used as default PDF viewer of the system while LyX was installed, but
+  it became later the default PDF viewer
 - fixed bug that EPS and PDF images were not displayed if LyX was installed
   this time without admin privileges
   but an older LyX version was once installed with admin privileges
index 6ebf133871f9aaae6f3d4ead5d4ca36fedbb5e86..3f792dac5d2d955df714a789f18f90ca0cd268ed 100644 (file)
@@ -97,14 +97,9 @@ Function MissingPrograms
    StrCpy $DelPythonFiles "True"
   ${endif}
   
-  # test if Acrobat or Adobe Reader is used as PDF-viewer
-  ReadRegStr $String HKCR ".pdf" ""
-  ${if} $String != "AcroExch.Document" # this name is only used by Acrobat and Adobe Reader
-   StrCpy $Acrobat "None"
-  ${else}
-   StrCpy $Acrobat "Yes"
-  ${endif}
-
+  # No test necessary for Acrobat or Adobe Reader because pdfview does this job
+  # each time it is called.
+  
   # test if a PostScript-viewer is installed, only check for GSview
   # check all cases:
   # 1. 32bit Windows
index c403fe8f3b7e0f20597458af123922256e22addb..65bfcccdd698c624db93e323adfcf3cc0d23760d 100644 (file)
@@ -10,10 +10,6 @@ Var PathLaTeX
 Var PathLaTeXLocal
 Var PathBibTeXEditor
 
-#Var SetupLaTeX
-#Var SizeLaTeX
-
-Var Acrobat
 Var APPDATemp
 Var AppPre
 var AppSubfolder
index 74194150b33fff53ae58ddc53e7e01fc0bd3f095..40700b06f393b0cd3a1a97f69e8d998549d29708 100644 (file)
@@ -143,22 +143,23 @@ Section -Configure
   ${if} "$PathPrefix" != ""
    FileWrite $R1 '\path_prefix "$PathPrefix"$\r$\n'
   ${endif}
-  ${if} $Acrobat == "Yes" # use pdfview for Acrobat / Adobe Reader
-   FileWrite $R1 '\format "pdf5" "pdf" "PDF (LuaTeX)" "u" "pdfview" "" "document,vector,menu=export"$\r$\n\
-                 \format "pdf4" "pdf" "PDF (XeTeX)" "X" "pdfview" "" "document,vector,menu=export"$\r$\n\
-                 \format "pdf3" "pdf" "PDF (dvipdfm)" "m" "pdfview" "" "document,vector,menu=export"$\r$\n\
-                 \format "pdf2" "pdf" "PDF (pdflatex)" "F" "pdfview" "" "document,vector,menu=export"$\r$\n\
-                 \format "pdf" "pdf" "PDF (ps2pdf)" "P" "pdfview" "" "document,vector,menu=export"$\r$\n'
-  ${endif}
+  
+  # use pdfview for all types of PDF files
+  FileWrite $R1 '\format "pdf5" "pdf" "PDF (LuaTeX)" "u" "pdfview" "" "document,vector,menu=export"$\r$\n\
+                \format "pdf4" "pdf" "PDF (XeTeX)" "X" "pdfview" "" "document,vector,menu=export"$\r$\n\
+                \format "pdf3" "pdf" "PDF (dvipdfm)" "m" "pdfview" "" "document,vector,menu=export"$\r$\n\
+                \format "pdf2" "pdf" "PDF (pdflatex)" "F" "pdfview" "" "document,vector,menu=export"$\r$\n\
+                \format "pdf" "pdf" "PDF (ps2pdf)" "P" "pdfview" "" "document,vector,menu=export"$\r$\n'
+
   # if LilyPondPath was found
   # we need to add these entris because python scripts can only be executed
   # if the full path is given
   ${if} $LilyPondPath != ""
    FileWrite $R1 '\format "lilypond-book" "lytex" "LilyPond book (LaTeX)" "" "" "auto" "document,menu=export"$\r$\n\
-                 \converter "lilypond-book" "pdflatex" "python \"$LilyPondPath\\lilypond-book.py\" --safe --pdf --latex-program=pdflatex --lily-output-dir=ly-pdf $$$$i" ""$\r$\n\
-                 \converter "lilypond-book" "xetex" "python \"$LilyPondPath\\lilypond-book.py\" --safe --pdf --latex-program=xelatex --lily-output-dir=ly-pdf $$$$i" ""$\r$\n\
-                 \converter "lilypond-book" "luatex" "python \"$LilyPondPath\\lilypond-book.py\" --safe --pdf --latex-program=lualatex --lily-output-dir=ly-pdf $$$$i" ""$\r$\n\
-                 \converter "lilypond-book" "latex" "python \"$LilyPondPath\\lilypond-book.py\" --safe --lily-output-dir=ly-eps $$$$i" ""$\r$\n'
+                 \converter "lilypond-book" "pdflatex" "python \"$LilyPondPath\\lilypond-book.py\" --safe --pdf --latex-program=pdflatex --lily-output-dir=ly-pdf $$$$i" ""$\r$\n\
+                 \converter "lilypond-book" "xetex" "python \"$LilyPondPath\\lilypond-book.py\" --safe --pdf --latex-program=xelatex --lily-output-dir=ly-pdf $$$$i" ""$\r$\n\
+                 \converter "lilypond-book" "luatex" "python \"$LilyPondPath\\lilypond-book.py\" --safe --pdf --latex-program=lualatex --lily-output-dir=ly-pdf $$$$i" ""$\r$\n\
+                 \converter "lilypond-book" "latex" "python \"$LilyPondPath\\lilypond-book.py\" --safe --lily-output-dir=ly-eps $$$$i" ""$\r$\n'
   ${endif}
   FileClose $R1
   IfErrors 0 +2