Question

I have three files
1. index.htm
2. autoplay.exe (I have written this to run index.htm in the root folder using default browser.)
3. autorun.inf:

[autorun] 
Open=autoplay.exe
Label=My Presentation
Action=Run my presentation
Publisher=Ali Habibzadeh

I have copied this to a blank cd but it only triggers the autoplay dialog rather than actually auto playing my index.htm

any help is greatly appreciated.

Was it helpful?

Solution

Your Windows is overriding autorun behaviour of CD and it's giving you all possible options you may want to do with the CD or the content of the CD.

You will find an autorun option in the list if you click on this you'll get to execute autorun for your CD. In the windows CD options dialog you can check if you want to always-autorun for the CD. Check that option and next time it will perform autorun and not display windows CD action options.

However this will remain local and if you use this CD on other machine the same steps will need to be repeated.

vista has strict security options which adds this dialog before autorun. And even if you do autorun you'll be required to grant security prompt to let the autorun go ahead and execute.

There's nothing much you can do in this case.

OTHER TIPS

Have you tried this?

[autorun]
Open=
shellexecute="index.htm"

Works for me using a thumbdrive on Vista.

More info on MSDN here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top