ihaveaproblem Posted June 11, 2011 Posted June 11, 2011 (edited) I'm creating a little application in visual basic 2010 express to mount/dismount a truecrypt volume thats stored on a USB drive. I want this application to autorun when someone double clicks on the USB device. How can i do this? It's for windows XP and 7. I tried the autorun.inf way of open=myapplication.exe When I double click the usb drive it doesnt launch the application. Can i do something in visual basics to make the application autorun? I want it to work like when you insert a windows cd into your pc. If you insert windows XP and go my computer and double click the cd drive the setup.exe will launch. I want exactly this, just it needs to work on a usb device and launch my visual basic application please help Edited June 11, 2011 by ihaveaproblem
Steve21 Posted June 11, 2011 Posted June 11, 2011 Win7 auto blocks autorun.inf on USB drives for "security reasons" Steve
ihaveaproblem Posted June 11, 2011 Author Posted June 11, 2011 But why does Windows XP CD still work then? If i go to my computer and double click the CD drive that XP is in it launches the setup.exe automaticaly. Why can windows XP do it but not me lol? EDIT Also it doesnt work on XP for me either.
Steve21 Posted June 11, 2011 Posted June 11, 2011 Fixed media can still run, aka cd/DVD it was done to stop Conficker on USB. Can you copypaste whole autorun you're trying Steve
ihaveaproblem Posted June 11, 2011 Author Posted June 11, 2011 Ah that makes sence! It should work on WinXp though right? My autorun is this [autorun] label=Encrypted open=encrypt.exe icon=encrypt.exe encrypt.exe is in the root of the usb along with the autorun.inf
Steve21 Posted June 11, 2011 Posted June 11, 2011 Ah that makes sence! It should work on WinXp though right? My autorun is this encrypt.exe is in the root of the usb along with the autorun.inf Assuming they haven't disabled autorun it'llproc autoplay, giving option to run it. However not sure your name tag is valid, I may be mistaken but isn't it label? Or is there both Steve
Arthur Posted June 11, 2011 Posted June 11, 2011 The only way you're going to get this to work is to use USBDLM to automatically run Encrypt.exe when the USB flash drive is inserted. I can post more details if interested?
Steve21 Posted June 12, 2011 Posted June 12, 2011 The only way you're going to get this to work is to use USBDLM to automatically run Encrypt.exe when the USB flash drive is inserted. I can post more details if interested? I took the assumption this is for staff at home, so installing a per pc client didn't seem to work Steve
ihaveaproblem Posted June 13, 2011 Author Posted June 13, 2011 Thanks both. I decided to drop having it auto run and went down a different route. Thanks again.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now