PDA

View Full Version : Q with detect acrobat and reader



lorenhsu1128
04-19-2004, 04:57 AM
hi guys

I come from Taiwan and have some Q with detect Acrobat&reader
first, sorry about my English is very pool :oops

here is my Q:

as I know when I need to detect PDF >>File.GetDefaultViewer ("pdf")
and I don't know what's different between check or uncheck "Dependencies" options.

what happen when I check the option?

if I need to detect Acrobat installed or not, should I check the option?
and the decect code must write in "on Preload" or "on Show"?

I found some example in this forum
Acrobat Version Checking Script (http://www.indigorose.com/forums/showthread.php?t=1844)
but I don't know how to use or import these code to AMS5
these code looks doesn't like lua
How to use these code
finally

could somebody tell me, How to write the detect code?

example like : if ..... then.... else

lorenhsu1128
04-21-2004, 05:49 AM
Could somebody help me plz~~
I really need your help

rhosk
04-21-2004, 05:56 AM
Assuming that you have the latest version of AMS (5.0.0.4), just go to "Project" on your menu and select "Dependencies" and in there you'll find the Acrobat Reader Requirement option. This will be plenty for checking the latest Reader and if not detected, it will direct them to Adobe's website for download - it's all done for you :)

If you're talking distributing the Reader with your app, this is another whole new Ball Game; lots to consider.

HTH.

lorenhsu1128
04-21-2004, 06:35 AM
thank you Rhosk :razz
the function you say I already done.
In my case, I need detect the acrobat and if not installed, the autorun will install acrobat reader automatic.
porblem is when I turn on the detect function, just like you say~~
the autorun just redirect to the acrobat reader web page.
how to install acrobat by autorun by it self

rhosk
04-21-2004, 07:11 AM
Well,in the same dependency dialog where it says below "Download/Install Link", just put the path to the Reader install to the appropriate folder.

Ex, "Autoplay\\AdobeReader\\InstallAdobeReader.exe"

Probably not the exact filenames, but this will work. I think the Adobe Reader is dependent on a certain path for the install to take place (haven't done this since Version 4). I just tested it with a Flash Player Install and it worked perfect.

Note: Just make sure you get the licensing issues worked out first. It's totally free, but you must go thru the process. Good luck!!

lorenhsu1128
04-21-2004, 07:48 PM
as you say~
the problem I already done.
thank you and thank you again