Help - Search - Members - Calendar
Full Version: Building Autorun Configurations
Darkside_RG > Technical Discussions > Guides/How To > Coding Guides
Mazuki
Here is a short guide, including a template and explanations for creating autorun.inf files for your CD/DVD images

CODE
[autorun]
ICON=icons.dll,x
LABEL=Testing12345
OPEN=SETUP.EXE
SHELLEXECUTE="EULA.txt"

UseAutoPlay=1

shell\configure\command=SETUP.EXE
shell\configure=&Configure...

shell\install\command=SETUP.EXE
shell\install=&Install...

[Content]
MusicFiles=0
PictureFiles=0
VideoFiles=0

[ExclusiveContentPaths]
\boot
\boot\boot screens
boot

[IgnoreContentPaths]
\boot
\boot\boot screens
boot


Explanations:

ICON= path leading to any file containing an icon, can be .exe, .dll or .ico, if the file contains multiple icons, you must define the index of the icon like icons.dll,1

LABEL= override the internal disc name made when burning or creating an image, can be up to 32 characters long including spaces

OPEN= path leading to an .exe file to run when the disc is inserted/image mounted, if it is inside a folder enter it like this "foldername\filename.exe" (without quotes)

SHELLEXECUTE= Data file or executable to run when the disc is inserted, this works much like OPEN does, but it allows you to use the end-users file associations to load files, so if you call a .txt file (as i did above) it will open in their default program they have set for .txt files
this can also be ran as a program with a parameter, such as "notepad.exe EULA.txt" if you want to override the users default file handling associations


shell\configure\command=SETUP.EXE
shell\configure=&Configure...


these options allow you to add selections to the right click menu when the disc is inserted the shell\{word} defines what word you use, unless you use the second option \shell\{word}=&Register

this second option allows you to leave the {word} only associated "internally" where the command= has the same word before it, and the =&Register is what is displayed, also the '&' goes before the shortcut letter you want in the right click menu (for those that use the keyboard this is helpful)
the command allows for parameters as well


[Content]
MusicFiles=
PictureFiles=
VideoFiles=


this allows you to manually define what content is on the cd/dvd/image when you use windows' autoplay feature (the dialog that we all hate stounge.gif ) you use the following (0,f,false,n,no) or (1,t,true,y,yes) for the options, and they are case-InSenSITive and will cause AutoPlay to disregard any other content on the media

UseAutoPlay= this option should NEVER be used, that's my opinion anyway, if you set this to 1 it will disregard all OPEN, shellexecute options you previously set and default to the AutoPlay dialog (which you can customize, but still, it's not worth it)

[ExclusiveContentPaths]
[IgnoreContentPaths]


these two options are to define where TO look and where NOT TO look when using the AutoPlay feature, you can use leading \ or not, do not use "" when there are spaces, as they are included as part of the path
shinobee
thanks bro, this will come in handy for me in about a year or two!!

thanks bro, this will come in handy for me in about a year or two!!
schizomasochizt
Thanks Maz... but I would like to know if this is also the "autorun.inf" file that I see hidden in my flash drive?
Mazuki
yes they are very much the same :)
zero_himself
QUOTE (Mazuki @ Mar 8 2009, 01:28 AM) *
yes they are very much the same :)

You will find that Vista doesn't use autorun.inf from a flash drive(I don't believe xp does either for that matter)......(not that anyone would try to hide an autorun on a flashdrive to run programs secretly or anything saevilw.gif )

If you need to autorun from a flashdrive, I would use a U3 enabled drive, and make your payload into a ISO image. Then you can use the U3 updater program to load your ISO image into the flash drive, and it will be able to autorun like a CD drive.

If you need more info PM me, or read *MOD EDIT* about USB hacksaw and switchblade tools(It took me 8 hrs of reading and trying various stuff....)(BTW that ISO image MUST BE LESS THAN 6 MB!!!!!!)
natasha
I dont get it . Why not use a professional Autorun menu creation software than typing this code.ex: Autorun Media Studio 7 (Indigorose Nation Lmt)
Mazuki
a professional autorun menu is typically for the .exe or interface that starts up when the media is inserted, this guide is for a small text file that you put on the media so that .exe file (or whatever you use) actually starts up ;)
battouzai
thx for this trick i love u man !!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.