Operation system automatic installation method and device, equipment and storage medium
By automatically installing the device's built-in image creation tool and installation master control file through the operating system, the disk partitioning, installation, and system settings of the operating system are completed automatically, solving the problems of complex and inefficient system installation in existing technologies and realizing a highly efficient automated installation process.
Patent Information
- Application Number
- CN202511688773.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2025-12-19
AI Technical Summary
The existing operating system installation process is complex, especially when installing Windows systems, which requires users to manually select the system version and disk partition, resulting in low installation efficiency and a high failure rate.
This invention provides a method for automatic operating system installation. It utilizes a built-in image creation tool and installation master control file to locate a pre-made disk image format file based on the system version number, automatically package it into an automatic installation image file, control disk partitioning, and install the operating system, drivers, and applications. Finally, it sets system parameters.
It achieves fully automated operating system installation, simplifies user operations, improves system installation efficiency, and reduces the probability of installation failure.
Smart Images

Figure CN121166147A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device and storage medium for automatic installation of an operating system. Background Technology
[0002] When users install Windows on a device, they need to select the correct system version and manually delete and recreate disk partitions. This adds to the difficulty of system installation for non-professionals unfamiliar with disk partitioning. The installation process may involve multiple device restarts, making the entire process complex and inconvenient, and increasing the probability of installation failure. Therefore, existing technologies suffer from low system installation efficiency.
[0003] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main objective of this invention is to provide an automatic operating system installation method, which aims to solve the technical problem of low system installation efficiency in the prior art.
[0005] To achieve the above objectives, this application provides an automatic operating system installation method. The method is applied to an automatic operating system installation device, which establishes a communication connection with the device to be installed. The automatic operating system installation device has a built-in image creation tool and a pre-stored installation master control file containing an installation master control program. The method includes: Based on the system version number of the operating system to be installed, the system searches for a pre-made disk image format file locally. The disk image format file is used to package the operating system and contains a system installation image file, driver files, and application files corresponding to the system version number. The disk image format file, the installation master control file, and the preset system startup settings file are packaged into an automatic installation image file using the image creation tool. If an installation command for the installation system is detected, the absolute path of the installation master control file packaged in the automatic installation image file is determined. With the absolute path of the installation master control file as a reference, the absolute path of the disk image format file and the absolute path of the settings file are determined. Based on the installation master control file, the device to be installed is controlled to perform disk partitioning operations to obtain multiple partitions, including a primary partition. The primary partition is used to store the operating system, applications, and user configuration files to be installed. Based on the absolute path of the disk image format file, the disk image format file is extracted to the primary partition obtained after the disk partitioning operation. In the primary partition, the operating system to be installed is installed based on the system installation image file, the driver is installed based on the driver file, and the application is installed based on the application file. When the device to be installed starts the system for the first time, the parameters in the configuration file are set as system parameters according to the absolute path of the configuration file.
[0006] In one possible implementation of this application, the operating system automatically installs a device with a locally pre-stored restore system. The step of controlling the device to be installed to perform disk partitioning operations based on the installation master control file to obtain multiple partitions, including a primary partition, includes: Based on the installation master control file, preset partition format requirements, and partition size requirements, the disk partitioning operation is performed on the device to be installed, and a hidden partition is also obtained; If a restore command from the restore system is detected, the disk image format file of the restore system is released to the hidden partition. The disk image format file of the restore system includes the restore system installation image file, the restore system driver file, and the restore system application file. The operating system is installed in the hidden partition based on the restore system installation image file, the drivers are installed based on the restore system driver files, and the applications are installed based on the restore system application files, so as to restore to the original system in case of system installation failure.
[0007] In one possible implementation of this application, the operating system to be installed is a Windows system, and the operating system automatic installation device contains a WinPE environment. In the WinPE environment, disk partitions have randomly assigned drive letters. The step of determining the absolute path of the installation master control file packaged within the automatic installation image file if an installation command for the system is detected includes: If an installation command for the installation system is detected, the installation master control program in the installation master control file will be started from the preset insertion point in the WinPE environment. Poll all disk partitions in drive letter order until the installation master control program is found; Based on the current drive symbol where the installation master control program is located, determine the absolute path of the installation master control file packaged in the automatic installation image file.
[0008] In one possible implementation of this application, the disk partitioning operation on the device to be installed yields not only a primary partition but also an EFI partition and a data partition. The EFI partition is used to boot the device to be installed, and the data partition is used to store user data. Before the step of starting the installation master control program in the installation master control file from a preset insertion point in the WinPE environment if an installation command for the installation system is detected, the following steps are included: The WinPE environment is started based on UEFI firmware or BIOS firmware.
[0009] In one possible implementation of this application, the disk image format file is a WIM file, which contains multiple versions of system installation image files. The WIM file supports storing duplicate files in multiple versions of system installation image files only once.
[0010] In one possible implementation of this application, the operating system to be installed is a Windows system, the operating system automatic installation device contains a WinRE environment, and the operating system automatic installation device has a built-in DISM tool. Before the step of searching for a pre-made disk image format file locally according to the system version number of the operating system to be installed, the following is included: In the WinRE environment, the DISM tool is used to capture the system installation image file corresponding to the system version number; Based on the system version number of the operating system to be installed, obtain the driver files and application files; The disk image format file in the form of a WIM file is stored in a preset storage location using the DISM tool.
[0011] In one possible implementation of this application, after the step of packaging the disk image format file, the installation master control file, and the preset system startup settings file into an automatic installation image file using the image creation tool, the process includes: When a USB drive is detected, the user is prompted to launch the Rufus tool; When the user starts the Rufus tool, the system controls the automatic installation image file to be burned to a USB drive so that the user can begin installing the operating system.
[0012] Furthermore, to achieve the above objectives, this application also provides an automatic operating system installation apparatus, which includes: The search module is used to search for a pre-made disk image format file locally based on the system version number of the operating system to be installed. The disk image format file is used to package the operating system and contains a system installation image file, driver files, and application files corresponding to the system version number. The packaging module is used to package the disk image format file, the installation master control file, and the preset system startup configuration file into an automatic installation image file using an image creation tool; The determination module is used to determine the absolute path of the installation master control file packaged in the automatic installation image file if an installation instruction for the installation system is detected, and to determine the absolute path of the disk image format file and the absolute path of the settings file with reference to the absolute path of the installation master control file. The control module is used to control the device to be installed to perform disk partitioning operations based on the installation master control file to obtain multiple partitions, including a primary partition. The primary partition is used to store the operating system, applications and user configuration files to be installed. The installation module is used to extract the disk image format file to the primary partition obtained after disk partitioning operation according to the absolute path of the disk image format file, install the operating system to be installed based on the system installation image file in the primary partition, install the driver based on the driver file, and install the application based on the application file. The configuration module is used to set the parameters in the configuration file as system parameters according to the absolute path of the configuration file when the device to be installed starts the system for the first time.
[0013] In addition, to achieve the above objectives, this application also provides a system automatic installation device, which is a physical node device. The system automatic installation device includes: a memory, a processor, and a system automatic installation program stored on the memory and capable of running on the processor. The processor executes the system automatic installation program to realize the steps of the operating system automatic installation method.
[0014] In addition, to achieve the above objectives, this application also provides a storage medium storing a program that implements an automatic operating system installation method, wherein the automatic operating system installation program implements the steps of the above-described automatic operating system installation method when executed by a processor.
[0015] This application provides an automatic operating system installation method, apparatus, device, and storage medium. Compared with the low system installation efficiency in existing technologies, the method is applied to an automatic operating system installation device. The automatic operating system installation device establishes a communication connection with the device to be installed. The automatic operating system installation device has a built-in image creation tool and a pre-stored installation master control file locally. The installation master control file contains an installation master control program. The method includes: searching for a pre-made disk image format file locally according to the system version number of the operating system to be installed, wherein the disk image format file is used to package the operating system, and the disk image format file contains a system installation image file, driver files, and application files corresponding to the system version number; using the image creation tool, packaging the disk image format file, the installation master control file, and a preset system startup configuration file into an automatic installation image file; if the system installation is detected... The installation instructions determine the absolute path of the installation master control file packaged within the automatic installation image file. Using the absolute path of the installation master control file as a reference, the absolute paths of the disk image format file and the settings file are determined. Based on the installation master control file, the device to be installed is controlled to perform disk partitioning operations to obtain multiple partitions, including a primary partition. The primary partition is used to store the operating system to be installed, applications, and user configuration files. According to the absolute path of the disk image format file, it is extracted to the primary partition obtained after the disk partitioning operation. In the primary partition, the operating system to be installed is installed based on the system installation image file, the drivers are installed based on the driver files, and the applications are installed based on the application files. When the device to be installed first starts the system, the parameters in the settings file are set to system parameters according to the absolute path of the settings file. In this application, the disk image, settings, and installation master control program can be packaged into an automatic installation image based on the system version number. The automatic installation image first automatically partitions the disk, then automatically installs the system, then automatically installs drivers and applications, and finally automatically sets system parameters. It replaces the error-prone steps of requiring users to select the corresponding version and manually partition the disk, thus improving system installation efficiency. Attached Figure Description
[0016] Figure 1 This is a flowchart illustrating an embodiment of the automatic operating system installation method of this application; Figure 2 This is a schematic diagram of the operating system automatic installation device in the embodiment of the operating system automatic installation method of this application; Figure 3 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the automatic operating system installation method of this application. Detailed Implementation
[0017] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] Example 1: This application provides an automatic operating system installation method. In the first embodiment of the automatic operating system installation method of this application, refer to... Figure 1 The method is applied to an automatic operating system installation device. The automatic operating system installation device establishes a communication connection with the device to be installed. The automatic operating system installation device has a built-in image creation tool and a pre-stored installation master control file, which contains the installation master control program. Installing Windows on a computer involves various methods, but none are as simple as installing an application. For those unfamiliar with system installation, it can be quite difficult. The typical installation process involves multiple selections, including choosing the system version, and deleting and rebuilding disk partitions. This adds to the difficulty for non-professionals unfamiliar with disk partitioning. Furthermore, the installation process may require multiple device restarts, making the entire process complex and increasing the probability of installation failure. Therefore, current technology suffers from relatively low system installation efficiency.
[0019] To address the technical problem of low system installation efficiency, the fully automated system installation method of this application embodiment allows non-professionals who are not familiar with computer system installation to easily and quickly install the system.
[0020] The automatic installation method for the operating system includes steps S110-S160: The automatic installation method of this operating system is applied to an automatic installation device for the operating system. The computer device can be a terminal or a server. The terminal can be a smartphone, tablet computer, handheld computer, or laptop computer, etc.
[0021] Different computer devices, such as computers and mobile phones, have different operating systems. For example, a computer's operating system can be Windows or macOS, a server's operating system can be Linux (Ubuntu), a mobile phone's operating system can be Android or iOS, and a tablet's operating system can be Android or iPadOS. Each operating system has multiple versions, and the system version number is the unique identifier of the system.
[0022] The disk image format type can specifically include WIM, GHO, ISO, and VMDK / VHDX. Among these, ISO is the most common optical disc image format, natively supported by almost all operating systems. In this embodiment, the specific disk image format is not limited and can be any of the above-mentioned types. In this embodiment, the disk image format file encapsulates an operating system, containing a system installation image file corresponding to the operating system version number, driver files, and application files.
[0023] Step S110: Locate a pre-made disk image format file locally according to the system version number of the operating system to be installed. The disk image format file is used to package the operating system and contains a system installation image file, driver files, and application files corresponding to the system version number. In existing technologies, when users install a system, in addition to installing the corresponding version, they also need to install the corresponding driver files and personalized applications after the system is installed. This operation is cumbersome and the installation efficiency is low.
[0024] In some embodiments, the operating system automatic installation device locally stores multiple operating systems for selective installation. The user's pre-installed system version is the operating system to be installed. When the user selects the desired system version on the operating system automatic installation device, and the device receives an installation reservation instruction, it searches the local database for the disk image format file corresponding to the version number of the operating system to be installed, based on the installation reservation instruction. This disk image format file integrates the system installation image file, driver files, and application files.
[0025] In some embodiments, the operating system to be installed is a Windows system, the operating system automatic installation device has a WinRE environment, and the operating system automatic installation device has a built-in DISM tool. Before step S110, steps A1-A3 are included: WinRE stands for Windows Recovery Environment. It is a standalone, lightweight operating system separate from the main Windows system, specifically designed for troubleshooting and system recovery when Windows fails to boot or run normally.
[0026] DISM (Deployment Image Servicing and Management) is a command-line tool in Windows systems, primarily used for maintaining and preparing Windows images.
[0027] In some embodiments, the disk image format type is WIM (Windows Imaging Format). WIM is a file-based image format; unlike ISO, which captures data sector by sector, it captures individual files and directories within a disk volume and stores them in a single WIM file. The WIM file contains multiple versions of the system installation image file, and it supports storing duplicate files only once across multiple versions of the system installation image file. For example, if the operating system to be installed is Windows, this single WIM file typically contains multiple versions, including Windows Home, Windows Professional, and Windows Education. Storing duplicate files only once saves memory resources, reduces the memory pressure on the operating system installation, and improves installation efficiency.
[0028] Before searching for WIM disk image format files locally, the WIM disk image format files need to be created and pre-imported into the operating system's local database for automatically installed devices.
[0029] Step A1: In the WinRE environment, use the DISM tool to capture the system installation image file corresponding to the system version number; First, create the system's WIM file. Normally, it's impossible to extract the entire system's WIM file directly from the system because many system services are running during extraction, causing conflicts. Therefore, this embodiment first shuts down the system, then enters the WinRE environment, and finally uses the WIM generation tool DISM to extract the entire system's WIM. Since WinRE is essentially a small operating system and a restoration environment, extracting the entire system's WIM within this environment will not cause conflicts.
[0030] Step A2: Obtain the driver files and application files based on the system version number of the operating system to be installed; Step A3: Use the DISM tool to store the WIM file in a disk image format at a preset storage location.
[0031] When using DISM to capture a system installation image file, you must pre-specify the disk location where the captured files will be stored. After the capture begins, this process will take some time; you will need to wait as the progress bar moves from 0% to 100%. Once the capture is complete, the WIM file will be located in the specified disk location. This allows you to extract the entire system installation image file, driver files, and application files. Extracting not only the entire system installation image file but also the driver and application files is crucial for the subsequent packaging step. These three types of files will then be packaged into an automatic installation image file, which will be used to migrate the entire system and application settings from the original computer.
[0032] The disk image format file is a WIM file. In step S120, the disk image format file, the installation master control file, and the preset system startup settings file are packaged into an automatic installation image file using the image creation tool. After finding the WIM disk image file locally, the WIM disk image file, the installation master control file, and the preset system startup settings file are packaged into an automatic installation image file using an image creation tool.
[0033] The installation master control file is a program file developed separately by professional technicians according to the designed automated installation process. After the installation master control program is developed, the professional technicians put it in a different folder from other necessary installation files such as disk image format files and system startup configuration files.
[0034] The installation master control file includes the following control processes: automatic system installation process, driver installation process, and application installation process.
[0035] In addition to the above-mentioned processes, the installation master control file also includes a partition control process for partitioning the disk, as well as a boot control process for the initial system startup.
[0036] This master installation control file is used in subsequent installation steps. First, it controls the disk partitioning operation of the device to be installed, resulting in multiple partitions, including a primary partition. Then, it extracts the disk image format file to the primary partition, controls the installation of the operating system to be installed in the primary partition, controls the installation of drivers based on driver files, and controls the installation of applications based on application files. Finally, when the device to be installed is detected to be booting the system for the first time, it controls the setting of parameters in the configuration file to system parameters. In short, the master installation control file monitors the entire automatic installation process.
[0037] There are many types of image creation tools, such as UltraISO, which can be used to create automatic installation image files.
[0038] The configuration file records the settings parameters for system settings, such as the BCD (Boot Configuration Data) parameter, which ensures the system can boot normally. The BCD is a database file that manages boot settings in Windows, and its parameters must be modified using tools available under WinPE. BCD parameters, such as the boot path and registry entries, are also configured in the installation master control file.
[0039] This modification to the existing installation process involves using a configuration file in conjunction with the master installation control file. For example, the master installation control file records the steps after Windows' first boot. Scripts that need to run under the system are copied to the system and their parameters are configured. Upon Windows' first boot, the system directly starts the script, copies the preset BCD parameters from the configuration file to the C drive, modifies the original registry, and executes this script on the first boot, destroying it after the first run. The purpose of this combined configuration and master installation control file is to automate script execution through system settings.
[0040] In some embodiments, an image creation tool is used to package the WIM file, the installer, and necessary environment parameters into an automatic installation image file.
[0041] Following step S120, steps B1-B2 are included: Step B1: When the inserted USB flash drive is detected, prompt the user to start the Rufus tool; At this point, the preceding steps do not involve manual operation; users only need to select the operating system to be installed on the automatic operating system installation device.
[0042] In some embodiments, the user prepares a USB flash drive specifically for installing the system. The user inserts this USB flash drive into the operating system automatic installation device. When the operating system automatic installation device detects the inserted USB flash drive, it prompts the user to start the Rufus tool.
[0043] Rufus (The Reliable USB Formatting Utility) is a lightweight tool for creating bootable USB installation disks. Rufus can burn ISO image files to a USB flash drive and create a bootable installation medium from that drive.
[0044] When the user starts the Rufus tool, the installation image file will be automatically burned to the newly inserted USB drive.
[0045] Step B2: When the user starts the Rufus tool, control the automatic installation image file to be burned to the USB flash drive so that the user can start installing the operating system.
[0046] After the installation image file is automatically burned to a USB drive, a bootable USB drive is obtained. Users can use this bootable USB drive to start installing the operating system.
[0047] Step S130: If an installation command for the installation system is detected, the absolute path of the installation master control file packaged in the automatic installation image file is determined, and the absolute path of the disk image format file and the absolute path of the settings file are determined with reference to the absolute path of the installation master control file. After obtaining the USB boot disk, the user may not immediately proceed to the next installation step. The operating system automatic installation device can push pop-up windows to interact with the user. The user clicks the "Confirm" button in the pop-up window to indicate satisfaction with the created USB boot disk. Upon receiving the user's confirmation command for the USB boot disk, another pop-up window appears asking if the user wants to install the operating system now. If the user clicks the "Confirm" button, the installation instructions for the operating system are generated. If the operating system automatic installation device detects the installation instructions, it needs to first determine the storage locations of the master installation file, the disk image format file, and the configuration file. Therefore, in the WinPE system on the USB boot disk, the drive letters of each disk partition will be reassigned, and the drive letter of the USB drive itself in the system is unknown, but the location of the master installation program requires an absolute path. Therefore, the absolute path of the master installation file is determined first, and then the absolute paths of other files, such as the disk image format file or the configuration file, are found using the absolute path of the master installation file.
[0048] WinPE (Windows Preinstallation Environment) is a streamlined, in-memory miniature Windows operating system designed as a temporary work platform for system deployment, troubleshooting, and recovery. WinPE's core purpose is system installation and deployment; however, it can also be used for system fault repair, data backup and recovery, and hardware diagnostics and maintenance. In this embodiment, the WinPE environment is deployed within an operating system auto-installation device to achieve system installation and deployment. In the WinPE environment, disk partitions have randomly assigned drive letters, and the drive letter of the USB boot disk itself is also unknown within the system.
[0049] The operating system to be installed is a Windows system. The operating system automatic installation device contains a WinPE environment. In the WinPE environment, the disk partition letters are randomly assigned. In step S130, the step of determining the absolute path of the installation master control file packaged in the automatic installation image file if the installation command for the installation system is detected includes steps S1301-S1303: Step S1301: If an installation command for the installation system is detected, the installation master control program in the installation master control file is started from a preset insertion point in the WinPE environment. If the user clicks the confirmation button, an installation command for the system will be generated. If the installation command for the system is detected, in order to run the installation control program in the installation control file, it will start from a preset insertion point in the WinPE environment. This preset insertion point can also be randomly assigned.
[0050] In addition to the primary partition, disk partitioning of the device to be installed also produces an EFI partition and a data partition. The EFI partition is used to boot the device to be installed, and the data partition is used to store user data. The primary partition is used to store the operating system, applications, and user configuration files to be installed.
[0051] The EFI (Extensible Firmware Interface System Partition), also known as ESP, is a small partition formatted as FAT32 that exists on the hard drive of a computer using UEFI boot mode. The EFI partition serves as the boot navigation system for the UEFI firmware. Because the UEFI firmware itself is very small and doesn't know how to directly boot the operating system, it locates and runs the operating system's boot loader within this dedicated EFI partition.
[0052] Before starting the installation control program, you need to start the WinPE environment for system installation.
[0053] Before step S1301, before starting the installation master control program in the installation master control file, the WinPE environment is started based on the UEFI firmware program or BIOS firmware program.
[0054] Before starting the installation master control program, run the WinPE environment based on the UEFI firmware or BIOS firmware.
[0055] In some embodiments, in addition to packaging the WIM file, installer, and necessary environment parameters into an automatic installation image file using an image creation tool, the system boot files are also packaged into the automatic installation image file. Here, the boot files under the system include the boot files under the EFI partition. The BIOS (Basic Input / Output System) firmware is used to boot the BIOS system, and then the WinPE system is run through the BIOS system. Alternatively, the WinPE system can also be booted using UEFI (Unified Extensible Firmware Interface) firmware.
[0056] Step S1302: Poll all disk partitions in disk letter order until the installation master control program is found; As an example, you can poll from drive C to drive Z, polling all disk partitions in drive letter order until you find the installation master program.
[0057] Step S1303: Based on the current disk symbol where the installation master control program is located, determine the absolute path of the installation master control file packaged in the automatic installation image file.
[0058] When polling in order of drive letter, if a drive letter is found, it means that the drive letter of the USB boot disk is the current drive letter. This is because the drive where the master control program is installed is the drive letter of the USB boot disk.
[0059] Determine the absolute path of the master control file based on the current drive symbol where the master control program is located.
[0060] Step S140: Based on the installation master control file, control the device to be installed to perform disk partitioning operations to obtain multiple partitions, including a primary partition. The primary partition is used to store the operating system, application, and user configuration files to be installed. The master installation control file also records the disk partitioning scheme and the control process for performing disk partitioning. Based on the master installation control file, the device to be installed is partitioned to create multiple partitions, including primary partitions. Besides primary partitions, this may also include the aforementioned EFI partition and data partitions. The primary partition is mainly used to store the operating system to be installed, packaged applications, and user configuration files.
[0061] However, the pre-stored master installation file on the device, which is automatically installed by the operating system, not only meets the user's installation needs for the target operating system, but also allows the user to restore the already installed operating system when they no longer need it. In other words, the user can freely choose whether to install and whether to revert the installation.
[0062] Correspondingly, the master installation control file includes not only the control flow for installing the target operating system, but also the control flow for restoring the system. The operating system auto-installation device pre-stores a disk image file in the format of the system to be restored.
[0063] The operating system automatically installs a locally stored restore system on the device. Step S140 includes steps S1401-S1403: Step S1401: Based on the installation master control file, preset partition format requirements, and partition size requirements, control the disk partitioning operation of the device to be installed, and obtain a hidden partition; In some embodiments, based on the installation master control file, preset partition format requirements, and partition size requirements, disk partitioning operations are performed on the device to be installed, resulting in a hidden partition.
[0064] In addition to the three types of partitions obtained by the automatic control of the disk, namely primary partitions, EFI partitions and data partitions, there is also a separate hidden partition, namely the MSR (Microsoft Reserved Partition) partition.
[0065] MSR partitions are partitions that Microsoft reserves in advance for potential future features. They do not store any user data or boot files, but rather reserve a portion of disk space for potential future uses of the operating system, ensuring that the system or disk utilities can immediately use this space when needed without having to repartition.
[0066] The hidden MSR partition here can enable some hidden system functions, such as restoring the operating system.
[0067] Step S1402: If the restore command of the restore system is detected, the disk image format file of the restore system is released to the hidden partition. The disk image format file of the restore system includes the restore system installation image file, the restore system driver file, and the restore system application file. In some embodiments, contingency plans are in place to prevent system installation from crashing by pre-setting system restore.
[0068] The operating system's automatic installation device includes user options. Users can click the "Restore" button to generate a restore command. When the operating system's automatic installation device detects a restore command, it extracts the disk image file of the system to a hidden partition for subsequent system restore operations.
[0069] Like any target operating system, a system restore disk image file includes the system restore installation image file, system restore driver files, and system restore application files.
[0070] Step S1403: Install the operating system in the hidden partition based on the restore system installation image file, install the driver based on the restore system driver file, and install the application based on the restore system application file in order to restore to the original system in case of system installation failure.
[0071] In the hidden partition, the operating system is installed based on the system's installation image file, drivers are installed based on the system's driver files, and applications are installed based on the system's application files.
[0072] Step S150: Based on the absolute path of the disk image format file, the disk image format file is extracted to the primary partition obtained after the disk partitioning operation. In the primary partition, the operating system to be installed is installed based on the system installation image file, the driver is installed based on the driver file, and the application is installed based on the application file. Based on the absolute path of the disk image file, the disk image file is extracted to the primary partition obtained after disk partitioning. The automated installation process, guided by the installation master control file, extracts the installation package of the operating system to be installed from the system installation image file and installs it on the primary partition. The driver installation process, also guided by the installation master control file, extracts and installs drivers from driver files into the primary partition. Finally, the application installation process, guided by the installation master control file, extracts and installs applications from application files.
[0073] Step S160: When the device to be installed starts the system for the first time, the parameters in the setting file are set as system parameters according to the absolute path of the setting file.
[0074] When the system is started for the first time on the device to be installed, the system finds the configuration file based on the startup control process in the master control file and the absolute path of the configuration file. Then, the configuration parameters are extracted from the configuration file and set as system parameters.
[0075] In this application, compared with the technical problem of low system installation efficiency in the prior art, the method is applied to an automatic operating system installation device. The automatic operating system installation device establishes a communication connection with the device to be installed. The automatic operating system installation device has a built-in image creation tool and a pre-stored installation master control file locally. The installation master control file contains an installation master control program. The method includes: searching for a pre-made disk image format file locally according to the system version number of the operating system to be installed, wherein the disk image format file is used to package the operating system, and the disk image format file contains a system installation image file, driver files, and application files corresponding to the system version number; using the image creation tool, packaging the disk image format file, the installation master control file, and the preset system startup settings file into an automatic installation image file; if an installation command for installing the system is detected, determining that the packaged file is located in the system installation image file. The absolute path of the installation master control file within the automatic installation image file is used as a reference to determine the absolute paths of the disk image format file and the settings file. Based on the installation master control file, the device to be installed is controlled to perform disk partitioning operations to obtain multiple partitions, including a primary partition. The primary partition is used to store the operating system to be installed, applications, and user configuration files. According to the absolute path of the disk image format file, the disk image format file is extracted to the primary partition obtained after the disk partitioning operation. In the primary partition, the operating system to be installed is installed based on the system installation image file, the drivers are installed based on the driver files, and the applications are installed based on the application files. When the device to be installed first starts the system, the parameters in the settings file are set as system parameters according to the absolute path of the settings file. In this application, the disk image, settings, and installation master control program can be packaged into an automatic installation image based on the system version number. The automatic installation image first automatically partitions the disk, then automatically installs the system, then automatically installs the drivers and applications, and finally automatically sets the system parameters. This replaces the error-prone steps of requiring the user to select the corresponding version and manually partition the disk, improving the system installation efficiency.
[0076] Example 2: Furthermore, based on all the above embodiments, another embodiment of this application is provided, in which, as... Figure 2A device for automatically installing an operating system is provided. The device establishes a communication connection with the device to be installed. The device has a built-in image creation tool and a locally pre-stored installation master control file containing an installation master control program. The device includes: The search module is used to search for a pre-made disk image format file locally based on the system version number of the operating system to be installed. The disk image format file is used to package the operating system and contains a system installation image file, driver files, and application files corresponding to the system version number. The packaging module is used to package the disk image format file, the installation master control file, and the preset system startup configuration file into an automatic installation image file using an image creation tool; The determination module is used to determine the absolute path of the installation master control file packaged in the automatic installation image file if an installation instruction for the installation system is detected, and to determine the absolute path of the disk image format file and the absolute path of the settings file with reference to the absolute path of the installation master control file. The control module is used to control the device to be installed to perform disk partitioning operations based on the installation master control file to obtain multiple partitions, including a primary partition. The primary partition is used to store the operating system, applications and user configuration files to be installed. The installation module is used to extract the disk image format file to the primary partition obtained after disk partitioning operation according to the absolute path of the disk image format file, install the operating system to be installed based on the system installation image file in the primary partition, install the driver based on the driver file, and install the application based on the application file. The configuration module is used to set the parameters in the configuration file as system parameters according to the absolute path of the configuration file when the device to be installed starts the system for the first time.
[0077] In one possible implementation of this application, the operating system automatically installs a device with a locally pre-stored restore system, and controls the device to be installed to perform disk partitioning operations based on the installation master control file to obtain multiple partitions, including a primary partition. The apparatus includes: The first control module is used to control the disk partitioning operation of the device to be installed based on the installation master control file, the preset partition format requirements and partition size requirements, and to obtain a hidden partition; The release module is used to release the disk image format file of the restore system to the hidden partition if a restore command of the restore system is detected. The disk image format file of the restore system includes the restore system installation image file, the restore system driver file, and the restore system application file. The first installation module is used to install the operating system based on the restore system installation image file in the hidden partition, install drivers based on the restore system driver file, and install applications based on the restore system application file in order to restore to the original system in the event of a system installation crash.
[0078] In one possible implementation of this application, the operating system to be installed is a Windows system, and the operating system automatic installation device contains a WinPE environment. In the WinPE environment, disk partitions have randomly assigned drive letters. The step of determining the absolute path of the installation master control file packaged within the automatic installation image file if an installation command for the system is detected includes: The first startup module is used to determine the absolute path of the installation master control program package in the automatic installation image file within the installation master control file if an installation command for the installation system is detected, starting from a preset insertion point in the WinPE environment. The first search module is used to poll all disk partitions in disk letter order until the installation master control program is found. The first determining module is used to determine the absolute path of the installation master control file packaged in the automatic installation image file based on the current disk symbol where the installation master control program is located.
[0079] In one possible implementation of this application, the disk partitioning operation on the device to be installed yields not only a primary partition but also an EFI partition and a data partition. The EFI partition is used to boot the device to be installed, and the data partition is used to store user data. Before the step of starting the installation master control program in the installation master control file from a preset insertion point in the WinPE environment if an installation instruction for the installation system is detected, the apparatus includes: The second boot module is used to run and boot the WinPE environment based on the UEFI firmware or BIOS firmware.
[0080] In one possible implementation of this application, the disk image format file is a WIM file, which contains multiple versions of system installation image files. The WIM file supports storing duplicate files in multiple versions of system installation image files only once.
[0081] In one possible embodiment of this application, the operating system to be installed is a Windows system, the operating system automatic installation device contains a WinRE environment, and the operating system automatic installation device has a built-in DISM tool. Before the step of searching for a pre-made disk image format file locally according to the system version number of the operating system to be installed, the apparatus includes: The capture module is used in the WinRE environment to capture the system installation image file corresponding to the system version number using the DISM tool; The acquisition module is used to obtain driver files and application files based on the system version number of the operating system to be installed; The storage module is used to store the disk image format file in the form of the WIM file in a preset storage location using the DISM tool.
[0082] In one possible embodiment of this application, after the step of packaging the disk image format file, the installation master control file, and the preset system startup settings file into an automatic installation image file using the image creation tool, the apparatus includes: The prompt module is used to prompt the user to start the Rufus tool when a USB flash drive is detected. The second control module is used to control the automatic installation image file to be burned to a USB flash drive when the user starts the Rufus tool so that the user can start installing the operating system.
[0083] The specific implementation of the automatic operating system installation device in this application is basically the same as the embodiments of the automatic operating system installation method described above, and will not be repeated here.
[0084] Example 3: Furthermore, based on all the above embodiments, another embodiment of this application is provided. In this embodiment, a system automatic installation device is provided. The system automatic installation device is a physical node device. The system automatic installation device includes: a memory, a processor, and a program stored in the memory for implementing an operating system automatic installation method. The memory is used to store the program for implementing the operating system automatic installation method; the processor is used to execute the program for implementing the operating system automatic installation method to implement the steps of the operating system automatic installation method in the above embodiments.
[0085] Reference Figure 3 , Figure 3 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application.
[0086] like Figure 3As shown, the system's automatic installation device may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to establish communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM or a stable, non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0087] In one possible implementation of this application, the automatic installation device of the system may further include a network interface, audio circuitry, display, connecting cable, sensor, input module, etc. The network interface may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface or a Bluetooth interface). The input module may optionally include a keyboard, a system soft keyboard, voice input, wireless receiver input, etc.
[0088] Those skilled in the art will understand that the structure of the system automatic installation equipment does not constitute a limitation on the system automatic installation equipment, and may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0089] A memory, as a deterministic storage medium, may include an operating system, an information exchange module, and a system auto-installation program. The operating system is a program that manages and controls the system's automatic installation of device hardware and software resources, supporting the operation of the system auto-installation program and other software and / or programs. The information exchange module is used to enable communication between various components within the memory, as well as communication with other hardware and software in the system.
[0090] In the system automatic installation device, the processor is used to execute the system automatic installation program stored in the memory to implement the above-mentioned system automatic installation steps.
[0091] The specific implementation method of the automatic installation device in this application is basically the same as the embodiments of the automatic installation method of the operating system described above, and will not be repeated here.
[0092] Example 4: This application provides a storage medium that stores one or more programs. These programs can be executed by one or more processors to implement the steps of the automatic operating system installation method described in the above embodiments.
[0093] The specific implementation of the storage medium in this application is basically the same as the embodiments of the above-described automatic operating system installation method, and will not be repeated here.
[0094] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0095] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0096] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM or RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of the various embodiments of this application.
[0097] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for automatically installing an operating system, characterized in that, The automatic operating system installation method is applied to an automatic operating system installation device. The automatic operating system installation device establishes a communication connection with the device to be installed. The automatic operating system installation device has a built-in image creation tool and a pre-stored installation master control file. The installation master control file contains an installation master control program. The automatic operating system installation method includes: Based on the system version number of the operating system to be installed, the system searches for a pre-made disk image format file locally. The disk image format file is used to package the operating system and contains a system installation image file, driver files, and application files corresponding to the system version number. The disk image format file, the installation master control file, and the preset system startup settings file are packaged into an automatic installation image file using the image creation tool. If an installation command for the installation system is detected, the absolute path of the installation master control file packaged in the automatic installation image file is determined. With the absolute path of the installation master control file as a reference, the absolute path of the disk image format file and the absolute path of the settings file are determined. Based on the installation master control file, the device to be installed is controlled to perform disk partitioning operations to obtain multiple partitions, including a primary partition. The primary partition is used to store the operating system, applications, and user configuration files to be installed. Based on the absolute path of the disk image format file, the disk image format file is extracted to the primary partition obtained after the disk partitioning operation. In the primary partition, the operating system to be installed is installed based on the system installation image file, the driver is installed based on the driver file, and the application is installed based on the application file. When the device to be installed starts the system for the first time, the parameters in the configuration file are set as system parameters according to the absolute path of the configuration file.
2. The automatic operating system installation method according to claim 1, characterized in that, The operating system automatically installs a locally pre-stored restore system on the device. The step of controlling the disk partitioning operation of the device to be installed based on the installation master control file to obtain multiple partitions, including a primary partition, includes: Based on the installation master control file, preset partition format requirements, and partition size requirements, the disk partitioning operation is performed on the device to be installed, and a hidden partition is also obtained; If a restore command from the restore system is detected, the disk image format file of the restore system is released to the hidden partition. The disk image format file of the restore system includes the restore system installation image file, the restore system driver file, and the restore system application file. The operating system is installed in the hidden partition based on the restore system installation image file, the drivers are installed based on the restore system driver files, and the applications are installed based on the restore system application files, so as to restore to the original system in case of system installation failure.
3. The automatic operating system installation method according to claim 1, characterized in that, The operating system to be installed is a Windows system. The operating system automatic installation device contains a WinPE environment. In the WinPE environment, the disk partitions are randomly assigned drive letters. The step of determining the absolute path of the installation master control file packaged in the automatic installation image file if an installation command for the system is detected includes: If an installation command for the installation system is detected, the installation master control program in the installation master control file will be started from the preset insertion point in the WinPE environment. Poll all disk partitions in drive letter order until the installation master control program is found; Based on the current drive symbol where the installation master control program is located, determine the absolute path of the installation master control file packaged in the automatic installation image file.
4. The automatic operating system installation method according to claim 3, characterized in that, Performing disk partitioning operations on the device to be installed yields a primary partition, an EFI partition, and a data partition. The EFI partition is used to boot the device, and the data partition is used to store user data. Before the step of starting the installation master control program in the installation master control file from a preset insertion point in the WinPE environment if an installation instruction for the installation system is detected, the following steps are included: The WinPE environment is started based on UEFI firmware or BIOS firmware.
5. The automatic operating system installation method according to claim 1, characterized in that, The disk image format file is a WIM file, which contains multiple versions of system installation image files. The WIM file supports storing duplicate files in multiple versions of the system installation image files only once.
6. The automatic operating system installation method according to claim 5, characterized in that, The operating system to be installed is a Windows system. The automatic installation device for the operating system includes a WinRE environment and a built-in DISM tool. Before searching for a pre-made disk image format file locally based on the system version number of the operating system to be installed, the process includes: In the WinRE environment, the DISM tool is used to capture the system installation image file corresponding to the system version number; Based on the system version number of the operating system to be installed, obtain the driver files and application files; The DISM tool stores the WIM file as a disk image format file in a preset storage location.
7. The automatic operating system installation method according to claim 1, characterized in that, After the step of packaging the disk image format file, the installation master control file, and the preset system startup settings file into an automatic installation image file using the image creation tool, the process includes: When a USB drive is detected, the user is prompted to launch the Rufus tool; When the user starts the Rufus tool, the system controls the automatic installation image file to be burned to a USB drive so that the user can begin installing the operating system.
8. An automatic operating system installation device, characterized in that, The automatic operating system installation device includes: The search module is used to search for a pre-made disk image format file locally based on the system version number of the operating system to be installed. The disk image format file is used to package the operating system and contains a system installation image file, driver files, and application files corresponding to the system version number. The packaging module is used to package the disk image format file, the installation master control file, and the preset system startup configuration file into an automatic installation image file using an image creation tool; The determination module is used to determine the absolute path of the installation master control file packaged in the automatic installation image file if an installation instruction for the installation system is detected, and to determine the absolute path of the disk image format file and the absolute path of the settings file with reference to the absolute path of the installation master control file. The control module is used to control the device to be installed to perform disk partitioning operations based on the installation master control file to obtain multiple partitions, including a primary partition. The primary partition is used to store the operating system, applications and user configuration files to be installed. The installation module is used to extract the disk image format file to the primary partition obtained after disk partitioning operation according to the absolute path of the disk image format file, install the operating system to be installed based on the system installation image file in the primary partition, install the driver based on the driver file, and install the application based on the application file. The configuration module is used to set the parameters in the configuration file as system parameters according to the absolute path of the configuration file when the device to be installed starts the system for the first time.
9. An automatic installation system, characterized in that, The system includes a memory, a processor, and a system autoinstaller stored on the memory and executable on the processor, wherein the processor executes the system autoinstaller to implement the steps of the operating system autoinstallation method according to any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium stores a program that implements the automatic operating system installation method, and the program that implements the automatic operating system installation method is executed by a processor to implement the steps of the automatic operating system installation method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for installing several multiple operating systems on one partition of storage medium
CN103777985A
Operating system installation method and apparatus, and server
CN107608681A
Method and system for customizing operating system mirror image
CN110888650A
Equipment drive installation method and device, computer equipment and storage medium
CN111367537A
Installation method and device of computer operating system, equipment, medium and product
CN118051240A
