You are here

Auto-Launch PAM on USB insert (SOLVED)

17 posts / 0 new
Last post
Joble
Joble's picture
Offline
Last seen: 15 years 7 months ago
Joined: 2007-05-03 12:46
Auto-Launch PAM on USB insert (SOLVED)

EDITED: Sorry about those extra spaces, don't know how they got there, Fixed Now! Thanks to porterkm

Take the default Autorun.inf file from \PortableApps and copy it to \

Default Autorun.inf looks like this:

[Autorun]
Open=PortableApps\PortableAppsMenu\PortableAppsMenu.exe
Action=Start PortableApps
Icon=PortableApps\PortableAppsMenu\PortableAppsMenu.exe
Label=PortableApps

Now edit \Autorun.inf so it looks like this:

[Autorun]
Icon=PortableApps\PortableAppsMenu\PortableAppsMenu.exe
Label=PortableApps
shellexecute=PortableApps\PortableAppsMenu\PortableAppsMenu.exe
UseAutoPlay=1

Open My Computer, right click on your USB drive letter, click on properties, click the autoplay tab, choose mixed content, and select action to perform, take no action. That should work, but if it doesn't then do the same for every autoplay option in the list.

Some programs change the autoplay options for USB drives, two that I know of are Windows Media Player (turn off sync) and Adobe Photo Album. If you install or update these programs just go back into My Computer and change the autoplay option for your USB back to take no action.

I've done it on XP Home and XP Pro and it worked on both. Let me know how it goes.

Joble

PS: I don't know if it makes any difference, but I have formatted this USB in Windows and gotten rid of the sony software it came with. Sony MicroVault 2G, does anyone happen to know if that would make a difference in this process?

XP Home and Pro are both with SP2

roamer
roamer's picture
Offline
Last seen: 14 years 4 months ago
Joined: 2007-02-21 16:01
I'll give it a try...

on my school pc (xp pro sp2 non-admin account)

edit: dosen't work. most likely because of the "non-admin account"
edit2: dosen't work on admin account either same pc. might be the computer itself. Ill try at home.
edit3: just noticed i didnt do the mixed content thing. I'll tried again and it didn't open the menu either. Sooner or later someone will figure it out.
__________________________________________
Computer Jokes!
If There Were Computers in 1776...

OliverK> you don't live on a cow
IRC: It brings out the best in all of us...Especially when tired.

Joble
Joble's picture
Offline
Last seen: 15 years 7 months ago
Joined: 2007-05-03 12:46
Autorun may be disabled on school computer

I've seen some posts here and there about that. If Autorun is disabled on your school computer I don't think there's anything you can do to make it run other than editing the registry.

Have an Awesome Day!

roamer
roamer's picture
Offline
Last seen: 14 years 4 months ago
Joined: 2007-02-21 16:01
AutoRun isnt disabled

because autorun discs that i make run with an autorun script, and the "nag window" will pop-up with the normal autorun script on my flash drive.
__________________________________________
Computer Jokes!
If There Were Computers in 1776...

OliverK> you don't live on a cow
IRC: It brings out the best in all of us...Especially when tired.

Joble
Joble's picture
Offline
Last seen: 15 years 7 months ago
Joined: 2007-05-03 12:46
AutoPlay options

Did you try setting them all to take no action? I did that myself but since my mixed content menu was coming up I was hoping that was all, but try setting all options to take no action. If that doesn't work then I'll have to hope someone else comes up with an alternate solution. If I can find multiple people who get this to work I want to make a complete list of actions to take and software that resets the usb so we can have a complete and comprehensive how-to on the subject and we can direct people to it, since so many have this question.

Also I don't have admin rights on the XP Pro box and it did work, even without admin rights.

I would be interested to know if ANYONE besides me got this thing working and if I missed any possible steps in my post.

Have an Awesome Day!

Random1448
Offline
Last seen: 11 years 9 months ago
Joined: 2007-09-20 02:35
Hmmm..

Well, I did what you said, but it won't remember my auto play settings. When I switch it to mixed content, and take no action, as soon as I hit apply, ok, it switches back to default. Any idea why this is?

Aciago
Aciago's picture
Offline
Last seen: 6 months 1 week ago
Joined: 2007-01-24 14:23
you have to

edit the registry to enable autorun again...

------------------
If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report Biggrin

If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report Biggrin

wsm23
Offline
Last seen: 12 years 2 months ago
Joined: 2006-01-09 22:05
No you don't

Use this: Microsoft Autoplay Repair Wizard

--
Life is about the journey not the destination!

My site * My Blog

The Kazoo Spartan

Life is about the journey not the destination!

The Kazoo Spartan

Random1448
Offline
Last seen: 11 years 9 months ago
Joined: 2007-09-20 02:35
Are you sure?

I think auto play works, the window still pops up when I put in my USB drive, It's just not saving my settings

wsm23
Offline
Last seen: 12 years 2 months ago
Joined: 2006-01-09 22:05
That wizard has many features.

Run it and try.

--
Life is about the journey not the destination!

My site * My Blog

The Kazoo Spartan

Life is about the journey not the destination!

The Kazoo Spartan

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 1 month ago
Developer
Joined: 2007-01-10 19:25
I have an admin account on

I have an admin account on an XP SP2 Home and it doesn't work.

EDIT: Okay, it does work if you take out those spaces. Once I took out the spaces, it worked. So it would be like this:

[AutoRun]
Icon=PortableApps\PortableAppsMenu\PortableAppsMenu.exe
Label=PortableApps
shellexecute=PortableApps\PortableAppsMenu\PortableAppsMenu.exe
UseAutoPlay=1

----
"For a list of all the ways technology has failed to improve the quality of life, please press three."
Alice Kahn

-Please search before posting

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

Joble
Joble's picture
Offline
Last seen: 15 years 7 months ago
Joined: 2007-05-03 12:46
THANK YOU SO MUCH!

I knew I couln't be the only one! Thought I was going NUTS!

Here's what Microsoft has to say about UseAutoPlay:

http://msdn.microsoft.com/msdnmag/issues/01/11/autoplay/


Automatically Opening Folders
On Windows Me and Windows 2000, Autoplay V1 opens a folder to display the contents of a newly mounted hard disk drive or to display the contents of network drives mapped through the Map Network Drive menu option in Windows. Likewise, if there is an Autorun.INF file on a CD media and the open or ShellExecute command is not specified, Windows will open a folder on the root of the drive. Starting with Windows XP, Autoplay V2 opens a folder following the insertion of media in a CD drive or removable disk drive if it can't find an Autorun.INF file and the Autoplay V2 content sniffing does not find any known content. Content sniffing is new to Autoplay V2 and is explained later in this article. This behavior also applies to removable hard disks, like USB and 1394 hard disks.

According to this the Open command should also work though I haven't tried it.

Joble

I Told You It Could Be Done! Muahahahaha!

PS: I'm done with this topic, asked and answered. If it doesn't work for you search for autorun.inf and autoplay at:
http://msdn2.microsoft.com/en-us/library/default.aspx
There appear to be several possible issues as to why it might not work for you, but it's supposed to work, and now there are two of us. L8R!

Have an Awesome Day!

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 1 month ago
Developer
Joined: 2007-01-10 19:25
No problem . I have to

No problem :wink:. I have to admit, this'll be pretty cool.

----
"For a list of all the ways technology has failed to improve the quality of life, please press three."
Alice Kahn

-Please search before posting

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

Patrick Patience
Offline
Last seen: 4 years 4 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Cool.

So that'll stop giving me a list of choises to run?

_______________________________________________
Wow, I just noticed I still had a signature, that's enough of that.

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 1 month ago
Developer
Joined: 2007-01-10 19:25
Right. ---- "For a list of

Right.

----
"For a list of all the ways technology has failed to improve the quality of life, please press three."
Alice Kahn

-Please search before posting

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

Patrick Patience
Offline
Last seen: 4 years 4 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Cool.

*choices. Woops. Blum

And come by the IRC when you get a chance, I wanna start working on the wiki.

_______________________________________________
Wow, I just noticed I still had a signature, that's enough of that.

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 1 month ago
Developer
Joined: 2007-01-10 19:25
Sorry, I had to go to the

Sorry, I had to go to the gym. Let me know when you're ready. I'll be waiting till 4:30 EDT and I'll be back, say, around 8:00 EDT.

----
"For a list of all the ways technology has failed to improve the quality of life, please press three."
Alice Kahn

-Please search before posting

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

Log in or register to post comments