You are here

How to get USB stick to autorun on Windows 7?

15 posts / 0 new
Last post
jeffg1
Offline
Last seen: 13 years 1 month ago
Joined: 2011-10-03 06:24
How to get USB stick to autorun on Windows 7?

As a newcomer, I have just installed PortableApps to a USB flash drive together with some of my favourite apps.

When I plug in the drive, Windows 7 thinks it just contains pictures for some reason and only gives me two options: "Import Pictures and Videos" or "Open folder to view files". Is there anything I can change on the drive to force Windows to autorun the Start.exe program?

PS: I did a search on 'autorun' first (of course!), but didn't find anything relevant.

PPS: First heard of PortableApps a couple of days ago via piece on BBC Click (TV technology programme).

ottosykora
Offline
Last seen: 12 hours 29 min ago
Joined: 2007-10-11 17:48
ask MS

Microsoft disabled autorun function definitely on w7 and via updates also on their other operating systems.

This was very vise I think, as the usb devices became very big source of spreading malware and the start with one simple file did open door to any kind of misuse.

Otto Sykora
Basel, Switzerland

Ken Herbert
Ken Herbert's picture
Offline
Last seen: 11 hours 19 min ago
DeveloperModerator
Joined: 2010-05-25 18:19
The autorun feature (or lack

The autorun feature (or lack of) has been discussed quite a lot here, but to sum up the bits important to you, Windows 7 cannot autorun programs from a USB drive, and unfortunately, there is nothing you can do to or on the drive to change that.

You could create a desktop shortcut (if it is your own computer) which will run Start.exe from the drive.

If it isn't your computer, there is nothing that can be done about it, sorry.

jeffg1
Offline
Last seen: 13 years 1 month ago
Joined: 2011-10-03 06:24
Thanks for the explanations.

Thanks for the explanations.

Gorgarath
Offline
Last seen: 1 year 6 months ago
Joined: 2011-09-26 11:45
USBDLM

You might want to check out USBDLM. One of the options you can configure is to auto-run your USB drives. You can also "secure" the auto-run function to specific drives that include an autorunkey=somethingorother in the autorun.ini file on the USB drive. It's not a perfect solution as someone with access to your USB drive or machine could figure out what to put on their USB drive to auto-run whatever they wanted.

I have USBDLM in use throughout the school district I work at as it also does drive letter management (this is actually the main point behind the development of USBDLM) so that Windows doesn't try using networked mapped drive letters for the USB drives. It automatically assigns a valid drive letter to whatever USB drive gets plugged in.

I also have it block U3 style partitions. Smile

Ed_P
Offline
Last seen: 6 years 1 month ago
Joined: 2007-02-19 09:09
Nice!!

Thanks for the USBDLM tip. Looks like a neat app.

There was another app that someone developed and posted here, https://portableapps.com/node/29307, that provided autorun type functionality that you might be interested in also.

And being a user of some U3 devices I don't think you need to block the U3 CD partition. It's non-writable and provides security for the files on the writable partition. Which in my opinion is the major advantage of U3 devices.

Ed

Gorgarath
Offline
Last seen: 1 year 6 months ago
Joined: 2011-09-26 11:45
Granted, I don't need to

Granted, I don't need to block U3. I just prefer to. Biggrin

Charles Kennedy
Offline
Last seen: 7 years 6 months ago
Joined: 2013-07-02 00:42
Hope you're still around

Hey,

I know you posted this about 2 years ago, but how exactly do you get USBLDM to work?

I downloaded the program, but all that happens is the help file opens when I run it.

I'm assuming I need to run it as a batch file or configure something?

If you could PM me(I don't know how to do that on this site >

JimPol31
Offline
Last seen: 10 years 6 months ago
Joined: 2014-05-12 08:34
I hope it help you create autorun USB

Hi,

I found an useful article which helped me to create own autorun USB : http://visualdesigning.com/articles/how-to-create-autorun-usb-drive/

Grompy
Offline
Last seen: 10 years 4 months ago
Joined: 2014-07-03 00:23
It works!

Nice find JimPol! I used it to create myself an autorun USB. In case anyone else sees this... I followed the instructions using the link JimPol provided except instead of using the cd image creator in the tutorial I did the following:

**First make a backup of your USB drive because you will format it.**

1. Create an Autorun.inf with the following in it:

[Autorun]
shellexecute=LaunchPortableApps.bat
Action=Launch PortableApps
Icon=usb.ico
Label=PortableApps.com

2. Create a .bat file named LaunchPortableApps.bat with the following contents:

*It will need to be edited to match whatever you choose to name your drive keep it short for ease and make sure you use ALL CAPS.
*Also if you don't have PortableApps on your root directory you will need to edit the START line to the correct path.

for /f %%D in ('wmic volume get DriveLetter^, Label ^| find "NAME OF USB DRIVE"') do set usb=%%D

START /B "" "%usb%\Start.exe"

3.Copy the usb.ico from PortableApps\PortableApps.com\App\Graphics\usb.ico and place with other new files.

4.Using an .iso creator (I used ImgBurn) create an iso image containing the above 3 files.

5.Continue following the tutorial and use the newly created iso image for the CD-ROM Image for step 4. Also change the secure label under the partition 2 section to the name you chose in the .bat file you created above also ALL CAPS.

6.Finish the rest of the tutorial then move all of your usb contents back to the new usb partition and you'll have an auto playing usb drive on any older machine and you can also check the check-mark to auto launch on any windows 7 PC when you replug.

PROFIT!! Biggrin Biggrin

AlleyKat
Offline
Last seen: 11 years 4 months ago
Joined: 2007-02-05 19:37
PA.c autorun

This isn't general, but JTH made a system for PA.c platform - I use this on my home system to autostart my PA stick whenever I plug it in. https://portableapps.com/node/13770 (note: rename the exe in the drive root to StartPortableApps.exe to make it work - it has changed name in latest release)

billmcct
Offline
Last seen: 1 month 1 week ago
Joined: 2012-05-04 11:41
Try this

a neat little free program that works from your usb drive to autorun portableapps.com.exe. Or any other files you choose.

http://download.cnet.com/MyPendrive/3000-2094_4-10589782.html?tag=api

vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 1 month ago
Developer
Joined: 2010-02-13 17:10
oes thi swork for you still?

Since the program is 5 years old and Microsoft has disabled the autorun on insertion I was curious if this still works for you? PortableApps has its own autorun, Windows will not allow it.

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

UrbanMan
Offline
Last seen: 11 years 7 months ago
Joined: 2013-04-17 01:56
Enable autorun for USB drives on Windows 7

Enable autorun for USB drives on Windows 7, no changes are needed on the USB drive, works with the standard autorun.inf:

http://leelusoft.blogspot.com/2013/04/apusb-47-10.html

UrbanMan

ByteMyAscii
Offline
Last seen: 6 years 8 months ago
Joined: 2012-12-02 15:30
Only the default disabled.

Only the Windows default has been disabled.
There is nothing to stop a 3rd party application monitoring the connection of drives and to interpret and run the file stated in the autorun.inf.
It is a basic security measure, to restrict malware transmitted via removable media.

If at first you do not succeed, use more sticky tape.

Log in or register to post comments