These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

autorun pdf files from cd

bugsaroo
Registered: Sep 17 2007
Posts: 2

commands to autorun CD with pdf files

My Product Information:
Reader 5, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
If you're using MS Windows, create a text file and add the following ode:

[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.

Jborngasser
Registered: Mar 31 2008
Posts: 1
pddesigner,

I tried your code on a autorun.inf and it didn't launch the file.

I created an autorun.inf file with the following code:

[autorun]
open=C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe
inservice.pdf

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.

Any ideas?

Thanks,
Jeff
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
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.

[url=http://msdn2.microsoft.com/en-us/library/bb776823.aspx#open/]Autorun.inf Entries[/url]

George Kaiser

daka630
Expert
Registered: Mar 1 2007
Posts: 1420
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.

hth

Be well...