Autorun when USB stick is inserted
Posted
by user313724
on Stack Overflow
See other posts from Stack Overflow
or by user313724
Published on 2010-06-09T05:57:19Z
Indexed on
2010/06/09
6:02 UTC
Read the original article
Hit count: 249
Hi,
I'm trying to prompt users to run my installer, whenever they plug in my USB device. I'd like this to work on all (most?) Windows OSes.
I have an autorun.inf file in the root dir of my USB key with these contents:
[Autorun]
ShellExecute=setup.exe
Icon=setup.exe
UseAutoplay=1
It doesn't seem to do very much at all. Well... it does change the icon properly, but nothing gets executed and the user doesn't get any prompts. I've tried it on both Windows 7 and Windows Server 2003.
Any ideas?
© Stack Overflow or respective owner