New Flash Drive

I bought my son a new flash drive.  He came home from school and said he got in trouble for trying to install software on a school computer.  I took the flash drive and deleted the files off of it.  Does it actually install anything on a PC when it is plugged in or just run from the flash drive?