A controlling device for causing a target wireless printer having a wireless communication function to perform printing, the controlling device comprising: an operating unit having an automatic wireless setting button; 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 when a user operates the automatic wireless setting button; when a user operates the automatic wireless setting button, 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 (62, 72, 82) of one or more printers (60, 70, 80) from the one or more printers (60, 70, 80) that are capable of communicating with the controlling device via a network; a determining unit configured to determine a specific printer among the one or more printers (60, 70, 80) as the target wireless printer, based on the unique identification information of the target wireless printer acquired by the first acquiring unit and the one or more unique identification information (62, 72, 82) of the one or more printers (60, 70, 80) acquired by the second acquiring unit, wherein the specific printer has the unique identification information of the target wireless printer; and an installing unit configured to generate a print port including a standard TCP/IP port for the specific printer determined as the target wireless printer and install a printer driver for the specific printer. an operating unit having an automatic wireless setting button; 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 when a user operates the automatic wireless setting button; when a user operates the automatic wireless setting button, 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 (62, 72, 82) of one or more printers (60, 70, 80) from the one or more printers (60, 70, 80) that are capable of communicating with the controlling device via a network; a determining unit configured to determine a specific printer among the one or more printers (60, 70, 80) as the target wireless printer, based on the unique identification information of the target wireless printer acquired by the first acquiring unit and the one or more unique identification information (62, 72, 82) of the one or more printers (60, 70, 80) acquired by the second acquiring unit, wherein the specific printer has the unique identification information of the target wireless printer; and an installing unit configured to generate a print port including a standard TCP/IP port for the specific printer determined as the target wireless printer and install a printer driver for the specific printer.