Windows installer: Detect Inkscape when installing

This commit is contained in:
Vincent van Ravesteijn 2012-05-13 20:26:44 +02:00
parent 8c9da0c2d6
commit 38a8538194
4 changed files with 17 additions and 0 deletions

View File

@ -10,6 +10,7 @@ Function SearchExternal
Call SearchLaTeX
Call SearchBibTeXEditor
Call SearchGnumeric
Call SearchInkscape
FunctionEnd
#--------------------------------
@ -135,3 +136,13 @@ Function SearchGnumeric
FunctionEnd
#--------------------------------
# Inkscape
Function SearchInkscape
ReadRegStr $PathInkscape HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Inkscape" "InstallLocation"
FunctionEnd

View File

@ -10,6 +10,7 @@ Var PathLaTeX
Var PathLaTeXLocal
Var PathBibTeXEditor
Var PathGnumeric
Var PathInkscape
Var SetupLaTeX
Var SizeLaTeX

View File

@ -97,6 +97,9 @@ Section -Configure
${If} $PathGnumeric != ""
StrCpy $PathPrefix "$PathPrefix;$PathGnumeric"
${EndIf}
${If} $PathInkscape != ""
StrCpy $PathPrefix "$PathPrefix;$PathInkscape"
${EndIf}
FileWrite $DistFile '\path_prefix "$PathPrefix"$\r$\n'

View File

@ -245,3 +245,5 @@ What's new
- Windows installer now detects Gnumeric which is needed for the
spreadsheet external inset template (bug 7870).
- Windows installer now detects Inkscape on installation.