1. An image forming apparatus capable of executing update processing for updating firmware, the apparatus comprising: a setting unit configured to set, as a setting regarding the update processing, either a first setting indicating that the update processing is executed periodically or a second setting indicating that the update processing is executed at a particular date/time rather than periodically; an obtaining unit configured to obtain update firmware for updating firmware of the image forming apparatus; an extraction unit configured to execute extraction processing for extracting the update firmware that the obtaining unit obtains; a determination unit configured to determine, in a case where the extraction processing is interrupted due to a power-off and the image forming apparatus re-boots, whether the first setting or the second setting is set by the setting unit; and a deciding unit configured to, based on a result of the determination by the determination unit, decide whether or not to re-execute the extraction processing.