I don't think this is illegal. All he wants is just to install a program to a remote system. The best I can think of is to copy cd contents to a .iso file and mount it remotely using a tool such a s demontools which could mount an iso file and the system sees it as a CD-ROM drive