A non-transitory computer-readable storage medium storing a program for causing a computer to execute a method of controlling an information processing apparatus,
- wherein the method comprises:
- controlling execution of update processing for updating predetermined data of the information processing apparatus according to satisfaction of a predetermined condition;
- and
- controlling, based on a timing at which the predetermined condition is satisfied and a start time of predetermined processing which is periodically executed by the information processing apparatus, whether to execute the update processing without waiting for completion of the predetermined processing or execute the update processing after the completion of the predetermined processing.