Solved

AutoPlay

Posted on 1998-10-26
5
212 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
  • 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now