A software quick installation method and system

The virtual disk technology solves the problems of slow software installation and time-consuming junk file cleaning, achieving fast installation and efficient cleaning, and improving overall efficiency.

CN115373701BActive Publication Date: 2025-09-26FUJIAN TQ ONLINE INTERACTIVE INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211028262.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-25
Publication Date
2025-09-26
Estimated Expiration
2042-08-25

AI Technical Summary

Technical Problem

During the existing software installation process, copying small files slows down the installation process and generates a large number of temporary junk files that take a long time to clean up.

Method used

It uses virtual disk technology to scan software disks, create multiple vhd virtual disk files, and copy software programs, caches and junk files to the virtual disk to generate an installation package. During installation, it directly decompresses the virtual disk and mounts it to the target machine, and cleans the virtual disk to delete junk files.

Benefits of technology

It improves the software installation speed, avoids the time wasted on copying small files, and realizes the rapid cleaning of junk files, thus improving the cleaning efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115373701B_ABST
    Figure CN115373701B_ABST
Patent Text Reader

Abstract

The present invention provides a software rapid installation method and system thereof, which comprises the following steps: step S1, scanning software disks that need to be installed in batches to obtain software program folders, cache folders, and junk files; step S2, establishing multiple VHD virtual disk files, and mounting the virtual disk files to the drive letter of the software disk; step S3, copying the software program folders, cache folders, and junk files to the virtual disk; step S4, compressing the VHD virtual disk file and the source directory, cache folder directory, and junk file record of the software program folder together to generate an installation package; step S5, when installing the software, directly decompressing the installation package to obtain the VHD virtual disk file and mounting it to the drive letter of the installed machine; creating soft links of the source folder directory, cache folder directory, and upper-level directories corresponding to the junk files, and establishing mapping relationships; and step S6, quickly cleaning the virtual disk and deleting the junk files, thereby improving the installation speed of the software.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer communications, and in particular to a method and system for rapid software installation. Background Art

[0002] When installing software, you'll often be asked to choose an installation method. The most common options are Minimal Installation, Typical Installation, Custom Installation, and Complete Installation. Currently, installing multiple software applications often requires copying and decompressing numerous small files, resulting in slow installation. Furthermore, many software applications generate numerous temporary junk files, requiring regular scanning for subsequent cleanup, which can be slow. Summary of the Invention

[0003] To overcome the above problems, the present invention aims to provide a method for rapid software installation, which improves the software installation speed and avoids the time waste caused by copying a large number of small files.

[0004] The present invention is implemented by the following scheme: a method for rapid software installation, the method comprising the following steps:

[0005] Step S1: Scan the software disk that needs to be installed in batches to obtain software program folders, cache folders, and junk files;

[0006] Step S2: Create multiple vhd virtual disk files and mount the virtual disk files to the drive letter of the software disk;

[0007] Step S3: copy the software program folder, cache folder, and junk files to the virtual disk;

[0008] Step S4: compress the vhd virtual disk file and the source directory, cache folder directory, and junk file records of the software program folder to generate an installation package;

[0009] Step S5: When installing the software, directly decompress the installation package to obtain the vhd virtual disk file and mount it to the drive letter of the installed machine; create a source folder directory, a cache folder directory, and a soft link to the parent directory corresponding to the junk file, establish a mapping relationship, and install the software.

[0010] Step S6: Quickly clean up the virtual disk and delete junk files.

[0011] Furthermore, step S2 is further specified as follows: creating a vhd virtual disk file 1, and mounting the virtual disk file 1 to drive letter 1 through the windows mount disk command; creating a vhd virtual disk file 2, and mounting the virtual disk file 2 to drive letter 2 through the windows mount disk command; creating a vhd virtual disk file 3, and mounting the virtual disk file 3 to drive letter 3 through the windows mount disk command.

[0012] Furthermore, the step S3 is further specified as follows: recording the source directory of the software program folder, and copying the software program folder to the corresponding directory under the virtual disk mounted drive letter 1. Compared with the source directory of the software program folder, the corresponding directory has the same path except for the different drive letters; recording and mapping the cache folder to the folder under the mounted drive letter 2; recording the parent folder of the junk file, and moving the entire folder to the corresponding folder in drive letter 3, and then establishing a soft link for the entire folder to point to the corresponding folder in drive letter 3.

[0013] Furthermore, the step S5 is further specified as follows: when installing the software, directly decompress the installation package to obtain vhd virtual disk file 1, vhd virtual disk file 2, and vhd virtual disk file 3, and mount them to the drive letter 1, drive letter 2, and drive letter 3 corresponding to the installed machine, create soft links for the source folder directory, cache folder directory, and the upper directory corresponding to the junk file, and according to the soft links, establish a mapping relationship between the source directory of the software program folder and drive letter 1, a mapping relationship between the cache folder directory and drive letter 2, and a mapping relationship between the junk file and drive letter 3, and then install the software in the corresponding directory of drive letter 1.

[0014] Furthermore, the step S6 is further specified as follows: directly formatting the vhd virtual disk file 2 and recreating the recorded cache folder; deleting the junk files according to the recorded junk file names, and retaining the non-junk file records in the vhd virtual disk file 3.

[0015] The present invention also provides a software rapid installation system, which includes a scanning module, a virtual disk mounting module, a copying module, an installation package generating module, an installation processing module, and a junk file deleting module;

[0016] The scanning module scans the software disks that need to be installed in batches, and obtains software program folders, cache folders, and junk files;

[0017] The virtual disk mounting module creates multiple vhd virtual disk files and mounts the virtual disk files to the drive letter of the software disk;

[0018] The copy module copies the software program folder, cache folder, and junk files to the virtual disk;

[0019] The installation package generation module compresses the vhd virtual disk file and the source directory, cache folder directory, and garbage file records of the software program folder to generate an installation package;

[0020] The installation processing module directly decompresses the installation package when installing the software, obtains the vhd virtual disk file and mounts it to the drive letter of the installed machine; creates a source folder directory, a cache folder directory, and a soft link of the parent directory corresponding to the junk file, establishes a mapping relationship, and installs the software.

[0021] The junk file deletion module quickly cleans up the virtual disk and deletes junk files.

[0022] Furthermore, the virtual disk mounting module is further specified as follows: creating a vhd virtual disk file 1, and mounting the virtual disk file 1 to the drive letter 1 through the windows mount disk command; creating a vhd virtual disk file 2, and mounting the virtual disk file 2 to the drive letter 2 through the windows mount disk command; creating a vhd virtual disk file 3, and mounting the virtual disk file 3 to the drive letter 3 through the windows mount disk command.

[0023] Furthermore, the copy module is further specified as follows: recording the source directory of the software program folder, and copying the software program folder to the corresponding directory under the virtual disk mounted drive letter 1. Compared with the source directory of the software program folder, the corresponding directory has the same path except for the different drive letters; recording and mapping the cache folder to the folder under the mounted drive letter 2 with a soft link; recording the parent folder of the junk file, and moving the entire folder to the corresponding folder in drive letter 3, and then establishing a soft link for the entire folder to point to the corresponding folder in drive letter 3.

[0024] Furthermore, the installation processing module is further specified as follows: when installing the software, the installation package is directly decompressed to obtain vhd virtual disk file 1, vhd virtual disk file 2, and vhd virtual disk file 3, and mounted to the drive letter 1, drive letter 2, and drive letter 3 corresponding to the installed machine, and soft links are created for the source folder directory, cache folder directory, and the upper directory corresponding to the junk file. According to the soft links, a mapping relationship is established between the source directory of the software program folder and drive letter 1, a mapping relationship is established between the cache folder directory and drive letter 2, and a mapping relationship is established between the junk file and drive letter 3, and the software is installed in the corresponding directory of drive letter 1.

[0025] Furthermore, the junk file deletion module is further specifically as follows: directly formatting the vhd virtual disk file 2 and recreating the recorded cache folder; deleting the junk files according to the recorded junk file names, and retaining the non-junk file records in the vhd virtual disk file 3.

[0026] The beneficial effects of the present invention are: 1. It improves the installation speed of the software and avoids the time waste caused by copying a large number of small files; 2. This solution avoids the time-consuming scanning of the entire disk when cleaning up garbage, and can clean up garbage in seconds, thereby improving cleaning efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a schematic flow chart of the method of the present invention.

[0028] Figure 2 It is a diagram of the system working principle of the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described below with reference to the accompanying drawings.

[0030] See also Figure 1 As shown, a method for rapid software installation of the present invention comprises the following steps:

[0031] Step S1: Scan the software disk that needs to be installed in batches to obtain software program folders, cache folders, and junk files;

[0032] Step S2: Create multiple vhd virtual disk files and mount the virtual disk files to the drive letter of the software disk;

[0033] Step S3: copy the software program folder, cache folder, and junk files to the virtual disk;

[0034] Step S4: compress the vhd virtual disk file and the source directory, cache folder directory, and junk file records of the software program folder to generate an installation package;

[0035] Step S5: When installing the software, directly decompress the installation package to obtain the vhd virtual disk file and mount it to the drive letter of the installed machine; create a source folder directory, a cache folder directory, and a soft link to the parent directory corresponding to the junk file, establish a mapping relationship, and install the software.

[0036] Step S6: Quickly clean up the virtual disk and delete junk files.

[0037] The present invention will be further described below with reference to a specific embodiment:

[0038] A method for rapid software installation of the present invention comprises:

[0039] 1. Installation package production

[0040] 1.1. For the first time, you need to scan the disk of the software that needs to be installed in batches, including the software program folder, cache folder, and junk files.

[0041] For example, scan the software program folder: C:\Program File\Photoshop\

[0042] Cache folder:

[0043] C:\Program File\Photoshop\Temporary Files\

[0044] Junk files:

[0045] C:\Program File\Photoshop\photoshop.Temporary files

[0046] 1.2. Create a virtual disk

[0047] 1.2.1. Create vhd virtual disk file 1 and mount the virtual disk to drive letter 1

[0048] Among them, the establishment of vhd virtual disk file 1 is: create vhd virtual disk file 1 through the windows api, and mount the virtual disk to drive letter 1 through the windows mount disk command, for example, a.vhd is mounted to drive letter H:

[0049] 1.2.2. Create vhd virtual disk file 2 and mount the virtual disk to drive letter 2

[0050] For example: b.vhd is mounted to drive letter I:

[0051] 1.2.2. Create vhd virtual disk file 3 and mount the virtual disk to drive letter 3

[0052] For example: c.vhd is mounted to drive letter J:

[0053] 1.3. Copy the software program folder, cache folder, and junk files to the virtual disk

[0054] 1.3.1. Record the original directory of the software program folder and copy the software program folder to the corresponding directory under the virtual disk mounted drive letter 1. (Compared with the original directory of the software program folder: except for the different drive letters, the path is the same;)

[0055] For example:

[0056] C:\Program Files\Photoshop

[0057] Move to

[0058] H:\Program File\Photoshop; the drive letters "C:" and "H:" are different, but the path: "\Program File\Photoshop" is the same;

[0059] 1.3.2. Record and create a soft link to map the cache folder to the folder under the mounted drive letter 2

[0060] C:\Program File\Photoshop\Temporary Files\

[0061] Map to

[0062] I:\Program File\Photoshop\Temporary Files\

[0063] Create this soft link by calling windowsapi;

[0064] 1.3.3. Record the parent folder of the junk file and move the entire folder to the corresponding folder in Drive 3. Then create a soft link from the original folder to the corresponding folder in Drive 3.

[0065] Move C:\Program File\Photoshop\bin\ to

[0066] J:\Program File\Photoshop\bin\

[0067] Then create a soft link from C:\Program File\Photoshop\bin\ to J:\Program File\Photoshop\bin\

[0068] 1.4 Compress the vhd virtual files 1, 2, 3, the program source folder directory, the cache folder directory, and the garbage file records together to generate an installation package;

[0069] 2. When installing the software, directly decompress the vhd virtual files 1, 2, and 3 and mount them to drive letters 1, 2, and 3 on the machine being installed. Soft links are created for the source folder, cache folder, and junk files corresponding to the parent directory, establishing mapping relationships. Based on these soft links, the source directory of the software program folder is mapped to drive letter 1, the cache folder is mapped to drive letter 2, and the junk files are mapped to drive letter 3. The software is then installed in the corresponding directory on drive letter 1. Soft links are created by calling Windows APIs.

[0070] Mount a.vhd to drive letter H:

[0071] b.vhd is mounted to drive letter I:

[0072] c.vhd is mounted to drive letter J:

[0073] Point C:\Program File\Photoshop\ to H:\Program File\Photoshop\;

[0074] Then create a soft link from C:\Program File\Photoshop\temporary files\ to I:\Program File\Photoshop\temporary files\;

[0075] Then create C:\Program File\Photoshop\bin\temporary file\soft link pointing to J:\Program File\Photoshop\bin;

[0076] 3. Quickly clean up the virtual disk

[0077] 3.1 Directly format vhd virtual disk file 2 and recreate the recorded cache folder;

[0078] Directly format the I drive and recreate the folder I:\Program File\Photoshop\Temporary Files\;

[0079] 3.2 Delete junk files according to the recorded junk file names, and keep the non-junk file records in the vhd virtual disk file 3;

[0080] In the directory J:\Program File\Photoshop\bin\ there are:

[0081] J:\Program File\Photoshop\bin\photoshop.exe;

[0082] J:\Program File\Photoshop\bin\photoshop. Temporary files;

[0083] Clean up J:\Program File\Photoshop\bin\photoshop.temporary files;

[0084] Keep J:\Program File\Photoshop\bin\photoshop.exe.

[0085] See also Figure 2As shown, the present invention also provides a software rapid installation system, which includes a scanning module, a virtual disk mounting module, a copy module, an installation package generation module, an installation processing module, and a junk file deletion module;

[0086] The scanning module scans the software disks that need to be installed in batches, and obtains software program folders, cache folders, and junk files;

[0087] For example, scan the software program folder: C:\Program File\Photoshop\

[0088] Cache folder:

[0089] C:\Program File\Photoshop\Temporary Files\

[0090] Junk files:

[0091] C:\Program File\Photoshop\photoshop.Temporary files;

[0092] The virtual disk mounting module creates multiple vhd virtual disk files and mounts the virtual disk files to the drive letter of the software disk; the virtual disk mounting module is further specifically: creates vhd virtual disk file 1, and mounts virtual disk file 1 to drive letter 1 through the windows mount disk command; creates vhd virtual disk file 2, and mounts virtual disk file 2 to drive letter 2 through the windows mount disk command; creates vhd virtual disk file 3, and mounts virtual disk file 3 to drive letter 3 through the windows mount disk command.

[0093] The copy module copies the software program folder, cache folder, and junk file to the virtual disk; the copy module is further specifically as follows: recording the source directory of the software program folder, and copying the software program folder to the corresponding directory under the virtual disk mounted drive letter 1. Compared with the source directory of the software program folder, the corresponding directory has the same path except for the different drive letters; recording and establishing a soft link to map the cache folder to the folder under the mounted drive letter 2; recording the parent folder of the junk file, and moving the entire folder to the corresponding folder of drive letter 3, and then establishing a soft link for the entire folder to point to the corresponding folder in drive letter 3.

[0094] The installation package generation module compresses the vhd virtual disk file and the source directory, cache folder directory, and garbage file records of the software program folder to generate an installation package;

[0095] When installing the software, the installation processing module directly decompresses the installation package to obtain the vhd virtual disk file and mounts it to the drive letter of the installed machine; creates a source folder directory, a cache folder directory, and a soft link of the parent directory corresponding to the junk file, establishes a mapping relationship, and installs the software. The installation processing module is further specified as follows: when installing the software, directly decompresses the installation package to obtain the vhd virtual disk file 1, vhd virtual disk file 2, and vhd virtual disk file 3, and mounts them to the drive letter 1, drive letter 2, and drive letter 3 corresponding to the installed machine; creates a source folder directory, a cache folder directory, and a soft link of the parent directory corresponding to the junk file; based on the soft link, establishes a mapping relationship between the source directory of the software program folder and drive letter 1, a mapping relationship between the cache folder directory and drive letter 2, and a mapping relationship between the junk file and drive letter 3; and then installs the software in the corresponding directory of drive letter 1. Among them, soft link is an existing technology and can be created through the windows API.

[0096] Point C:\Program File\Photoshop\ to H:\Program File\Photoshop\

[0097] Then create a soft link from C:\Program File\Photoshop\temporary files\ to I:\Program File\Photoshop\temporary files\

[0098] Then create C:\Program File\Photoshop\bin\temporary file\soft link pointing to J:\ProgramFile\Photoshop\bin.

[0099] The junk file deletion module quickly cleans up the virtual disk and deletes junk files.

[0100] The junk file deletion module is further specifically as follows: directly formatting the vhd virtual disk file 2 and recreating the recorded cache folder; deleting the junk files according to the recorded junk file names, and retaining the non-junk file records in the vhd virtual disk file 3.

[0101] For example: directly format the vhd virtual disk file 2 and recreate the recorded cache folder;

[0102] Directly format the I drive and recreate the folder I:\Program File\Photoshop\Temporary Files\;

[0103] 3.2 Delete junk files according to the recorded junk file names, and keep the non-junk file records in the vhd virtual disk file 3;

[0104] In the directory J:\Program File\Photoshop\bin\ there are:

[0105] J:\Program File\Photoshop\bin\photoshop.exe;

[0106] J:\Program File\Photoshop\bin\photoshop. Temporary files;

[0107] Clean up J:\Program File\Photoshop\bin\photoshop.temporary files;

[0108] Keep J:\Program File\Photoshop\bin\photoshop.exe.

[0109] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.

Claims

1. A method for rapid software installation, characterized by: The method comprises the following steps: Step S1: Scan the software disk that needs to be installed in batches to obtain software program folders, cache folders, and junk files; Step S2: Create multiple vhd virtual disk files and mount the virtual disk files to the drive letter of the software disk; Step S3: copy the software program folder, cache folder, and junk files to the virtual disk; Step S4: compress the vhd virtual disk file and the source directory, cache folder directory, and junk file records of the software program folder to generate an installation package; Step S5: When installing the software, directly decompress the installation package to obtain the vhd virtual disk file and mount it to the drive letter of the installed machine; create a source folder directory, a cache folder directory, and a soft link to the parent directory corresponding to the junk file, establish a mapping relationship, and install the software. Step S6: quickly clean up the virtual disk and delete junk files; Step S3 is further specifically as follows: recording the source directory of the software program folder, and copying the software program folder to a corresponding directory under the virtual disk mounted drive letter 1, wherein the corresponding directory and the source directory of the software program folder have the same path except for the different drive letters; Record and create a soft link for the cache folder to map it to the folder under drive letter 2; record the parent folder of the junk file and move the entire folder to the corresponding folder in drive letter 3, and then create a soft link for the entire folder to point to the corresponding folder in drive letter 3; The step S5 is further specified as follows: when installing the software, directly decompress the installation package to obtain vhd virtual disk file 1, vhd virtual disk file 2, and vhd virtual disk file 3, and mount them to the drive letter 1, drive letter 2, and drive letter 3 corresponding to the installed machine, create soft links for the source folder directory, cache folder directory, and the upper directory corresponding to the junk file, and according to the soft links, establish a mapping relationship between the source directory of the software program folder and drive letter 1, a mapping relationship between the cache folder directory and drive letter 2, and a mapping relationship between the junk file and drive letter 3, and install the software in the corresponding directory of drive letter 1.

2. A software rapid installation method according to claim 1, characterized in that: The step S2 is further specifically as follows: creating a vhd virtual disk file 1, and mounting the virtual disk file 1 to drive letter 1 through the windows mount disk command; creating a vhd virtual disk file 2, and mounting the virtual disk file 2 to drive letter 2 through the windows mount disk command; creating a vhd virtual disk file 3, and mounting the virtual disk file 3 to drive letter 3 through the windows mount disk command.

3. A software rapid installation method according to claim 1, characterized in that: The step S6 is further specifically as follows: directly formatting the vhd virtual disk file 2 and recreating the recorded cache folder; deleting the junk files according to the recorded junk file names, and retaining the non-junk file records in the vhd virtual disk file 3.

4. A software rapid installation system, characterized by: The system includes a scanning module, a virtual disk mounting module, a copying module, an installation package generating module, an installation processing module, and a junk file deleting module; The scanning module scans the software disks that need to be installed in batches, and obtains software program folders, cache folders, and junk files; The virtual disk mounting module creates multiple vhd virtual disk files and mounts the virtual disk files to the drive letter of the software disk; The copy module copies the software program folder, cache folder, and junk files to the virtual disk; The installation package generation module compresses the vhd virtual disk file and the source directory, cache folder directory, and garbage file records of the software program folder to generate an installation package; The installation processing module directly decompresses the installation package when installing the software, obtains the vhd virtual disk file and mounts it to the drive letter of the installed machine; creates a source folder directory, a cache folder directory, and a soft link of the parent directory corresponding to the junk file, establishes a mapping relationship, and installs the software. The junk file deletion module quickly cleans up the virtual disk and deletes junk files; The copy module is further specifically configured to: record the source directory of the software program folder, and copy the software program folder to a corresponding directory under the virtual disk mounted drive letter 1, wherein the corresponding directory is the same as the source directory of the software program folder except for the different drive letters; Record and create a soft link for the cache folder to map it to the folder under drive letter 2; record the parent folder of the junk file and move the entire folder to the corresponding folder in drive letter 3, and then create a soft link for the entire folder to point to the corresponding folder in drive letter 3; The installation processing module is further specified as follows: when installing the software, the installation package is directly decompressed to obtain vhd virtual disk file 1, vhd virtual disk file 2, and vhd virtual disk file 3, and mounted to the drive letter 1, drive letter 2, and drive letter 3 corresponding to the installed machine, and soft links are created for the source folder directory, cache folder directory, and the upper directory corresponding to the junk file. According to the soft links, a mapping relationship is established between the source directory of the software program folder and drive letter 1, a mapping relationship is established between the cache folder directory and drive letter 2, and a mapping relationship is established between the junk file and drive letter 3, and the software is installed in the corresponding directory of drive letter 1.

5. A software rapid installation system according to claim 4, characterized in that: The virtual disk mounting module is further specifically as follows: creating a vhd virtual disk file 1, and mounting the virtual disk file 1 to the drive letter 1 through the windows mount disk command; creating a vhd virtual disk file 2, and mounting the virtual disk file 2 to the drive letter 2 through the windows mount disk command; creating a vhd virtual disk file 3, and mounting the virtual disk file 3 to the drive letter 3 through the windows mount disk command.

6. A software rapid installation system according to claim 4, characterized in that: The junk file deletion module is further specifically as follows: directly formatting the vhd virtual disk file 2 and recreating the recorded cache folder; deleting the junk files according to the recorded junk file names, and retaining the non-junk file records in the vhd virtual disk file 3.

Citation Information

Patent Citations

  • Application software installation method and device

    CN104182257A

  • Decompression-free installation package installation method, device and equipment

    CN113377386A