Patent ID: 8867067

Claim:
A controlling device for causing a target wireless printer having a wireless communication function to perform printing, the controlling device comprising: a setting unit configured to perform a wireless setting process for connecting the target wireless printer to a wireless network according to an automatic wireless setting mode; a first acquiring unit configured to acquire, by performing a communication with usage of a layer that is lower than an IP layer when the wireless setting process is performed, unique identification information of the target wireless printer from the target wireless printer; a second acquiring unit configured to acquire, by performing a communication with usage of the IP layer after an IP address has been set to the target wireless printer, one or more unique identification information of one or more printers from the one or more printers that are capable of communicating with the controlling device via a network; a determining unit configured to determine whether the same unique identification information as the unique identification information acquired by the first acquiring unit is included in the one or more unique identification information acquired by the second acquiring unit, and determine a specific printer, which has the same unique identification information as the unique identification information acquired by the first acquiring unit, among the one or more printers as the target wireless printer in a case where it is determined that the same unique identification information as the unique identification information acquired by the first acquiring unit is included in the one or more unique identification information by the second acquiring unit; and an installing unit configured to generate a print port, which is different from a WSD port, for the specific printer determined as the target wireless printer and install a printer driver for the specific printer.