mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
Uwe's GPL Ghostscript patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10082 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0732a8016a
commit
ad145f7a86
@ -516,8 +516,16 @@ FunctionEnd
|
|||||||
Function SearchGhostscript
|
Function SearchGhostscript
|
||||||
; Find which version of ghostscript, if any, is installed.
|
; Find which version of ghostscript, if any, is installed.
|
||||||
EnumRegKey $1 HKLM "Software\AFPL Ghostscript" 0
|
EnumRegKey $1 HKLM "Software\AFPL Ghostscript" 0
|
||||||
|
${if} $1 == ""
|
||||||
|
EnumRegKey $1 HKLM "Software\GPL Ghostscript" 0
|
||||||
|
StrCpy $2 "True"
|
||||||
|
${endif}
|
||||||
${if} $1 != ""
|
${if} $1 != ""
|
||||||
|
${if} $2 == "True"
|
||||||
|
StrCpy $0 "Software\GPL Ghostscript\$1"
|
||||||
|
${else}
|
||||||
StrCpy $0 "Software\AFPL Ghostscript\$1"
|
StrCpy $0 "Software\AFPL Ghostscript\$1"
|
||||||
|
${endif}
|
||||||
${else}
|
${else}
|
||||||
StrCpy $0 ""
|
StrCpy $0 ""
|
||||||
${endif}
|
${endif}
|
||||||
@ -536,8 +544,16 @@ Function DownloadGhostscript
|
|||||||
|
|
||||||
; Find which version of ghostscript, if any, is installed.
|
; Find which version of ghostscript, if any, is installed.
|
||||||
EnumRegKey $1 HKLM "Software\AFPL Ghostscript" 0
|
EnumRegKey $1 HKLM "Software\AFPL Ghostscript" 0
|
||||||
|
${if} $1 == ""
|
||||||
|
EnumRegKey $1 HKLM "Software\GPL Ghostscript" 0
|
||||||
|
StrCpy $2 "True"
|
||||||
|
${endif}
|
||||||
${if} $1 != ""
|
${if} $1 != ""
|
||||||
|
${if} $2 == "True"
|
||||||
|
StrCpy $0 "Software\GPL Ghostscript\$1"
|
||||||
|
${else}
|
||||||
StrCpy $0 "Software\AFPL Ghostscript\$1"
|
StrCpy $0 "Software\AFPL Ghostscript\$1"
|
||||||
|
${endif}
|
||||||
${else}
|
${else}
|
||||||
StrCpy $0 ""
|
StrCpy $0 ""
|
||||||
${endif}
|
${endif}
|
||||||
|
Loading…
Reference in New Issue
Block a user