AutorunInf

Inherits: RefCounted < Object

Builds an autorun.inf document for Windows disc and USB packaging.

Description

Assembles the [autorun] section used by EditorExportDeviceAutorun. USB flash drives on Windows 7 and later ignore OPEN= and ACTION=; this class does not change AutoRun policy.

Properties

String

action

""

String

icon

""

String

label

""

String

open

""

String

shell

""

Dictionary

shell_verbs

{}

Methods

String

build() const

String

usb_note_text() static


Property Descriptions

String action = "" 🔗

Maps to ACTION=.


String icon = "" 🔗

Maps to ICON=.


String label = "" 🔗

Maps to LABEL=.


String open = "" 🔗

Maps to OPEN=.


String shell = "" 🔗

Default shortcut-menu verb (shell=).


Dictionary shell_verbs = {} 🔗

Extra shell\verb / shell\verb\command pairs. Keys are verb names; values are commands.


Method Descriptions

String build() const 🔗

Returns the autorun.inf text, including optional shell\verb command pairs.


String usb_note_text() static 🔗

Returns the USB AutoPlay limitation note written as START.txt when autorun/write_usb_note is enabled.