# .lyx16
WriteRegStr SHCTX "Software\Classes\${APP_EXT}16" "" "${APP_REGNAME_DOC}"
WriteRegStr SHCTX "Software\Classes\${APP_EXT}16" "Content Type" "${APP_MIME_TYPE}"
- # .lyx20 don't set this, because this is designed to be opened with LyX 2.0.x
+ # .lyx20
+ WriteRegStr SHCTX "Software\Classes\${APP_EXT}20" "" "${APP_REGNAME_DOC}"
+ WriteRegStr SHCTX "Software\Classes\${APP_EXT}20" "Content Type" "${APP_MIME_TYPE}"
+ # .lyx21 don't set this, because this is designed to be opened with LyX 2.1.x
# Refresh shell
${RefreshShellIcons}
\format "pdf2" "pdf" "PDF (pdflatex)" "F" "pdfview" "" "document,vector,menu=export" "application/pdf"$\r$\n\
\format "pdf" "pdf" "PDF (ps2pdf)" "P" "pdfview" "" "document,vector,menu=export" "application/pdf"$\r$\n'
+ # for the wmf image type we need to specify a resolution for the converter
+ # otherwise 1024 dpi are used and eps2pdf takes ages
+ # 300 dpi are a good compromise for speed and size
+ FileWrite $R1 '\converter "wmf" "eps" "convert -density 300 $$$$i $$$$o" ""$\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
SectionEnd
-#--------------------------------
-# Postscript printer for metafile to EPS converter
-
-Section -PSPrinter
-
- ${if} $MultiUser.Privileges == "Admin"
- ${orif} $MultiUser.Privileges == "Power"
- # Delete printer
- ExecWait '$PrinterConf /q /dl /n "Metafile to EPS Converter"'
- # Install printer and driver
- ExecWait '$PrinterConf /if /f "$WINDIR\inf\ntprint.inf" /b "Metafile to EPS Converter" /r "FILE:" /m "MS Publisher Imagesetter"'
- ${else}
- MessageBox MB_OK|MB_ICONINFORMATION "$(MetafileNotAvailable)" /SD IDOK
- ${endif}
-
-SectionEnd
-
#--------------------------------
# Run the LyX configure.py script, so MiKTeX can download its packages
SetOutPath "$INSTDIR\bin"
!insertmacro FileListLyXBin File "${FILES_LYX}\bin\"
!insertmacro FileListQtBin File "${FILES_QT}\bin\"
- !insertmacro FileListQtImageformats File "${FILES_QT}\plugins\imageformats\"
- !insertmacro FileListQtIconengines File "${FILES_QT}\plugins\iconengines\"
!insertmacro FileListDll File "${FILES_DEPS}\bin\"
!insertmacro FileListMSVC File "${FILES_MSVC}\"
!insertmacro FileListNetpbmBin File "${FILES_NETPBM}\"
!insertmacro FileListDvipostBin File "${FILES_DVIPOST}\"
!insertmacro FileListPDFViewBin File "${FILES_PDFVIEW}\"
!insertmacro FileListPDFToolsBin File "${FILES_PDFTOOLS}\"
- !insertmacro FileListMetaFile2EPS File "${FILES_METAFILE2EPS}\"
+
+ # Qt plugin DLLs
+ SetOutPath "$INSTDIR\bin\imageformats"
+ !insertmacro FileListQtImageformats File "${FILES_QT}\plugins\imageformats\"
+ SetOutPath "$INSTDIR\bin\iconengines"
+ !insertmacro FileListQtIconengines File "${FILES_QT}\plugins\iconengines\"
# Resources
SetOutPath "$INSTDIR"