locked
Changes in AutoPlay / AutoRun RRS feed

  • Question

  • For removable drives like usb sticks the AutoPlay dialog won't present the choices produced by drive's autorun config any more. It is a change as described in http://blogs.msdn.com/e7/archive/2009/04/27/improvements-to-autoplay.aspx Removable drives are presented in explorer windows like all other drives: icon and driver label. How will this change affect the handling of removable drive icon presentation? Icon and label determined by autorun.inf file Drive's contextual menu produced by autorun.inf file Will this change suppress also this autorun appearance ?
    Sunday, November 15, 2009 6:42 PM

Answers

  • Hi, aapapapa:

    This is a very interesting question. Windows 7 does NOT suppress the "icon=" or "label=" elements of Autorun.inf files when they are added to the root of a USB drive. The rest of Autorun.inf possible options (Open, ShellExecute, Action, etc.) are ignored by Windows 7 for non-optical drives.

    Microsoft MVP Windows Desktop Experience
    • Marked as answer by aapapapa Wednesday, November 18, 2009 7:31 PM
    Monday, November 16, 2009 10:13 PM
    Answerer

All replies

  • Hi, aapapapa:

    This is a very interesting question. Windows 7 does NOT suppress the "icon=" or "label=" elements of Autorun.inf files when they are added to the root of a USB drive. The rest of Autorun.inf possible options (Open, ShellExecute, Action, etc.) are ignored by Windows 7 for non-optical drives.

    Microsoft MVP Windows Desktop Experience
    • Marked as answer by aapapapa Wednesday, November 18, 2009 7:31 PM
    Monday, November 16, 2009 10:13 PM
    Answerer
  • Hi Aapapa,

    AutoPlay will no longer support the AutoRun functionality for non-optical removable media. In other words, AutoPlay will still work for CD/DVDs but it will no longer work for USB drives. Windows 7 make this change for security reason.

    You can read this article on TechNet:
    AutoRun changes in Windows 7

    Hope it helps.

    Thanks.
    Tuesday, November 17, 2009 8:31 AM
  • Thanks for your answers. Does it mean, for Windows 7 the autorun.inf on the root of removable volume (e.g. usb) will be still parsed in order to present drive icon in file explorer as determined by autorun.inf. Inclusively the contextual menu.
    Wednesday, November 18, 2009 7:35 PM
  • Thanks for your answers. Does it mean, for Windows 7 the autorun.inf on the root of removable volume (e.g. usb) will be still parsed in order to present drive icon in file explorer as determined by autorun.inf. Inclusively the contextual menu.

    Yes, drive icons and labels are considered "safe" by Microsoft. It's important to note that Windows 7 still parses Autorun.inf files, even on removable drives. However, Windows 7 ignores all open, shellexecute and action elements that may appear in the Autorun.inf file.

    You can see it yourself. When Windows 7 parses Autorun.inf files, it caches that autorun data in the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{CLSID}\_Autorun (where CLSID uniquely identifies your USB drive). You can see that for USB drives there's no Open subkey, but there may be a DefaultIcon subkey, if the USB drive that you inserted happens to have an Autorun.inf file that personalizes the drive icon.

    I hope this post clarifies the changes in Windows 7 regarding Autorun and removable drives.
    Microsoft MVP Windows Desktop Experience
    Wednesday, November 18, 2009 9:15 PM
    Answerer