"How do I produce CDs with software so that people have difficulty coping in and the CD must remain in the drive while program running..."

It must be dable as I have purchased software that obviously uses this technique...