An electronic apparatus holds identification information for identifying
the electronic apparatus. A replacement unit is detachably connected to
the electronic apparatus. The replacement unit holds an operation program
to controls the electronic apparatus and determination information. When
the replacement unit is connected to the electronic apparatus, it is
determined based on the identification information and the determination
information whether the operation program can control the electronic
apparatus. Upon determining that the operation program can control the
electronic apparatus, the electronic apparatus is controlled with the
operation program.