1 # this file contains the installation actions for the third-party programs
5 # if GhostScript is not installed
6 ${if} $GhostscriptPath == ""
8 WriteRegStr HKLM "SOFTWARE\GPL Ghostscript\${GhostscriptVersion}" "GS_DLL" "${GhostscriptDir}\bin\gsdll32.dll"
9 WriteRegStr HKLM "SOFTWARE\GPL Ghostscript\${GhostscriptVersion}" "GS_LIB" "${GhostscriptDir}\lib;${GhostscriptDir}\fonts;${GhostscriptDir}\Resource"
11 WriteRegStr HKLM "SOFTWARE\GPL Ghostscript" "OnlyWithLyX" "Yes${PRODUCT_VERSION_SHORT}" # special entry to tell the uninstaller that it was installed with LyX
12 StrCpy $GhostscriptPath "${GhostscriptDir}\bin"
14 # delete unnecessary files
15 RMDir /r ${GhostscriptDir}
20 # -------------------------------------------
24 # if ImageMagick is not installed
25 ${if} $ImageMagickPath == ""
26 # register ImageMagick
27 WriteRegStr HKLM "SOFTWARE\Classes\Applications" "AutoRun" "${ImageMagickDir}\convert.exe $$"
28 WriteRegStr HKLM "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "BinPath" "${ImageMagickDir}"
29 WriteRegStr HKLM "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "CoderModulesPath" "${ImageMagickDir}\modules\coders"
30 WriteRegStr HKLM "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "ConfigurePath" "${ImageMagickDir}\config"
31 WriteRegStr HKLM "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "FilterModulesPath" "${ImageMagickDir}\modules\filters"
32 WriteRegStr HKLM "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "LibPath" "${ImageMagickDir}"
34 WriteRegStr HKLM "SOFTWARE\ImageMagick\Current" "BinPath" "${ImageMagickDir}"
35 WriteRegStr HKLM "SOFTWARE\ImageMagick\Current" "CoderModulesPath" "${ImageMagickDir}\modules\coders"
36 WriteRegStr HKLM "SOFTWARE\ImageMagick\Current" "ConfigurePath" "${ImageMagickDir}\config"
37 WriteRegStr HKLM "SOFTWARE\ImageMagick\Current" "FilterModulesPath" "${ImageMagickDir}\modules\filters"
38 WriteRegStr HKLM "SOFTWARE\ImageMagick\Current" "LibPath" "${ImageMagickDir}"
39 WriteRegDWORD HKLM "SOFTWARE\ImageMagick\Current" "QuantumDepth" 0x00000010
40 WriteRegStr HKLM "SOFTWARE\ImageMagick\Current" "Version" "${ImageMagickVersion}"
42 WriteRegStr HKLM "Software\ImageMagick" "OnlyWithLyX" "Yes${PRODUCT_VERSION_SHORT}" # special entry to tell the uninstaller that it was installed with LyX
43 StrCpy $ImageMagickPath ${ImageMagickDir}
45 # delete unnecessary files
46 RMDir /r ${ImageMagickDir}
51 # -------------------------------------------
55 # if Aiksaurus is not installed
56 ${if} $AiksaurusPath == ""
57 # extract Aiksaurus' program files
58 SetOutPath "$INSTDIR\external"
59 File /r "${PRODUCT_SOURCEDIR}\${AiksaurusInstall}"
60 # copy the files and register Aiksaurus
61 CopyFiles "$INSTDIR\${AiksaurusInstall}" "$APPDATA"
62 # WriteRegStr HKLM "Software\Aiksaurus" "OnlyWithLyX" "Yes${PRODUCT_VERSION_SHORT}" # special entry to tell the uninstaller that it was installed with LyX
63 # WriteRegStr HKLM "Software\Aiksaurus" "Data Path" "${AiksaurusDir}"
68 # -------------------------------------------
70 !if ${INSTALLER_VERSION} == "Complete"
74 # if no PostScript viewer is installed
76 ${if} $InstallGSview == "true"
78 MessageBox MB_OK|MB_ICONINFORMATION "$(GSviewInfo)"
79 ExecWait "$INSTDIR\${GSviewInstall}"
80 # test if GSview is installed
82 ReadRegStr $PSVPath HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\gsview32.exe" "Path"
84 MessageBox MB_OK|MB_ICONEXCLAMATION "$(GSviewError)"
91 !endif # endif ${INSTALLER_VERSION} == "Complete"
93 # -------------------------------------------
95 !if ${INSTALLER_VERSION} == "Complete"
99 # if no BibTeX editor is installed
100 ${if} $BibTeXEditorPath == ""
101 ${if} $InstallJabRef == "true"
103 MessageBox MB_OK|MB_ICONINFORMATION "$(JabRefInfo)"
104 ExecWait "$INSTDIR\${JabRefInstall}"
105 # test if JabRef is installed
106 StrCpy $BibTeXEditorPath ""
107 ReadRegStr $BibTeXEditorPath HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${JabRefVersion}" "UninstallString"
108 ${if} $BibTeXEditorPath == ""
109 MessageBox MB_OK|MB_ICONEXCLAMATION "$(JabRefError)"
111 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${JabRefVersion}" "OnlyWithLyX" "Yes${PRODUCT_VERSION_SHORT}" # special entry to tell the uninstaller that it was installed with LyX
118 !endif # endif ${INSTALLER_VERSION} == "Complete"