Explanation: AutoRun tells the operating system to launch the installed version of Adobe Reader or Acrobat. The open command assumes that this is the path to Acrobat (it usually is the standard location). The welcome.pdf is the name of the pdf file you want to auto run.
When you finish writing the code, save the file as text only with the name - autorun.inf. Insert the CD and see the results.
Special note: This will not work if the end user does not have version 8 of Reader or Acrobat installed. You need to run a version check by writing a document level or Page Open JavaScript to check the users version. This code has been posted in the Answered Questions on this forum.
My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.
The path to acrobat is correct but it didn't launch the inservice.pdf file from the CD when I installed it. Acrobat was launched but the file didn't open.
The "open" key has to have the correct path, application name, and file parameter all on the same same line. You also have to make sure you have the path to the file being opened correctly coded. From you code example, the "inservice.pdf" file is in the root directory of the CD-ROM.
As you have found out, you must know the path and program name that will be used by the end user. So you might want to consider a different approach on how to open the PDF or use an HTML page for the first page.
Jeff, Your "open" statement does not identify the target PDF that you want the application to open. Autorun.inf files will work in Windows 98SE through Vista. Some more bells and whistles in XP and a bit more in Vista. Accessing a PDF on disc is possible with Reader/Acrobat versions 4.x through 8.x.
Provided Adobe Reader or Acrobat Professional/Standard has been correctly installed it will be in the Window's registry. Because of this you do not have to evoke the application in the autorun.inf file. Just point to your "start" PDF on the CD/DVD root. Windows sees that a PDF is desired, the OS sees what application is associated with PDF & tells the application to wake up and get to work. Actually better this way. Potential end-users can (and do) have different versions of the Adobe products installed. The path to the application is *not* the same for all versions.Fourth post in this thread may help... [url]http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=12124[/url]
To get comfortable with and understand the variations of the Windows autorun.inf do a search with any good search engine. Of course, Microsoft will have a nicely detailed description.
[AutoRun]
open=C:\Program Files\Adobe\Acrobat 8.0|Acroat\Acrobat.exe
welcome.pdf
icon=myicon.ico
Explanation: AutoRun tells the operating system to launch the installed version of Adobe Reader or Acrobat. The open command assumes that this is the path to Acrobat (it usually is the standard location). The welcome.pdf is the name of the pdf file you want to auto run.
When you finish writing the code, save the file as text only with the name - autorun.inf. Insert the CD and see the results.
Special note: This will not work if the end user does not have version 8 of Reader or Acrobat installed. You need to run a version check by writing a document level or Page Open JavaScript to check the users version. This code has been posted in the Answered Questions on this forum.
My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.