Autorun when USB stick is inserted

前端 未结 1 1153
不思量自难忘°
不思量自难忘° 2021-01-21 20:10

I\'m trying to prompt users to run my installer, whenever they plug in my USB device. I\'d like this to work on all (most?) Windows OSes.

I have an autorun.inf file in

相关标签:
1条回答
  • 2021-01-21 20:45

    USB mass storage devices do not perform Autorun on Windows. You need to enumerate as a USB CD-ROM device in order to support autorun.

    If you have a U3 capable USB drive, you can often replace the U3 data with your own CD image.

    If this is a custom USB device, you will need to implement a composite device with the Mass Storage and USB CD-ROM device (or just the CD-ROM if you don't want to supporting writing).

    0 讨论(0)
提交回复
热议问题