开发者

Windows vista CD Autorun does not execute

I have three files

1. in开发者_运维知识库dex.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.


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.


Have you tried this?

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

Works for me using a thumbdrive on Vista.

More info on MSDN here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜