For msi file. save as autorun.inf
=================================
[autorun]
ShellExecute=MyInstaller-1.0.0.msi
label=My CD Label
icon=MyIcon.ico
for exe file. save as autorun.inf
=================================
[autorun]
open=Test.exe
label=My CD Label
icon=MyIcon.ico
Often the program you want to run will not be located in the root directory of the CD. If that is the case you must include the path in autorun.inf:
[autorun]
open=folder1\folder1A\myfile.exe
icon=myicon.ico
Sometimes you may also need to pass an argument to the program to be auto played:
[autorun]
open=myprogram.exe /argument
icon=myicon.ico
To open the html file ‘index.htm’ would require:
===============================================
[autorun]
ShellExecute=index.htm
icon=index.htm
However, since some older versions of Windows do not support ‘ShellExecute’ a less elegant alternative would be:
[autorun]
open=command /c start index.htm
icon=index.htm
Sunday, September 19, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment