Application not executing when pendrive removed

If the application you are referring to is SecureAccess it will only work when it is executed from the flash drive.