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}
16 StrCpy $DelGSDir "Yes" # used later in function ImageMagick
21 # -------------------------------------------
25 # if ImageMagick is not installed
26 ${if} $ImageMagickPath == ""
27 # register ImageMagick
28 WriteRegStr HKLM "SOFTWARE\Classes\Applications" "AutoRun" "${ImageMagickDir}\convert.exe $$"
29 WriteRegStr HKLM "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "BinPath" "${ImageMagickDir}"
30 WriteRegStr HKLM "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "CoderModulesPath" "${ImageMagickDir}\modules\coders"
31 WriteRegStr HKLM "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "ConfigurePath" "${ImageMagickDir}\config"
32 WriteRegStr HKLM "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "FilterModulesPath" "${ImageMagickDir}\modules\filters"
33 WriteRegStr HKLM "SOFTWARE\ImageMagick\${ImageMagickVersion}\Q:16" "LibPath" "${ImageMagickDir}"
35 WriteRegStr HKLM "SOFTWARE\ImageMagick\Current" "BinPath" "${ImageMagickDir}"
36 WriteRegStr HKLM "SOFTWARE\ImageMagick\Current" "CoderModulesPath" "${ImageMagickDir}\modules\coders"
37 WriteRegStr HKLM "SOFTWARE\ImageMagick\Current" "ConfigurePath" "${ImageMagickDir}\config"
38 WriteRegStr HKLM "SOFTWARE\ImageMagick\Current" "FilterModulesPath" "${ImageMagickDir}\modules\filters"
39 WriteRegStr HKLM "SOFTWARE\ImageMagick\Current" "LibPath" "${ImageMagickDir}"
40 WriteRegDWORD HKLM "SOFTWARE\ImageMagick\Current" "QuantumDepth" 0x00000010
41 WriteRegStr HKLM "SOFTWARE\ImageMagick\Current" "Version" "${ImageMagickVersion}"
43 WriteRegStr HKLM "Software\ImageMagick" "OnlyWithLyX" "Yes${PRODUCT_VERSION_SHORT}" # special entry to tell the uninstaller that it was installed with LyX
44 StrCpy $ImageMagickPath ${ImageMagickDir}
46 # delete unnecessary files
47 RMDir /r ${ImageMagickDir}
48 # delete the "etc" folder when also the Ghostscript folder was deleted because it is then empty
49 ${if} $DelGSDir == "Yes"
50 RMDir /r "$INSTDIR\etc"
56 # -------------------------------------------
60 # if Aiksaurus is not installed
61 ${if} $AiksaurusPath == ""
62 # extract Aiksaurus' program files
63 SetOutPath "$INSTDIR\external"
64 File /r "${PRODUCT_SOURCEDIR}\${AiksaurusInstall}"
65 # copy the files and register Aiksaurus
66 CopyFiles "$INSTDIR\${AiksaurusInstall}" "$APPDATA"
67 # WriteRegStr HKLM "Software\Aiksaurus" "OnlyWithLyX" "Yes${PRODUCT_VERSION_SHORT}" # special entry to tell the uninstaller that it was installed with LyX
68 # WriteRegStr HKLM "Software\Aiksaurus" "Data Path" "${AiksaurusDir}"
73 # -------------------------------------------
75 !if ${INSTALLER_VERSION} == "Complete"
79 # if no PostScript viewer is installed
81 ${if} $InstallGSview == "true"
83 MessageBox MB_OK|MB_ICONINFORMATION "$(GSviewInfo)"
84 ExecWait "$INSTDIR\${GSviewInstall}"
85 # test if GSview is installed
87 ReadRegStr $PSVPath HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\gsview32.exe" "Path"
89 MessageBox MB_OK|MB_ICONEXCLAMATION "$(GSviewError)"
96 !endif # endif ${INSTALLER_VERSION} == "Complete"
98 # -------------------------------------------
100 !if ${INSTALLER_VERSION} == "Complete"
104 # if no BibTeX editor is installed
105 ${if} $BibTeXEditorPath == ""
106 ${if} $InstallJabRef == "true"
108 MessageBox MB_OK|MB_ICONINFORMATION "$(JabRefInfo)"
109 ExecWait "$INSTDIR\${JabRefInstall}"
110 # test if JabRef is installed
111 StrCpy $BibTeXEditorPath ""
112 ReadRegStr $BibTeXEditorPath HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${JabRefVersion}" "UninstallString"
113 ${if} $BibTeXEditorPath == ""
114 MessageBox MB_OK|MB_ICONEXCLAMATION "$(JabRefError)"
116 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
123 !endif # endif ${INSTALLER_VERSION} == "Complete"