# US 9,354,856 B2 · Software installation method and device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,354,856 B2
- Document ID: US9354856B2
- Status: Granted
- Kind: B2
- Application number: 14/364,213
- Filed: 2012-12-12
- Published: 2015-01-01
- Granted: 2016-05-31
- Earliest claimed: 2011-12-12
- Assignees: Beijing Qihoo Technology Company Limited
- Applicants: Beijing Qihoo Technology Company Limited
- Inventors: Chenxi Zhao; Weihua Tao; Jinwei Li; Huan Ren
- Web page: https://patentgrep.com/patent/US9354856B2

## CPC

- G06F 8/61: Installation
- G06F 8/656: while running
- G06F 8/658: Incremental updates; Differential updates
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed are a software installation method and device. The software installation method comprises: dividing all the files of a to-be-installed software into core files and non-core files, wherein the core files are files used to achieve an active trigger function, and the non-core files are files used to achieve a passive trigger function; generating an installation sub-package of the core files and an installation sub-package of the non-core files; upon installing the to-be-installed software, using the installation sub-package of the core file to install the core files and run the core files, so that the active trigger function of the to-be-installed software operates normally. By means of the present application, the time for users to wait for software installation is shortened, and the user experience is improved.

## Claims

### Claim 1

A software installation method, comprising:
dividing, by at least one processor, all files of a to-be-installed software into core files for achieving an active trigger function and non-core files for achieving a passive trigger function;
generating, by the at least one processor, an installation sub-package of the core files and an installation sub-package of the non-core files, and setting an installation path of the to-be-installed software;
when the to-be-installed software begins to be installed, only using the installation sub-package of the core files to install the core files directly under the set installation path;
providing, by the at least one processor, an interface for receiving an input custom installation path while installing the to-be-installed software;
withdrawing, by the at least one processor, the installed core files under the set installation path if the custom installation path is different from the set installation path, and re-installing the core files under the custom installation path;
running, the core files by the at least one processor right after the installation of the core files is completed, so that the active trigger function of the to-be-installed software operates normally, wherein running the core files comprises running the core files by dynamically loading a dynamic link library DLL file in the core files; and
when the core files begin to run after installation, using the installation sub-package of the non-core files to install the non-core files automatically by the at least one processor.

### Claim 2 (depends on 1)

The method according to claim 1, wherein using the installation sub-package of the core files to install the core files comprises:
using the installation sub-package of the core files to install the core files with multiple threads, wherein the multiple threads comprise a main thread for installation initialization operation of the core files and a logic thread for executing the installation procedure of the core files.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the multiple threads further comprise an interface thread for installation interface presentation of the core files.

### Claim 4 (depends on 3)

The method according to claim 3, wherein using the installation sub-package of the core files to install the core files with the multiple threads comprises:
starting the main thread by the logic thread, and sending a message during the startup of the main thread to notify the interface thread to set a timer and begin to present the installation interface;
controlling display of an installation progress in the installation interface by the interface thread with the timer; and
when the installation progress displays that the installation is completed, sending a message from the interface thread to the logic thread in order to notify the logic thread of the completion of installation of the core files.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the set installation path comprises a default installation path and an alternate installation path; and
wherein upon installing the to-be-installed software, using the installation sub-package of the core files to install the core files under the default installation path; and, if the installation of the core files fails under the default installation path, using the installation sub-package of the core files to install the core files under the alternate installation path.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the core files for achieving the active trigger function are files that can run after the to-be-installed software is installed and run without the need of other factors besides the factor of start and running of the to-be-installed software, and the non-core files for achieving the passive trigger function are files that can run after the to-be-installed software is installed and run with the need of other factors besides the factor of the start and running of the to-be-installed software.

### Claim 7

A software installation device, comprising:
a memory having instructions stored thereon; and
at least one processor to execute the instructions to perform operations for software installation, the operations comprising:
dividing all files of a to-be-installed software into core files for achieving an active trigger function and non-core files for achieving a passive trigger function;
generating an installation sub-package of the core files and an installation sub-package of the non-core files;
setting an installation path of the to-be-installed software;
when the to-be-installed software begins to be installed, only using the installation sub-package of the core files to install the core files under the set installation path;
providing an interface for receiving an input custom installation path while installing the to-be-installed software;
withdrawing the installed core files under the set installation path if the custom installation path is different from the set installation path, and re-installing the core files under the custom installation path;
running the core files right after the installation of the core files is completed, so that the active trigger function of the to-be-installed software operates normally wherein upon running the core files, running the core files by dynamically loading a dynamic link library (DLL) file in the core files; and
when the core files begin to run after installation, using the installation sub-package of the non-core files to install the non-core files automatically.

### Claim 8 (depends on 7)

The device according to claim 7, wherein upon installing the to-be-installed software, using the installation sub-package of the core files to install the core files with multiple threads so that the active trigger function of the to-be-installed software operates normally, wherein the multiple threads comprise a main thread for installation initialization operation of the core files and a logic thread for executing the installation procedure of the core files.

### Claim 9 (depends on 8)

The device according to claim 8, wherein the multiple threads further comprise an interface thread for installation interface presentation of the core files.

### Claim 10 (depends on 9)

The device according to claim 9, wherein when the installation sub-package of the core files is used to install the core files with multiple threads, the logic thread starts the main thread; during the startup of the main thread, a message is sent to notify the interface thread to set a timer and begin to present the installation interface; the interface thread controls display of an installation progress in the installation interface using the timer; and when the installation progress displays that the installation is completed, the interface thread sends a message to the logic thread in order to notify the logic thread of the completion of installation of the core files.

### Claim 11 (depends on 7)

The device according to claim 7, wherein the set installation path comprises a default installation path and an alternate installation path; and
wherein upon installing the to-be-installed software, using the installation sub-package of the core files to install the core files and run the core files under the default installation path; and if the installation of the core files fails under the default installation path, using the installation sub-package of the core files to install the core files and running the core files under the alternate installation path, so that the active trigger function of the to-be-installed software operates normally.

### Claim 12

A non-transitory computer readable medium storing a computer program comprising instructions, wherein when the instructions are executed by a server, the server executes software installation operations comprising:
dividing all files of a to-be-installed software into core files for achieving an active trigger function and non-core files for achieving a passive trigger function;
generating an installation sub-package of the core files and an installation sub-package of the non-core files, and setting an installation path of the to-be-installed software;
when the to-be-installed software begins to be installed, only using the installation sub-package of the core files to install the core files directly under the set installation path;
providing an interface for receiving an input custom installation path while installing the to-be-installed software;
withdrawing the installed core files under the set installation path if the custom installation path is different from the set installation path, and re-installing the core files under the custom installation path;
running the core files right after the installation of the core files is completed, so that the active trigger function of the to-be-installed software operates normally wherein running the core files comprises running the core files by dynamically loading a dynamic link library DLL file in the core files; and
when the core files begin to run after installation, using the installation sub-package of the non-core files to install the non-core files automatically.
