Solved

AutoPlay

Posted on 1998-10-26
5
219 Views
Last Modified: 2010-04-06
I am wanting to put a program on a CD. How can I create an AutoPlay insert notification. i.e. so the CDRom starts up and goes straight to my application?
0
Comment
Question by:xpher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
bryan7 earned 50 total points
ID: 1344428
This way:



Place a file like this in the root.

Example: File name; Autorun.inf

[autorun]
open = MyProgram.exe

bryan =)

0
 
LVL 3

Expert Comment

by:bryan7
ID: 1344429
And to make the CD have an Icon:

[autorun]
Icon=MyProgram.exe,0  <------- if the exe has any icon inside.
Open=MyProgram.exe

if your exe doesn't have any icon, then:

[autorun]
Icon=MyIcon.ico
Open=MyProgram.exe

remember that it must be in a file called " Autorun.inf " in the root dir of the cd.

bryan

0
 
LVL 1

Author Comment

by:xpher
ID: 1344430
To bryan7

Thanks for quick response.

Sorry if this sounds stupid, but I can't afford to waste too many CD's in experimenting.

Can I create the Autorun.inf in say Notepad?

Also, what if my exe is in a directory, called say 'Mine'. Would I have to write
[autorun]
Icon=MyProgram.exe,0  
Open=Mine\MyProgram.exe
??

Look forward to hearing from you

xpher
(Chris :-) )

0
 
LVL 3

Expert Comment

by:bryan7
ID: 1344431
You can do it:

[AUTORUN]
OPEN=programs\program.exe
ICON=main\images\image.ico

your program and icon can be in any directory.
And if you included any Icon inside your program, then you can use it.
(icon=program.exe,0)

hope it helps.

bryan =)



0
 
LVL 1

Author Comment

by:xpher
ID: 1344432
Thanks Bryan.

Regards
Chris :-))
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question