How to autorun applications after mounting a TrueCrypt container

autorunportablescripttruecrypt

I would like my TrueCrypt virtual drive to act as a newly inserted USB drive or CD/DVD by executing commands in the partition's autorun.inf file.

I've read several suggestions online including creating a .bat file or installing software so Windows will think this is a CD, but I'd like to know the easiest and least intrusive way to pull it off. i.e. I want to keep from installing or messing with the host computer as much as possible, as this is intended to be a fully portable drive.

EDIT: To clarify, I technically have TWO separate autorun.inf files on my flash drive: there is one in the base directory of the USB drive which correctly prompts me to run TrueCrypt as soon as I insert the drive, and there is a second autorun.inf that is inside the encrypted container.

The second autorun.inf file resides in the base directory of the virtual drive created after TrueCrypt mounts (actually, this inf file was created by LiberKey, which is the portable UI I'm using inside the container). I would like to be able to autorun this second inf file as soon as the virtual drive is mounted.

Best Answer

There is an answer here:

http://www.ericsprojects.com/?p=102

Seems to be an easy way to do it. Just create a file, place the code from article into it and modify drive letter if needed. Shouldn't take more than 5 minutes.

Related Question