>- I need the registry path for Acroread. If anybody has installed it,
please send it to me.

I started working on this. My thoughts was to extract the pdf viewer
associated with pdf's on the windows machine.

With:
----------------------------------------
Function getFileAssociation
  Exch $R1
  Push $R0
  ReadRegStr $R0 HKCR "$R1" "" 
  ReadRegStr $R1 HKCR "$R0\shell\open\command" "" 
  Pop $R0
  Exch $R1
FunctionEnd

And then using:
  Push ".pdf"
  Call getFileAssociation 
  pop $acrobat_path
------------------------------------------
The result is:
"C:\Program Files\acrobat\acrord32.exe" "%1"

So you'll still need to do some parsing, but this will cater for acrobat
and other pdf viewers. So maybe in lyxrc.defaults add the line
\viewer pdf "acrord32"   ??

Regards, 
Johann


Reply via email to