Creating an AUTORUN on a Custom USB Flash Drive

Utilizing a custom USB flash drive for your marketing is one of the most engaging ways to convey any communications project. Custom USB flash drives are fundamentally different than a traditional CD or DVD. They have a re-usable element, are considered high value items to the user, and have a personal and professional application for data storage. Part marketing item, and part effective office tool, thumb drives are increasingly considered the choice when looking to make an impression when delivering media. We wanted to dedicate a post to something that many of our customers are interested in doing when loading data on the drives. The USB autorun.

Creating an auto run on your custom USB drive is relatively simple, however, it must be done properly, and there are things to take into consideration on the user’s end when doing it. Auto runs do not work on Apple computers. Anything MAC will not accept an auto run file in the root directory of the USB’s folder. Keep this in mind. Secondly, for Windows users, you need to be using Windows XP with Service Pack 2, or a more recent version of the OS such as Vista. Windows 7 has significantly reduced autoplay and autorun features off of USB flash drives for security reasons. They are still enabled for all optical media pieces like CDs and DVDs.  Provided either you or your users are using either of these operating systems, the Autorun/Autoplay feature needs to be enabled on your operating system in order for the USB auto run to work.When creating the master drive or file folder that you’d be duplicating from, you’ll need to do the following.

Understanding the .INF file. What is it?

An INF file (or Setup Information file) is a plain text file used by Microsoft Windows for installation of software and drivers. You can create your own .inf file to dictate what a peripheral should be doing upon mounting into the computer. You can create simple text file using Notepad on a Windows machine. Open notepad, and type:

[autorun]
open=
action=
icon=
label=

The open= option specifies the program that should autorun – typically whatever ends in a .exe on the drive’s root directory. This is the executable. Keep in mind, your content must include an executable file for this to work properly. Also, don’t specify any paths. USB drives will show up differently in various machines – as either drive G, or F, or even E. Not specifying the drive path will ensure the drive auto playing properly.

The action= designation describes the action that will be performed. In this case, we’ve instructed to start the application.

The icon= designation tells the drive to use an icon present on the drive. The icon must be in the .ico format. This is entirely optional and is really more of an aesthetic detail.

The label= designation enables you to simply title the drive.

When everything is said and done, it will look like this…

[autorun]
open=autorun.exe
icon=Sample (a .ico image has to be present on the drive to be used as an icon).
action=Start My Application
label= Sample Title (You can name your label here and call it whatever you want).

Save the .inf file and places on your root directory. We recommend also including the .exe on your root directory as well, as indicated in the screen cap we’ve included in the blog post. Questions? Comments? Share with us. Contact us at info AT standardmedia DOT ca or Request A Quote.

cddvd2fa3d-cube-spherea-baccess-point-offaccess-pointaccessibleactivityadadjustments-altadjustments-horizontaladjustmentsalarmalert-circlealert-octagonalert-trianglealienalign-centeralign-justifiedalign-leftalign-rightambulanceanchorantenna-bars-1antenna-bars-2antenna-bars-3antenna-bars-4antenna-bars-5apertureappsarchivearrow-back-uparrow-backarrow-bar-downarrow-bar-leftarrow-bar-rightarrow-bar-to-downarrow-bar-to-leftarrow-bar-to-rightarrow-bar-to-uparrow-bar-uparrow-big-downarrow-big-leftarrow-big-rightarrow-big-toparrow-bottom-bararrow-bottom-circlearrow-bottom-squarearrow-bottom-tailarrow-down-circlearrow-down-left-circlearrow-down-leftarrow-down-right-circlearrow-down-rightarrow-downarrow-forward-uparrow-forwardarrow-left-bararrow-left-circlearrow-left-squarearrow-left-tailarrow-leftarrow-loop-leftarrow-loop-rightarrow-narrow-downarrow-narrow-leftarrow-narrow-rightarrow-narrow-uparrow-ramp-leftarrow-ramp-rightarrow-right-bararrow-right-circlearrow-right-squarearrow-right-tailarrow-rightarrow-top-bararrow-top-circlearrow-top-squarearrow-top-tailarrow-up-circlearrow-up-left-circlearrow-up-leftarrow-up-right-circlearrow-up-rightarrow-uparrow-wave-left-downarrow-wave-left-uparrow-wave-right-downarrow-wave-right-uparrows-diagonal-2arrows-diagonalarrows-double-ne-swarrows-double-nw-searrows-double-se-nwarrows-double-sw-nearrows-down-uparrows-downarrows-horizontalarrows-join-2arrows-joinarrows-left-rightarrows-leftarrows-maximizearrows-minimizearrows-right-leftarrows-rightarrows-sortarrows-split-2arrows-splitarrows-up-downarrows-uparrows-verticalartboardaspect-ratioatatom-2atomawardbackhoebackspaceball-basketballball-bowlingball-tennisball-volleyballbanbandagebarcodebasketbattery-1battery-2battery-3battery-4battery-chargingbattery-offbatterybedbell-minusbell-offbell-plusbell-ringing-2bell-ringingbell-xbellbikebiohazardbluetooth-connectedbluetooth-offbluetoothboldbolt-offboltbonebookbookmark-offbookmarkbookmarksborder-allborder-bottomborder-horizontalborder-innerborder-leftborder-noneborder-outerborder-radiusborder-rightborder-topborder-verticalboxbracesbracketsbrand-airbnbbrand-androidbrand-apple-arcadebrand-applebrand-appstorebrand-asanabrand-behancebrand-bingbrand-bitbucketbrand-bookingbrand-chromebrand-codepenbrand-codesandboxbrand-css3brand-deviantartbrand-discordbrand-disqusbrand-dockerbrand-dribbblebrand-edgebrand-facebookbrand-figmabrand-firefoxbrand-flickrbrand-foursquarebrand-framerbrand-githubbrand-gitlabbrand-google-analyticsbrand-google-drivebrand-google-playbrand-googlebrand-gravatarbrand-hipchatbrand-html5brand-instagrambrand-kickstarterbrand-kotlinbrand-linkedinbrand-mediumbrand-messengerbrand-netflixbrand-open-sourcebrand-operabrand-pagekitbrand-patreonbrand-paypalbrand-pinterestbrand-pocketbrand-producthuntbrand-pythonbrand-redditbrand-safaribrand-sassbrand-sentrybrand-shazambrand-sketchbrand-skypebrand-slackbrand-snapchatbrand-soundcloudbrand-spotifybrand-steambrand-stripebrand-tablerbrand-tailwindbrand-telegrambrand-tidalbrand-tiktokbrand-tinderbrand-tumblrbrand-twitchbrand-twitterbrand-unsplashbrand-vimeobrand-vkbrand-whatsappbrand-windowsbrand-yahoobrand-ycombinatorbrand-youtubebriefcasebrightness-downbrightness-upbrightnessbrowserbrushbucketbugbuilding-archbuilding-bankbuilding-bridge-2building-bridgebuilding-carouselbuilding-castlebuilding-churchbuilding-communitybuilding-fortressbuilding-hospitalbuilding-lighthousebuilding-monumentbuilding-pavilonbuilding-skyscraperbuilding-storebuilding-warehousebuildingbulb-offbulbbuldozerbuscalculatorcalendar-eventcalendar-minuscalendar-pluscalendarcamera-minuscamera-offcamera-pluscameracapturecarcaravancardboardscaret-downcaret-leftcaret-rightcaret-upcashcastcecertificatechart-area-linechart-areachart-barchart-bubblechart-candlechart-donutchart-linechart-piechart-radarcheckcheckboxcheckschevron-down-leftchevron-down-rightchevron-downchevron-leftchevron-rightchevron-up-leftchevron-up-rightchevron-upchevrons-down-leftchevrons-down-rightchevrons-downchevrons-leftchevrons-rightchevrons-up-leftchevrons-up-rightchevrons-upchristmas-treecircle-checkcircle-dashedcircle-dottedcircle-minuscircle-pluscircle-squarecircle-xcirclecirclesclear-formattingclickclipboard-checkclipboard-listclipboard-xclipboardclockcloud-downloadcloud-fogcloud-offcloud-raincloud-snowcloud-stormcloud-uploadcloudcodecoincolor-pickercolor-swatchcolumnscometcommandcompasscontrastcopycopyleftcopyrightcorner-down-leftcorner-down-rightcorner-left-downcorner-left-upcorner-right-downcorner-right-upcorner-up-leftcorner-up-rightcredit-card-offcredit-cardcropcrosshaircrowncurly-loopcurrency-bitcoincurrency-dollarcurrency-eurocurrency-poundcurrency-rupeecurrency-yencurrent-locationcutdashboarddatabasedevice-desktopdevice-floppydevice-gamepaddevice-laptopdevice-mobile-rotateddevice-mobile-vibrationdevice-mobiledevice-speakerdevice-tabletdevice-tvdevice-watchdevices-2devicesdiamonddicedirection-horizontaldirectiondirectionsdisabled-2disableddiscdiscountdividedots-circle-horizontaldots-diagonal-2dots-diagonaldots-verticaldotsdownloaddrag-drop-2drag-dropdronedropletearediteggemphasiseraserexchangeexposureexternal-linkeye-offeyeface-idfallfile-alertfile-analyticsfile-certificatefile-checkfile-code-2file-codefile-difffile-dislikefile-downloadfile-exportfile-horizontalfile-importfile-infofile-invoicefile-likefile-minusfile-musicfile-offfile-phonefile-plusfile-reportfile-searchfile-shredderfile-symlinkfile-textfile-uploadfile-xfile-zipfilefiles-offfilesfilter-offfilterfingerprintfiretruckflagflameflaskflip-horizontalflip-verticalfloat-centerfloat-leftfloat-nonefloat-rightfocus-2focusfold-downfold-upfoldfolder-minusfolder-offfolder-plusfolder-xfolderfoldersforbid-2forbidforkliftframefriendsgas-stationgaugeghostgiftgit-branchgit-commitgit-comparegit-forkgit-mergegit-pull-requestglass-fullglassglobegolfgpsgrid-dotsgrip-horizontalgrip-verticalh-1h-2h-3h-4h-5h-6hand-middle-fingerhand-offhand-stophashheadphones-offheadphonesheadsetheart-brokenhearthelicopter-landinghelicopterhelphexagonhistoryhome-2homeice-creamidinboxindent-decreaseindent-increaseinfinityinfo-circleinfo-squareitalicjump-ropekaratekeykeyboard-hidekeyboard-showkeyboardlanguagelayers-differencelayers-intersectlayers-subtractlayers-unionlayout-2layout-align-bottomlayout-align-centerlayout-align-leftlayout-align-middlelayout-align-rightlayout-align-toplayout-bottombarlayout-cardslayout-columnslayout-distribute-horizontallayout-distribute-verticallayout-grid-addlayout-gridlayout-kanbanlayout-listlayout-navbarlayout-rowslayout-sidebar-rightlayout-sidebarlayoutleaflegoletter-aletter-bletter-cletter-dletter-eletter-fletter-gletter-hletter-iletter-jletter-kletter-lletter-mletter-nletter-oletter-pletter-qletter-rletter-sletter-tletter-uletter-vletter-wletter-xletter-yletter-zletters-caselicenselifebuoyline-heightlinelinklist-checklistlive-photolive-viewloader-quarterloaderlocationlock-offlock-openlocklogoutmagnetmail-openedmailmanmanual-gearboxmap-2map-pin-offmap-pinmap-pinsmapmarkdownmarqueemarsmathmaximizemedalmedical-crossmenu-2menumessage-2message-circle-2message-circle-offmessage-circlemessage-dotsmessage-offmessage-plusmessage-reportmessagemessages-offmessagesmicrophone-offmicrophoneminimizeminusmistmood-boymood-confuzedmood-crazy-happymood-crymood-happymood-kidmood-neutralmood-sadmood-smilemood-suprisedmood-tonguemoon-2moon-starsmoonmopedmousemoviemugmusicnew-sectionnewsnotenotebooknotesnotificationnumber-0number-1number-2number-3number-4number-5number-6number-7number-8number-9octagonomegaoutletpackagepage-breakpaintpalettepanorama-horizontalpanorama-verticalpaperclipparachuteparenthesesparkingpeacepencilpennantpercentagephone-callphone-callingphone-checkphone-incomingphone-offphone-outgoingphone-pausephone-plusphone-xphonephoto-offphotopicture-in-picture-offpicture-in-picture-onpicture-in-picturepillpinpinned-offpinnedpizzaplane-arrivalplane-departureplaneplanetplant-2plantplayer-pauseplayer-playplayer-recordplayer-skip-backplayer-skip-forwardplayer-stopplayer-track-nextplayer-track-prevplugpluspointpoolpowerpraypresentationprinterpromptpuzzleqrcodequestion-markradioactiverainbowreceipt-2receipt-offreceipt-refundreceipt-taxreceiptrecord-mailrectangle-verticalrectanglerecyclerefresh-alertrefreshregisteredrelation-many-to-manyrelation-one-to-manyrelation-one-to-onerepeat-oncerepeatreplacerippleroad-signrocketrotate-2rotate-clockwise-2rotate-clockwiserotate-rectanglerotaterouterouterrssrulerrunsailboatscalescanschoolscissorsscooter-electricscooterscreen-share-offscreen-sharesearchseedingselectselectorsendseparator-horizontalseparator-verticalseparatorserverservicemarksettingsshapeshareshield-checkshield-lockshield-offshield-xshieldshipshirtshopping-cartsitemapskateboardsliceslideshowsmart-homesmoking-nosmokingsnowflakesoccer-fieldsocialsort-ascendingsort-descendingspacespeakerphonespeedboatsquare-checksquare-dotsquare-forbid-2square-forbidsquare-minussquare-plussquare-rotatedsquare-xsquarestackstairs-downstairs-upstairsstar-halfstar-offstarstarssteering-wheelstep-intostep-outstethoscopestickerstrikethroughsubmarinesubscriptsubtasksumsun-offsunsunsetsunshinesuperscriptswimmingswitch-2switch-3switch-horizontalswitch-verticalswitchtabletagtallymark-1tallymark-2tallymark-3tallymark-4tallymarkstanktargettemperature-celsiustemperature-fahrenheittemperature-minustemperature-plustemperaturetemplateterminal-2terminaltest-pipetext-wrap-disabledtext-wrapthumb-downthumb-uptickettirtoggle-lefttoggle-righttooltools-kitchentoolstornadotournamenttractortrademarktraffic-conetraffic-lightstraintrash-offtrashtreestrending-down-2trending-down-3trending-downtrending-up-2trending-up-3trending-uptriangle-square-circletriangletridenttrophytruck-deliverytruck-returntrucktypographyumbrellaunderlineunlinkuploadurgentuser-checkuser-exclamationuser-minususer-offuser-plususer-xuserusersvector-beizer-2vector-beizervector-trianglevectorvenusversionsvideo-minusvideo-offvideo-plusvideoview-360viewfinderviewport-narrowviewport-widevirus-offvirus-searchvirusvolume-2volume-3volumewalkwalletwandwave-saw-toolwave-sinewave-squarewifi-0wifi-1wifi-2wifi-offwifiwindwindmillwiper-washwiperwomanworld-latitudeworld-longitudeworldwrecking-ballxyin-yangzodiac-aquariuszodiac-arieszodiac-cancerzodiac-capricornzodiac-geminizodiac-leozodiac-librazodiac-pisceszodiac-sagittariuszodiac-scorpiozodiac-tauruszodiac-virgozoom-cancelzoom-inzoom-outzoom-questionhexsmsusb