- Format the USB stickas required
- reate a hidden folder SETUP_FILES
- Create a TrueCrypt volume in SETUP_FILES called ENCRYPTED_FILES_DO_NOT_DELETE_EVER.TC
- Copy the TrueCrypt Setup program: TrueCrypt Setup 7.1a.exe in SETUP_FILES
- Create a start.cmd script in SETUP_FILES containing the following:-
set DIR=%CD% "C:\Program Files\TrueCrypt\TrueCrypt.exe" /v "%DIR%\SETUP_FILES\ENCRYPTED_FILES_DO_NOT_DELETE_EVER.TC" /lx /a /e /q
- Create a stop.cmd script in SETUP_FILES containing the following:-
"C:\Program Files\TrueCrypt\TrueCrypt.exe" /q /d
- In the \ folder of the USB stick create a file called 'Start Using Secure USB stick.vbs' containing the following:-
on error resume next Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists("C:\Program Files\TrueCrypt\TrueCrypt.exe") Then CreateObject("Wscript.Shell").Run "\SETUP_FILES\start.cmd", 0, False Else if MsgBox("Some software is required to use this encrypted USB stick. Please Follow the installation instructions. When finished please launch this program again to access the disk.",vbOK,"Software Installation (TrueCrypt)") = vbOK Then CreateObject("Wscript.Shell").Run """\SETUP_FILES\TrueCrypt Setup 7.1a.exe""", 1, False End If End If
- Lastly create a files called 'Stop Using Secure USB stick.vbs in the \ folder of the USB stick
CreateObject("Wscript.Shell").Run "SETUP_FILES\stop.cmd", 0, False
Monday, 05 May 2014 00:00
Making TrueCrypt on a usb stick a bit easier for end users (Windows)
I needed to make TrueCrypt a bit friendlier for end users (teachers).
Download attachments:
- Start_Using_Secure_USB_stick.vbs.txt (3739 Downloads)
- Stop_Using_Secure_USB_stick.vbs.txt (3696 Downloads)
- start.cmd.txt (3797 Downloads)
- stop.cmd.txt (3714 Downloads)
Leave a comment
Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.