USBStart is designed to run with Windows XP SP2's autorun. It also works well with APO USB Autorun, which is a free program that will add the autorun functionality to any earlier version of Windows that supports flash drives (Windows 98 and up).
USBStart will run a program when it starts, then unmount the flash drive when that program finishes. I use it to run Floater, which is a menu for the programs I keep on my flash drive. When I close Floater, USBStart will copy an unmounting program and a little copy of itself to a temp directory on the host computer. USBStart will close and the little copy will run, which will attempt to dismount the drive and then all temporary files are deleted.
Basically, once you have autorun enabled (or APO USB Autorun) and your flash drive set up properly, you need to just stick in your jump drive and the menu will start. Run programs and do your thing, and finally close the menu to dismount the flash drive. It couldn't be much simpler.
Here are the suggested steps to get your flash drive working like mine.
At this point, you should be able to dismount the drive, then reinsert it and have the autorun start up the floating menu. When you close the menu, the flash drive should be dismounted automatically and you can remove it safely from the computer.
Right-click and create a new text file. Name it autorun.inf. Make sure that you have file extensions turned on; that way you won't accidentally create an "autorun.inf.txt" file and wonder what is wrong for the longest time.
In that file, add these lines:
There are other things you can add to this file, but the lines above will be enough to get it to work.