CN1815445A - Application programme detecting and installing method - Google Patents
Application programme detecting and installing method Download PDFInfo
- Publication number
- CN1815445A CN1815445A CN 200510007510 CN200510007510A CN1815445A CN 1815445 A CN1815445 A CN 1815445A CN 200510007510 CN200510007510 CN 200510007510 CN 200510007510 A CN200510007510 A CN 200510007510A CN 1815445 A CN1815445 A CN 1815445A
- Authority
- CN
- China
- Prior art keywords
- application program
- under
- operating system
- application
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000001514 detection method Methods 0.000 claims abstract description 50
- 238000009434 installation Methods 0.000 claims abstract description 45
- 230000004913 activation Effects 0.000 claims description 8
- 238000005192 partition Methods 0.000 description 14
Images
Landscapes
- Stored Programmes (AREA)
Abstract
本发明公开了一种应用程序检测方法,该方法包括以下步骤:在计算机中设置用于检测应用程序是否安装的检测模块;在计算机开机后,启动该检测模块,通过该检测模块判断应用程序的相关信息是否已被保存,如果是,则确定该应用程序已被安装,否则,确定该应用程序没有正确安装。本发明同时还公开了一种应用程序安装方法。本发明实现了确定应用程序是否安装。并进一步提供了自动安装应用程序的方案,在实现安装应用程序的同时,减少了用户的操作,降低了产品的TCO,提高了产品的易用性。
The invention discloses an application program detection method, which comprises the following steps: setting a detection module in the computer for detecting whether the application program is installed; starting the detection module after the computer is turned on, and judging the application program through the detection module Whether the relevant information has been saved, if yes, it is determined that the application program has been installed, otherwise, it is determined that the application program has not been installed correctly. The invention also discloses an application program installation method. The present invention realizes determining whether an application program is installed. A solution for automatically installing application programs is further provided, which reduces user operations, lowers TCO of the product, and improves usability of the product while implementing the installation of application programs.
Description
技术领域technical field
本发明涉及计算机技术领域,更确切地说是涉及一种应用程序检测及安装方法方法。The present invention relates to the technical field of computers, and more specifically relates to a method for detecting and installing an application program.
背景技术Background technique
目前,计算机已经成为人们工作、学习和生活中必不可少的工具。为方便用户的使用,很多知名的计算机厂商在计算机出厂时,都会为计算机安装LINUX或DOS等操作系统,以及这些操作系统的相关应用。为进一步方便用户的使用,计算机厂商往往还会为用户提供基于某些系统的重要应用,这些重要应用可以是驱动程序、系统保护功能等,这些应用所提供的功能往往都是用户非常需要的。At present, computers have become an indispensable tool in people's work, study and life. For the convenience of users, many well-known computer manufacturers will install operating systems such as LINUX or DOS and related applications of these operating systems for the computers when the computers leave the factory. In order to further facilitate the use of users, computer manufacturers often provide users with important applications based on certain systems. These important applications can be driver programs, system protection functions, etc., and the functions provided by these applications are often very needed by users.
用户在得到计算机后,往往都会根据自身的需要安装Windows之类的操作系统。但用户的操作系统安装程序只会安装操作系统最基本的功能,不会安装厂家为用户提供的那些重要应用,因此会导致厂商所提供的重要应用没有被安装到计算机上。用户还可能因没有找到厂商提供的光盘,或者是对厂商提供的功能不了解而没有安装重要应用。另外,即使厂商在计算机出厂时为用户安装了那些重要应用,也很可能会因用户在使用计算机过程中的误操作而卸载应用程序,或者因文件丢失而使得重要应用不能正常运行,还可能是因用户在重新安装新的系统时没有再次安装相关应用而导致无法使用该应用。After getting a computer, users often install operating systems such as Windows according to their own needs. However, the user's operating system installation program will only install the most basic functions of the operating system, and will not install those important applications provided by the manufacturer for the user. Therefore, the important applications provided by the manufacturer will not be installed on the computer. Users may also fail to install important applications because they cannot find the CD provided by the manufacturer, or because they do not understand the functions provided by the manufacturer. In addition, even if the manufacturer installed those important applications for the user when the computer leaves the factory, it is very likely that the application program will be uninstalled due to the user's misoperation during the use of the computer, or the important application cannot run normally due to the loss of files, or it may be The application cannot be used because the user did not install the relevant application again when reinstalling the new system.
举例来说,很多电子教育用户、网吧用户都会使用硬盘保护功能,所谓硬盘保护功能是指在硬盘中设置一定的区间作为保护空间,在设置了硬盘保护功能后,相应保护空间的数据不能被随意访问,如果需要访问该保护空间,则需要用特定的指令来打开该硬盘保护空间。基于用户对硬盘保护的要求,一般的计算机在出厂时会预装DOS系统以及该硬盘保护功能所对应的应用软件,硬盘保护功能在DOS系统下可以正常工作。而大多数用户都会在计算机中安装Windows系统,并会设置计算机在开机时通过该硬盘保护功能对Windows进行保护,但如果用户在安装Windows系统的过程中忽略了安装硬盘保护程序,则会造成硬盘保护功能在Windows系统下的失效,影响了用户对硬盘保护功能的正常使用。For example, many electronic education users and Internet cafe users will use the hard disk protection function. The so-called hard disk protection function refers to setting a certain interval in the hard disk as a protection space. After the hard disk protection function is set, the data in the corresponding protection space cannot be arbitrarily Access, if you need to access the protected space, you need to use specific instructions to open the hard disk protected space. Based on the user's requirements for hard disk protection, the general computer will pre-install the DOS system and the application software corresponding to the hard disk protection function when leaving the factory. The hard disk protection function can work normally under the DOS system. Most of the users will install the Windows system in the computer, and will set the computer to protect Windows through the hard disk protection function when the computer is turned on, but if the user neglects to install the hard disk protection program during the installation of the Windows system, it will cause the hard disk The failure of the protection function under the Windows system affects the normal use of the hard disk protection function by users.
发明内容Contents of the invention
有鉴于此,本发明所要解决的主要问题在于提供一种应用程序检测方法,以帮助用户确定所需的应用程序是否已被安装在计算机上。In view of this, the main problem to be solved by the present invention is to provide an application program detection method to help users determine whether the desired application program has been installed on the computer.
本发明还进一步提供了一种应用程序安装方法,直接为计算机自动安装应用程序的。The present invention further provides an application program installation method, which directly and automatically installs the application program for the computer.
本发明的一种应用程序检测方法,该方法包括以下步骤:A kind of application detection method of the present invention, this method comprises the following steps:
a.在计算机中设置用于检测应用程序是否安装的检测模块;a. Set up a detection module for detecting whether the application program is installed in the computer;
b.在计算机开机后,启动该检测模块,通过该检测模块判断应用程序的相关信息是否已被保存,如果是,则确定该应用程序已被安装,否则,确定该应用程序没有正确安装。b. After the computer is turned on, start the detection module, and judge whether the relevant information of the application program has been saved through the detection module, if yes, then determine that the application program has been installed, otherwise, determine that the application program has not been installed correctly.
所述步骤a中,所述检测模块设置在计算机的基本输入输出系统(BIOS)中,或者设置在计算机的特定服务区中。In the step a, the detection module is set in the basic input output system (BIOS) of the computer, or in a specific service area of the computer.
所述在计算机开机后启动检测模块为:由计算机中的BIOS启动该检测模块。Said starting the detection module after the computer is turned on is: starting the detection module by the BIOS in the computer.
所述步骤b中,所述应用程序的相关信息被保存包括:相应目录下存有该应用程序,且注册表的相应分支下存有该应用程序的注册表信息;In the step b, saving the relevant information of the application program includes: the application program is stored in the corresponding directory, and the registry information of the application program is stored in the corresponding branch of the registry;
所述应用程序的相关信息没有被保存包括:相应目录下没有保存该应用程序,和/或注册表的相应分支下没有保存该应用程序的注册表信息。The relevant information of the application program not being saved includes: the application program is not saved in the corresponding directory, and/or the registry information of the application program is not saved in the corresponding branch of the registry.
所述注册表信息包括该应用程序在注册表中的对应项,保存在该对应项下的应用程序值以及该值所对应的数据;The registry information includes the corresponding item of the application in the registry, the application value stored under the corresponding item and the data corresponding to the value;
步骤b中,所述注册表的相应分支下没有保存该应用程序的注册表信息为:注册表的相应分支下不存在该应用程序的对应项,或该应用程序的对应项下不存在应用程序值和/或不存在应用程序值所对应的数据。In step b, the registry information that does not save the application under the corresponding branch of the registry is: the corresponding item of the application does not exist under the corresponding branch of the registry, or the application does not exist under the corresponding item of the application value and/or does not exist for data corresponding to the application value.
在所述步骤b确定该应用程序没有正确安装后,进一步包括:计算机显示该应用程序没有正确安装的信息。After the step b determines that the application program is not installed correctly, it further includes: the computer displays information that the application program is not installed correctly.
在所述步骤b确定该应用程序没有正确安装后,进一步包括:根据计算机中预先保存的应用程序信息重新安装该应用程序。After the step b determines that the application program is not installed correctly, it further includes: reinstalling the application program according to the application program information pre-saved in the computer.
所述根据计算机中预先保存的应用程序信息重新安装该应用程序包括:Said reinstalling the application program according to the pre-saved application program information in the computer includes:
将预先保存的应用程序信息复制到相应的目录下;Copy the pre-saved application information to the corresponding directory;
和/或在注册表的相应分支下创建该应用程序的对应项,并在该对应项下创建该应用程序的值及该值所对应的数据;And/or create a corresponding item of the application program under the corresponding branch of the registry, and create the value of the application program and the data corresponding to the value under the corresponding item;
和/或在注册表相应分支的对应项下创建该应用程序的值;and/or create a value for that application under the corresponding key in the corresponding branch of the registry;
和/或在注册表相应分支的对应项下创建该应用程序的值所对应的数据。And/or create the data corresponding to the value of the application under the corresponding key of the corresponding branch of the registry.
所述步骤b中,在通过所述检测模块判断应用程序的相关信息是否被保存之前,进一步包括:In the step b, before judging whether the relevant information of the application program is saved through the detection module, it further includes:
b1.通过所述检测模块判断该应用程序所基于的操作系统是否安装,如果是,则继续执行判断应用程序的相关信息是否被保存的步骤;否则,结束本处理流程。b1. Judging by the detection module whether the operating system on which the application is based is installed, if yes, proceed to the step of judging whether the relevant information of the application is saved; otherwise, end the processing flow.
所述步骤b1中,所述判断该应用程序所基于的操作系统是否安装包括以下步骤:In said step b1, said judging whether the operating system on which the application is based is installed includes the following steps:
b11.检查系统引导硬盘上的激活分区;b11. Check the activation partition on the system boot hard disk;
b12.查找该激活分区中目录下的操作系统相关目录,并读取该相关目录下的操作系统相关字符串,如果读取到,则根据读取到的相关字符串确定操作系统的安装目录,并通过检查该安装目录下文件的内容确定是否安装了相应的操作系统,否则,直接确定该应用程序所基于的操作系统没有安装。b12. search for the relevant directory of the operating system under the directory in the active partition, and read the relevant character string of the operating system under the relevant directory, if read, then determine the installation directory of the operating system according to the relevant character string read, And determine whether the corresponding operating system is installed by checking the contents of the files in the installation directory, otherwise, directly determine that the operating system on which the application program is based is not installed.
本发明的一种应用程序安装方法,该方法包括以下步骤:A method for installing application programs of the present invention comprises the following steps:
A、在计算机中设置用于安装应用程序的安装模块,并保存待安装的应用程序信息;A. Setting an installation module for installing application programs in the computer, and saving the application program information to be installed;
B、计算机在开机后,启动该安装模块,该安装模块将保存的应用程序信息复制到相应的目录下,在注册表的相应分支下创建该应用程序的对应项,并在该对应项下创建该应用程序的值以及该值所对应的数据。B. After the computer is turned on, start the installation module. The installation module copies the saved application program information to the corresponding directory, creates the corresponding item of the application program under the corresponding branch of the registry, and creates the corresponding item under the corresponding item. The application's value and the data that corresponds to that value.
所述安装模块设置在计算机的BIOS中,或者设置在计算机的特定服务区中。The installation module is set in the BIOS of the computer, or in a specific service area of the computer.
所述在计算机开机后启动安装模块为:由计算机中的BIOS启动该安装模块。Said starting the installation module after the computer is turned on is: starting the installation module by the BIOS in the computer.
所述步骤B中,在安装模块启动之后,并在执行后续复制应用程序信息及创建对应项之前,进一步包括:In the step B, after the installation module is started, and before executing subsequent copying of application program information and creation of corresponding items, it further includes:
B1、安装模块判断该应用程序所基于的操作系统是否安装,如果是,则继续执行后续复制应用程序信息及创建对应项的操作;否则,结束本处理流程。B1. The installation module judges whether the operating system on which the application is based is installed, and if so, continues to perform subsequent operations of copying application information and creating corresponding items; otherwise, ends the processing flow.
所述步骤B1中,所述判断该应用程序所基于的操作系统是否安装包括:In said step B1, said judging whether the operating system on which the application is based is installed includes:
B11、检查系统引导硬盘上的激活分区;B11. Check the activation partition on the system boot hard disk;
B12、查找该激活分区中目录下的操作系统相关目录,并读取该相关目录下的操作系统相关字符串,如果读取到,则根据读取到的相关字符串确定操作系统的安装目录,并通过检查该安装目录下文件的内容确定是否安装了相应的操作系统,否则,直接确定该应用程序所基于的操作系统没有安装。B12, search the relevant directory of the operating system under the directory in the active partition, and read the relevant character string of the operating system under the relevant directory, if read, then determine the installation directory of the operating system according to the relevant character string read, And determine whether the corresponding operating system is installed by checking the contents of the files in the installation directory, otherwise, directly determine that the operating system on which the application program is based is not installed.
本发明方案通过在计算机中设置检测模块,通过该检测模块对相应的关键应用是否安装进行检测,实现了对应用程序是否安装的确定。The solution of the invention realizes the determination of whether the application program is installed or not by setting a detection module in the computer to detect whether the corresponding key application is installed.
本发明方案还通过用BIOS启动检测模块,使得计算机可以在操作系统之外完成对应用程序是否安装的检测。The solution of the present invention also uses the BIOS to start the detection module, so that the computer can complete the detection of whether the application program is installed outside the operating system.
本发明还进一步提供了在确定应用程序没有安装后,自动安装该应用程序的方案,在实现安装应用程序的同时,减少了用户的操作,降低了产品的总保有成本(TCO),提高了产品的易用性。The present invention further provides a solution for automatically installing the application program after it is determined that the application program is not installed, while realizing the installation of the application program, it reduces user operations, reduces the total cost of ownership (TCO) of the product, and improves product quality. ease of use.
本发明方案还提供了直接安装应用程序的方案,在简化了计算机处理的同时,还实现了应用程序的安装,使得用户不用作任何设置即可使用厂商提供的关键应用。The solution of the present invention also provides a solution for directly installing application programs, which not only simplifies computer processing, but also realizes the installation of application programs, so that users can use key applications provided by manufacturers without any settings.
另外,本发明还进一步提供了在对应用程序是否安装进行检测之前,或者直接安装应用程序之前,对应用程序所基于的操作系统是否安装进行检测的方案。由于不同的应用程序对应不同的操作系统,应用程序只能在特定的操作系统下有效,如果是在非指定的操作系统下安装应用程序,不仅很可能会导致该应用程序无法正常工作,甚至还可能会造成此操作系统也无法正常工作,因此,本发明所提供的对操作系统是否安装进行检测的方案,进一步保证了应用程序在安装后能够正常工作。In addition, the present invention further provides a solution for detecting whether the operating system on which the application is based is installed before detecting whether the application is installed, or before directly installing the application. Since different applications correspond to different operating systems, the application can only be effective under a specific operating system. If the application is installed under a non-specified operating system, it may not only cause the application to fail to work normally, but may even This operating system may also fail to work normally. Therefore, the solution provided by the present invention for detecting whether the operating system is installed further ensures that the application program can work normally after installation.
附图说明Description of drawings
图1为本发明方案对应用程序是否安装进行检测的流程图;Fig. 1 is a flow chart of detecting whether the application program is installed according to the scheme of the present invention;
图2为本发明方案对操作系统是否安装进行检测的流程图。Fig. 2 is a flow chart of detecting whether the operating system is installed according to the solution of the present invention.
具体实施方式Detailed ways
由于在每种操作系统下安装的应用程序往往是安装在特定的目录下,具体来说往往是安装在根目录下的,并在注册表中设有相应的记录信息,可以通过查找该根目录及注册表来确定厂商所提供的重要应用是否被安装,因此,本发明方案的检测方法主要是在计算机中添加对关键应用是否安装进行检测的检测模块,并通过该检测模块查找相应的根目录及注册表来确定相应的应用是否被安装。Since the application programs installed under each operating system are often installed in a specific directory, specifically, they are often installed in the root directory, and corresponding record information is set in the registry, you can find the root directory and the registry to determine whether the important applications provided by the manufacturer are installed. Therefore, the detection method of the present invention is mainly to add a detection module to the computer to detect whether the key applications are installed, and to find the corresponding root directory through the detection module. And the registry to determine whether the corresponding application is installed.
下面再结合附图及具体实施例对本发明方案作进一步详细的说明。The solution of the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
以针对Windows XP系统进行检测为例,其检测过程如图1所示,对应以下步骤:Taking the detection of Windows XP system as an example, the detection process is shown in Figure 1, corresponding to the following steps:
步骤101、在计算机中设置对关键应用是否安装进行检测的检测模块。Step 101, setting a detection module in the computer to detect whether the key application is installed.
具体来说,该检测模块可以直接设置在计算机的BIOS中,也可以设置在计算机硬盘的某个特定服务区中。Specifically, the detection module can be directly set in the BIOS of the computer, or can be set in a specific service area of the hard disk of the computer.
步骤102~103、计算机在每次开机后,自动启动该检测模块,并通过该检测模块检测根目录及注册表中是否存有该应用的相关信息来确定相应的应用是否被安装,如果根目录及注册表中均存有该应用的相关信息,则确定相应的应用被正确安装,并结束本处理流程;如果根目录和注册表中缺少任何一个与该应用相关的信息,则执行步骤104。Steps 102-103, after the computer is turned on each time, the detection module is automatically started, and the detection module detects whether there is relevant information of the application in the root directory and the registry to determine whether the corresponding application is installed, if the root directory If there is information related to the application in both the root directory and the registry, it is determined that the corresponding application is installed correctly, and this processing flow ends;
其中,计算机启动该检测模块可以是在每次开机启动BIOS时实现。当然,如果该检测模块是设置在计算机硬盘中,则还可以在计算机启动后由CPU来调用该检测模块。Wherein, starting the detection module of the computer may be realized when starting the BIOS every time the computer is turned on. Of course, if the detection module is set in the hard disk of the computer, the detection module can also be invoked by the CPU after the computer is started.
对于Windows XP系统来说,厂商所提供的重要应用具体可以保存在Windows XP安装目录的System32子目录下的Proctec.DLL中,该应用在注册表文件中的分支可以为:“HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LenovoSystemProcted\”下值为“ImagePath”,该值的数据为REG_EXPAND_SZ类型的“Proctec.DLL”。则检测模块在启动后,应该检查该System32子目录下是否具有Proctec.DLL,以及查找注册表的“HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services”下是否存在“LenovoSystemProcted”项,如果存在该项,则进一步检测该项下是否存在值“ImagePath”,相应的数据为“Proctec.DLL”。只要该System32子目录下不存在该Proctec.DLL,或者该注册表的相应分支下没有“LenovoSystemProcted”项,或者该“LenovoSystemProcted”项下没有值“ImagePath”,或者该“LenovoSystemProcted”项下没有该值所对应的数据“Proctec.DLL”,就可以确定该应用没有被正确安装。For the Windows XP system, the important application provided by the manufacturer can be saved in Proctec.DLL under the System32 subdirectory of the Windows XP installation directory. The branch of the application in the registry file can be: "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001 The value under \Services\LenovoSystemProcted\" is "ImagePath", and the data of this value is "Proctec.DLL" of type REG_EXPAND_SZ. After the detection module is started, it should check whether there is Proctec.DLL in the System32 subdirectory, and check whether there is a "LenovoSystemProcted" item under "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services" in the registry. If this item exists, further detection Whether the value "ImagePath" exists under this item, and the corresponding data is "Proctec.DLL". As long as the Proctec.DLL does not exist in the System32 subdirectory, or there is no "LenovoSystemProcted" item under the corresponding branch of the registry, or there is no value "ImagePath" under the "LenovoSystemProcted" item, or there is no such value under the "LenovoSystemProcted" item If the corresponding data "Proctec.DLL", it can be determined that the application is not installed correctly.
步骤104、检测模块确定该应用没有被正确安装。Step 104, the detection module determines that the application has not been installed correctly.
在检测模块确定该应用没有被正确安装后,还可以通过计算机将该应用没有被正确安装提示给用户。After the detection module determines that the application has not been installed correctly, it can also prompt the user through the computer that the application has not been installed correctly.
通过上述步骤,即可确定相关应用是否被安装。Through the above steps, it can be determined whether the relevant application is installed.
上述步骤103在确定应用被安装时直接结束了处理,为更好地为用户提供服务,还可以通过计算机向用户提示相关应用已被安装。另外,如果是由BIOS执行的检测,则可以在确定相关应用被安装后,将系统的控制权交给硬盘上的操作系统。The above step 103 directly ends the process when it is determined that the application is installed. In order to provide better services for the user, the computer may also prompt the user that the relevant application has been installed. In addition, if the detection is performed by the BIOS, the control right of the system may be handed over to the operating system on the hard disk after it is determined that the relevant application is installed.
用户在通过上述步骤104确定相关应用没有被安装后,可以在自身需要该应用时,通过手动方式安装该应用。但由用户自己安装应用时,容易出现因不知道如何安装,或没有安装程序而无法完成安装的问题。为解决这个问题,本发明方案还进一步提供了在检测出相关应用没有被安装后,自动安装该应用的方案。After the user determines that the relevant application has not been installed through the above step 104, the user may manually install the application when the user needs the application. However, when the user installs the application by himself, it is easy to have the problem that the installation cannot be completed because he does not know how to install it, or there is no installation program. To solve this problem, the solution of the present invention further provides a solution for automatically installing the application after detecting that the application is not installed.
下面以应安装在Windows XP安装目录的System32子目录下的应用程序Proctec.DLL为例,对自动安装应用的方案进行说明。其中,该应用程序在注册表的“HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LenovoSystemProcted\”下的值为“ImagePath”,该值的数据为REG_EXPAND_SZ类型的“Proctec.DLL”。The following takes the application program Proctec.DLL that should be installed in the System32 subdirectory of the Windows XP installation directory as an example to describe the solution for automatic application installation. Among them, the value of the application under "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LenovoSystemProcted\" in the registry is "ImagePath", and the data of this value is "Proctec.DLL" of type REG_EXPAND_SZ.
要想通过检测模块安装应用程序,则需要在计算机中预先保存该应用程序,为方便检测模块获取该应用程序,可以将该应用程序与检测模块保存在同一位置。之后,检测模块即可根据步骤102检测出的没有安装的信息进行安装。具体来说,如果是System32子目录下没有Proctec.DLL,则应该从计算机中获取该应用程序Proctec.DLL,并将该应用程序复制到System32子目录下;如果是注册表文件的“HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\”下没有“LenovoSystemProcted”项,则根据计算机中保存的应用程序在注册表中创建“HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LenovoSystemProcted\”目录,并在该项下设置“ImagePath”,以及该值所对应的数据“Proctec.DLL”。另外,在注册表文件的“HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LenovoSystemProcted\”目录已经存在的情况下,还可能出现该目录下没有值“ImagePath”,和/或该值所对应的数据“Proctec.DLL”的情况,如果该目录下没有值“ImagePath”,则在该目录下创建“ImagePath”,同样,如果该目录下没有值“ImagePath”所对应的数据“Proctec.DLL”,则根据计算机中保存的应用程序创建该值所对应的数据,且该数据为REG_EXPAND_SZ类型的“Proctec.DLL”,当然,如果这两个信息都没有,则这两个信息都要创建。If you want to install the application program through the detection module, you need to save the application program in the computer in advance. In order to facilitate the detection module to obtain the application program, you can save the application program and the detection module in the same location. Afterwards, the detection module can be installed according to the information that is not installed detected in step 102 . Specifically, if there is no Proctec.DLL in the System32 subdirectory, you should obtain the application program Proctec.DLL from the computer, and copy the application program to the System32 subdirectory; if the "HKEY_LOCAL_MACHINE\SYSTEM \ControlSet001\Services\" does not have a "LenovoSystemProcted" item, create the "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LenovoSystemProcted\" directory in the registry according to the application program saved in the computer, and set "ImagePath" under this item, And the data "Proctec.DLL" corresponding to this value. In addition, when the "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LenovoSystemProcted\" directory of the registry file already exists, there may be no value "ImagePath" in this directory, and/or the corresponding data "Proctec. DLL", if there is no value "ImagePath" in the directory, then create "ImagePath" in the directory, similarly, if there is no data "Proctec.DLL" corresponding to the value "ImagePath" in the directory, according to the computer The saved application creates the data corresponding to this value, and the data is "Proctec.DLL" of REG_EXPAND_SZ type. Of course, if neither of these two pieces of information exists, both pieces of information must be created.
通过上述处理方案,即可完成检查Windows XP系统中是否安装了相关的应用,并在该应用没有安装时,进一步为Windows XP系统安装该应用。如果该检测模块是通过设置在BIOS中实现的,则该检测是在Windows XP系统之外完成的,也即在Windows XP系统运行时,计算机已获知相关的应用程序是否被安装了。Through the above solution, it is possible to check whether the relevant application is installed in the Windows XP system, and further install the application for the Windows XP system when the application is not installed. If the detection module is implemented by being set in the BIOS, the detection is done outside of the Windows XP system, that is, when the Windows XP system is running, the computer has learned whether the relevant application program has been installed.
上述处理方案都是在已经确定计算机安装了Windows XP之类的操作系统的情况下的处理,实际上,还可能出现操作系统没有被安装的情况,这种情况下,显然就不需要再对操作系统中是否安装特定应用进行检测了。基于这种情况,本发明方案在检测模块对根目录及注册表进行检测之前,还可以首先对操作系统是否安装进行检测。The above solutions are all processed when it has been confirmed that the computer has installed an operating system such as Windows XP. In fact, there may be a situation where the operating system has not been installed. In this case, it is obviously not necessary to operate It is detected whether a specific application is installed in the system. Based on this situation, before the detection module detects the root directory and the registry, the solution of the present invention can also first detect whether the operating system is installed.
对操作系统的检测如图2所示,具体包括以下步骤:The detection of the operating system is shown in Figure 2, and specifically includes the following steps:
步骤201、检查系统引导硬盘上的激活分区。
之所以检查激活分区,是因为操作系统的目录信息保存在激活分区中。The reason for checking the active partition is that the directory information of the operating system is stored in the active partition.
步骤202、在查到激活分区后,查找该分区根目录下的Boot.ini。
步骤203、读取该Boot.ini下与操作系统相关的字符串,如果读取到,则进入步骤204;否则,执行步骤205。
对于Windows操作系统来说,该字符串为“multi(0)disk(0)rdisk(0)partition(1)\WINDOWS”,或与之相似的字符串。这类字符串是微软规定的用于表示操作系统安装地点的安装目录,括号中的0或1也可能是其他数字,比如2、3、4等。rdisk后面括号中的数字表示系统的第几块磁盘,1为系统的第一个磁盘,2为系统的第二个磁盘。partition后面括号中的数字表示该磁盘的第几个分区,1为第一个分区,2为第二个分区。“\”后面的WINDOWS即为Windows的具体安装目录,可以是其他字母、数字、符号的组合,比如,为“Winnt”、“WinXP”、“123”等,以表示操作系统安装在相关目录下。这些信息的组合即可表示Windows系统在相应磁盘的安装目录。检测模块如果没有读取到该字符串,则可以确定系统中没有安装相应的操作系统,因此不用再对相应的应用程序是否安装进行检测了;如果读取到该字符串,则进入步骤204。For the Windows operating system, the string is "multi(0)disk(0)rdisk(0)partition(1)\WINDOWS", or a similar string. This type of string is the installation directory specified by Microsoft to indicate the installation location of the operating system, and the 0 or 1 in the brackets may also be other numbers, such as 2, 3, 4, etc. The numbers in parentheses after rdisk indicate the number of disks in the system, 1 is the first disk of the system, and 2 is the second disk of the system. The number in parentheses after partition indicates the number of partitions of the disk, 1 is the first partition, and 2 is the second partition. The WINDOWS behind "\" is the specific installation directory of Windows, which can be a combination of other letters, numbers, and symbols, such as "Winnt", "WinXP", "123", etc., to indicate that the operating system is installed in the relevant directory . The combination of these information can indicate the installation directory of the Windows system on the corresponding disk. If the detection module does not read the string, it can determine that the corresponding operating system is not installed in the system, so it is no longer necessary to detect whether the corresponding application is installed; if the string is read, go to step 204 .
步骤204、查找安装目录下的文件,并通过分析该文件的内容确定该安装目录下是否安装了相应的操作系统,如果安装,则执行步骤206;否则,执行步骤205。
步骤205、确定系统没有安装相应的操作系统,并结束处理。
步骤206、执行上述对应用程序是否安装的检测处理。
从图2所示步骤可以看出,如果计算机没有安装操作系统,则没有必要再去检测基于该操作系统是否安装了有关的应用程序了。之所以提供这种对操作系统是否安装进行判断的处理方案,是因为:由于不同的应用程序对应不同的操作系统,应用程序只能在特定的操作系统下有效,如果是在非指定的操作系统下安装应用程序,不仅很可能会导致该应用程序无法正常工作,甚至还可能会造成此操作系统也无法正常工作。It can be seen from the steps shown in FIG. 2 that if the computer does not have an operating system installed, it is not necessary to detect whether the relevant application program is installed based on the operating system. The reason for providing this solution for judging whether the operating system is installed is because: because different applications correspond to different operating systems, the application can only be valid under a specific operating system. Not only will the application not work properly, it may even cause the operating system to not work properly.
另外,为使计算机的处理简单化,还可以直接在计算机中安装关键应用程序,为此,本发明提供了另一种不对应用程序是否安装进行检测,直接安装应用程序的实现方案,该方案可以通过以下步骤实现:In addition, in order to simplify the processing of the computer, key application programs can also be directly installed in the computer. For this reason, the present invention provides another implementation scheme of directly installing the application program without detecting whether the application program is installed. This is achieved through the following steps:
步骤A、在计算机中设置用于安装应用程序的安装模块,并保存需要安装的应用程序信息。Step A, setting an installation module for installing application programs in the computer, and saving the information of the application programs to be installed.
该安装模块可以设置在BIOS中,也可以设置在计算机的特定服务区中。该安装模块可以通过BIOS启动。如果安装模块是设置在计算机的特定服务器中,则可以在计算机开机后,由CPU启动该安装模块。The installation module can be set in the BIOS or in a specific service area of the computer. The installation module can be started through BIOS. If the installation module is set in a specific server of the computer, the installation module can be started by the CPU after the computer is turned on.
为方便安装模块获取所保存的应用程序信息,可以将该应用程序信息与安装模块保存在同一位置。In order to facilitate the installation module to obtain the saved application program information, the application program information and the installation module may be saved in the same location.
步骤B、在计算机开机后,启动该安装模块,该安装模块将预先保存的应用程序信息复制到相应的根目录下,在注册表的相应分支下创建该应用程序的对应项,并在该对应项下创建该应用程序的值以及该值所对应的数据。Step B, start the installation module after the computer is turned on, the installation module copies the pre-saved application program information to the corresponding root directory, creates the corresponding item of the application program under the corresponding branch of the registry, and creates the corresponding item in the corresponding The value under which the application is created and the data corresponding to that value.
通过上述两个步骤即可实现计算机对应用程序的自动安装。Through the above two steps, the computer can automatically install the application program.
由于在操作系统没有安装的情况下,即使重新安装了该应用程序,该应用程序也无法针对该操作系统提供自身的功能,因此,本发明在上述步骤A及B的基础上,还添加了对操作系统是否安装进行检测的方案,该检测方案即为图2所示方案,因此不再赘述。以上所述仅为本发明方案的较佳实施例,并不用以限定本发明的保护范围。Since the application program cannot provide its own functions for the operating system even if the application program is reinstalled when the operating system is not installed, the present invention also adds an additional function to the above steps A and B on the basis of the above steps A and B. The solution for detecting whether the operating system is installed or not is the solution shown in FIG. 2 , so details will not be repeated here. The above descriptions are only preferred embodiments of the solutions of the present invention, and are not intended to limit the protection scope of the present invention.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100075102A CN100410879C (en) | 2005-02-05 | 2005-02-05 | A method for detecting and installing an application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100075102A CN100410879C (en) | 2005-02-05 | 2005-02-05 | A method for detecting and installing an application program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1815445A true CN1815445A (en) | 2006-08-09 |
CN100410879C CN100410879C (en) | 2008-08-13 |
Family
ID=36907663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100075102A Expired - Lifetime CN100410879C (en) | 2005-02-05 | 2005-02-05 | A method for detecting and installing an application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100410879C (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101620561B (en) * | 2008-07-04 | 2011-12-07 | 宏碁股份有限公司 | Method for monitoring computer system efficiency |
CN102521031A (en) * | 2011-12-13 | 2012-06-27 | 华为终端有限公司 | Management method of preset application programs of mobile terminal and mobile terminal |
CN103049287A (en) * | 2012-12-10 | 2013-04-17 | 东莞宇龙通信科技有限公司 | Mobile terminal and method for installing mobile terminal applications |
CN103164247A (en) * | 2013-03-21 | 2013-06-19 | 东莞宇龙通信科技有限公司 | Method and device for automatically repairing system application |
CN104239784A (en) * | 2014-09-09 | 2014-12-24 | 北京奇虎科技有限公司 | Method for detecting applications installed in system, and client |
CN107783767A (en) * | 2016-08-26 | 2018-03-09 | 神讯电脑(昆山)有限公司 | Notebook computer detects program automatic setting system and method |
CN108563453A (en) * | 2018-04-02 | 2018-09-21 | 郑州云海信息技术有限公司 | A kind of recognition methods of application program installation and system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1229717C (en) * | 1999-06-10 | 2005-11-30 | 神达电脑股份有限公司 | How to Automatically Install Drivers for Personal Computers |
CN1369804A (en) * | 2001-02-14 | 2002-09-18 | 英业达股份有限公司 | Method for automatically detecting software version |
CN1208719C (en) * | 2002-09-27 | 2005-06-29 | 联想(北京)有限公司 | Application software automatic installing and automatic restoring method |
-
2005
- 2005-02-05 CN CNB2005100075102A patent/CN100410879C/en not_active Expired - Lifetime
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101620561B (en) * | 2008-07-04 | 2011-12-07 | 宏碁股份有限公司 | Method for monitoring computer system efficiency |
US9690561B2 (en) | 2011-12-13 | 2017-06-27 | Huawei Device Co., Ltd. | Preinstalled application management method for mobile terminal and mobile terminal |
CN102521031A (en) * | 2011-12-13 | 2012-06-27 | 华为终端有限公司 | Management method of preset application programs of mobile terminal and mobile terminal |
CN102521031B (en) * | 2011-12-13 | 2014-11-05 | 华为终端有限公司 | Management method of preset application programs of mobile terminal and mobile terminal |
US11106446B2 (en) | 2011-12-13 | 2021-08-31 | Huawei Device Co., Ltd. | Preinstalled application management method for mobile terminal and mobile terminal |
US10235149B2 (en) | 2011-12-13 | 2019-03-19 | Huawei Device (Dongguan) Co., Ltd. | Preinstalled application management method for mobile terminal and mobile terminal |
US9703542B2 (en) | 2011-12-13 | 2017-07-11 | Huawei Device Co., Ltd. | Preinstalled application management method for mobile terminal and mobile terminal |
CN103049287A (en) * | 2012-12-10 | 2013-04-17 | 东莞宇龙通信科技有限公司 | Mobile terminal and method for installing mobile terminal applications |
CN103164247A (en) * | 2013-03-21 | 2013-06-19 | 东莞宇龙通信科技有限公司 | Method and device for automatically repairing system application |
CN103164247B (en) * | 2013-03-21 | 2016-08-03 | 东莞宇龙通信科技有限公司 | The method and device that system application is repaired automatically |
CN104239784B (en) * | 2014-09-09 | 2017-05-31 | 北京奇虎科技有限公司 | The method and client of application have been installed in detecting system |
CN104239784A (en) * | 2014-09-09 | 2014-12-24 | 北京奇虎科技有限公司 | Method for detecting applications installed in system, and client |
CN107783767A (en) * | 2016-08-26 | 2018-03-09 | 神讯电脑(昆山)有限公司 | Notebook computer detects program automatic setting system and method |
CN108563453A (en) * | 2018-04-02 | 2018-09-21 | 郑州云海信息技术有限公司 | A kind of recognition methods of application program installation and system |
Also Published As
Publication number | Publication date |
---|---|
CN100410879C (en) | 2008-08-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1290005C (en) | Installation method of device drive program | |
US7831412B1 (en) | Systems and methods for providing guidance by category on the potential impact of an application on the health of a computing system | |
CN1277211C (en) | Repair method for computer operation system | |
CN103699372B (en) | From central storage means booting computer system | |
CN1251074C (en) | Restarting method for computer | |
US9213542B2 (en) | Creating templates of offline resources | |
CN1163824C (en) | Quick start device and method | |
US7370188B2 (en) | Input/output scanning | |
CN101038551A (en) | Method for implementing the start of Linux operation system in mobile hard disk | |
US20120191960A1 (en) | Booting computing devices | |
US8132187B2 (en) | Driver installer usable in plural environments | |
CN1058664A (en) | Loading system is with reference to the Apparatus and method for of disk map from personal computer system's subregion | |
US20090083375A1 (en) | Installation of a Virtualization Environment | |
CN104424140B (en) | Unified Extensible Firmware Interface driver | |
CN1815445A (en) | Application programme detecting and installing method | |
CN100339830C (en) | Method for updating software | |
JP7102524B2 (en) | Firmware release of multiple binary images | |
CN100583041C (en) | Device and method for configuring software in computer system | |
CN1755628A (en) | Method of automatically installing software during operation system startup | |
CN1235149C (en) | Restoration method and device for computer operating system and method for producing the system | |
US20050289537A1 (en) | System and method for installing software on a computing device | |
CN1402125A (en) | Method and system for directly starting personal digital assistant operating system with hardware components | |
US7506141B2 (en) | Computer system having entertainment mode capabilities | |
CN1869934A (en) | Method and built-in system for duplicating software system between networks | |
US12321756B2 (en) | Disabling software persistence |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CX01 | Expiry of patent term |
Granted publication date: 20080813 |
|
CX01 | Expiry of patent term |