1. A method for installing an application program, the method comprising: an installing device detecting a system platform; the installing device automatically determining preprocessing software for the application program and detecting the preprocessing software according to the system platform and a compilation script, wherein the compilation script comprises an acquisition method of the preprocessing software; the installing device generating a relationship file and a log file according to the compilation script, and writing the acquisition method of the preprocessing software into the log file according to the compilation script when the preprocessing software is detected to be not installed yet, wherein the preprocessing software comprises an essential program and a recommended program, the essential program is required to install the application program, and the recommended program is optional to install the application program; and the installing device acquiring the preprocessing software according to the acquisition method written in the log file and installing the preprocessing software; wherein the acquisition method comprises uniform resource locator (URL) addresses for downloading the essential program and the recommended program of the preprocessing software.