In order to easily download a program obtained from the outside onto a
connected device while a device on which a program is to be downloaded is
being properly selected, when a second device connected to a first device
is controlled by executing a first program inputted to the first device
from the outside and a second program prepared beforehand in the first
device, the most desirable device is selected as the second device by
executing the second program and the first program is executed by using
information on the selected device.