Function SearchExternal
Call SearchLaTeX
Call SearchBibTeXEditor
+ Call SearchGnumeric
FunctionEnd
#--------------------------------
${EndIf}
FunctionEnd
+
+
+#--------------------------------
+# Gnumeric
+
+Function SearchGnumeric
+
+ ReadRegStr $PathGnumeric HKCU "Software\GNOME\Gnumeric" "Path"
+
+ ${IfNot} ${FileExists} "$PathGnumeric\gnumeric.exe"
+ ReadRegStr $PathGnumeric HKLM "Software\GNOME\Gnumeric" "Path"
+ ${EndIf}
+
+ ${IfNot} ${FileExists} "$PathGnumeric\gnumeric.exe"
+ ReadRegStr $0 HKLM "Software\Classes\Applications\gnumeric.exe\shell\Open\command" ""
+ ${If} $0 != ""
+ StrCpy $0 $0 -18 # remove \"gnumeric.exe" "%1"\"
+ StrCpy $PathGnumeric $0
+ ${EndIf}
+ ${EndIf}
+
+FunctionEnd
+
${EndIf}
${If} $PathBibTeXEditor != ""
StrCpy $PathPrefix "$PathPrefix;$PathBibTeXEditor"
- ${EndIf}
+ ${EndIf}
+ ${If} $PathGnumeric != ""
+ StrCpy $PathPrefix "$PathPrefix;$PathGnumeric"
+ ${EndIf}
FileWrite $DistFile '\path_prefix "$PathPrefix"$\r$\n'
- Remove a temporary log file from the user directory after reconfigure.
+- Windows installer now detects Gnumeric which is needed for the
+ spreadsheet external inset template (bug 7870).
+