CN118259925A - Windows operating system installation method, device, equipment and storage medium - Google Patents

Windows operating system installation method, device, equipment and storage medium Download PDF

Info

Publication number
CN118259925A
CN118259925A CN202410339476.1A CN202410339476A CN118259925A CN 118259925 A CN118259925 A CN 118259925A CN 202410339476 A CN202410339476 A CN 202410339476A CN 118259925 A CN118259925 A CN 118259925A
Authority
CN
China
Prior art keywords
hard disk
disk
target
solid state
hard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410339476.1A
Other languages
Chinese (zh)
Inventor
李炳炎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Computer Technology Co Ltd
Original Assignee
Inspur Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Computer Technology Co Ltd filed Critical Inspur Computer Technology Co Ltd
Priority to CN202410339476.1A priority Critical patent/CN118259925A/en
Publication of CN118259925A publication Critical patent/CN118259925A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for installing a Windows operating system, which relate to the technical field of computers and comprise the following steps: identifying the system architecture of the target computer to obtain a target system architecture; invoking a target hard disk information acquisition program corresponding to a target system architecture to acquire characteristic information of each hard disk in a target computer, obtaining hard disk characteristic information and exporting the hard disk characteristic information into a hard disk information file; identifying the types of each hard disk in the target computer according to the hard disk information file to obtain hard disk types, and counting the number of all the hard disk types to obtain the type number; if the number of types is one, determining a target hard disk from all the hard disks of the target computer, and installing an operating system on the target hard disk; if the number of types is greater than one, judging whether the type of the hard disk comprises a solid state disk, and if so, installing an operating system on the solid state disk. The application can preferentially install the system on the SSD disk and improve the efficiency of automatic production of the computer.

Description

Windows operating system installation method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for installing a Windows operating system.
Background
With the rapid development of computer technology, different types of computers, such as game books, business books, educational books and the like, are widely applied, and a plurality of different types of storage devices, such as Solid state disks (SSD, solid STATE DISK), mechanical hard disks (HDD, hard Disk Drive) and the like, are configured in the different types of computers according to different requirements of users (such as requirements of games, learning, offices, data backup and the like); the HDD has the characteristics of large capacity, low price and slower reading speed, is suitable for long-term storage and backup, and the SSD has the characteristics of high reading and writing speed, low energy consumption, small volume and limited reading times and service life, and is suitable for installing an operating system and common software.
Currently, when an ODM (Original Design Manufacturer ) or OEM (original equipment manufacturer, original Equipment Manufacturer) product line is producing a computer, a Windows operating system is installed on an SSD of the computer in batches through a server under a win pe (Windows pre-installation environment, windows Preinstallation Environment) and the HDD is used as a data disk. Before the operating system is installed, the type and the number of the storage devices in the computer are required to be identified, and then the SSD is used as a system disk to be preferentially partitioned, so that the operating system can be ensured to be installed on the system disk, and the installation flow of the automatic operating system is smoothly carried out.
However, when the Windows operating system is installed in batches through the server, since different types of disks and different disk interfaces may cause different disk sequences, different disk serial numbers may be displayed in a pre-installation environment, and at this time, if the operating system is directly installed, there may be a risk of installing the operating system on a non-system disk, and if the operating system is installed on a non-system disk, reinstallation is required, thereby reducing the efficiency of installing the operating system, and further reducing the production efficiency of the factory automation line.
Disclosure of Invention
In view of the above, the present application aims to provide a method, an apparatus, a device and a storage medium for installing a Windows operating system, which can preferentially install the system on an SSD disk without considering a disk number of a hard disk in a Windows pre-installation environment when the Windows operating system is installed in batch, and avoid installing the system on a non-system disk, thereby improving the efficiency of automated production of a computer. The specific scheme is as follows:
In a first aspect, the present application discloses a method for installing a Windows operating system, which is applied to a computer in a Windows preinstallation environment, and includes:
Identifying a system architecture of a target computer to which an operating system is to be installed, and obtaining a target system architecture;
invoking a target hard disk information acquisition program corresponding to the target system architecture to acquire characteristic information of each hard disk in the target computer to obtain hard disk characteristic information, and exporting the hard disk characteristic information into a file to obtain a hard disk information file;
Identifying the types of each hard disk in the target computer according to the hard disk information file to obtain hard disk types, and counting the number of the hard disk types to obtain the type number;
If the number of the types is one, determining a target hard disk from the hard disks of the target computer, and installing a Windows operating system to be installed on the target hard disk;
if the number of the types is greater than one, judging whether the type of the hard disk comprises a solid state disk, and if the type of the hard disk comprises the solid state disk, installing a Windows operating system to be installed on the solid state disk.
Optionally, the identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the hard disk type includes:
Counting the number of hard disks in the target computer according to the hard disk information file to obtain the total number of hard disks;
Judging whether the total number of the hard disks is larger than zero or not;
if the total number of the hard disks is greater than zero, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the type of the hard disk;
And if the total number of the hard disks is not more than zero, generating prompt information of the undetected hard disks.
Optionally, if the total number of hard disks is greater than zero, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain a hard disk type, including:
if the total number of the hard disks is larger than zero, respectively counting the capacity of each hard disk in the target computer to obtain the target capacity;
Judging whether the size of each target capacity is larger than a preset capacity threshold value or not;
And if the size of each target capacity is larger than the preset capacity threshold, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the hard disk type.
Optionally, if the number of types is one, determining a target hard disk from the hard disks of the target computer, and installing the Windows operating system to be installed on the target hard disk, including:
if the number of the types is one, judging whether the total number of the hard disks is larger than one;
If the total number of the hard disks is greater than one, executing a Power Shell program in a mode of increasing authority to generate a detection solid state disk file, and setting the sequence of the solid state disk in the Windows pre-installation environment through the detection solid state disk file to obtain the sequence of the solid state disk;
detecting whether the hard disk type is a solid state disk or not through the detection solid state disk file;
If the hard disk type is a solid state disk, sequencing all the solid state disks in the target computer based on the solid state disk sequence to obtain a first sequenced hard disk, determining a target hard disk from the first sequenced hard disk, taking the target hard disk as a system disk, and then installing a Windows operating system to be installed on a system partition of the system disk;
And if the hard disk type is a non-solid state hard disk, sequencing all the non-solid state hard disks in the target computer based on a preset hard disk sequence to obtain a second sequenced hard disk, determining a target hard disk from the second sequenced hard disk, taking the target hard disk as a system disk, and then installing a Windows operating system to be installed on a system partition of the system disk.
Optionally, if the number of types is greater than one, judging whether the type of the hard disk includes a solid state disk, and if the type of the hard disk includes a solid state disk, installing a Windows operating system to be installed on the solid state disk, including:
if the number of the types is greater than one, executing a Power Shell program in a mode of increasing authority to generate a detection solid state disk file, and setting the sequence of the solid state disk in the Windows pre-installation environment through the detection solid state disk file to obtain the solid state disk sequence;
detecting whether the hard disk type contains the solid state disk or not through the detection solid state disk file, and if the hard disk type contains the solid state disk, counting the number of the solid state disks in the target computer to obtain the number of the solid state disks;
judging whether the number of the solid state disks is larger than one;
If the number of the solid state disks is greater than one, sequencing all the solid state disks in the target computer based on the solid state disk sequence to obtain target sequenced hard disks, determining the target hard disks from the target sequenced hard disks, taking the target hard disks as system disks, and then installing a Windows operating system to be installed on a system partition of the system disks;
And if the number of the solid state disks is one, installing the Windows operating system to be installed on the unique solid state disk in the target computer.
Optionally, if the total number of hard disks is greater than zero, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain a hard disk type, including:
if the total number of the hard disks is larger than zero, judging whether the total number of the hard disks is smaller than a preset hard disk number threshold value or not;
If the total number of the hard disks is smaller than the preset hard disk number threshold, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the type of the hard disk;
if the total number of the hard disks is not smaller than the preset hard disk number threshold, generating an abnormal prompt and prohibiting the installation operation of the Windows operating system.
Optionally, the identifying the system architecture of the target computer on which the operating system is to be installed, to obtain a target system architecture, includes:
And identifying the system architecture of the target computer of the operating system to be installed through the processor architecture environment variable in the Windows pre-installation environment system to obtain the target system architecture.
In a second aspect, the present application discloses a device for installing a Windows operating system, which is applied to a computer in a Windows preinstallation environment, and includes:
The system architecture identification module is used for identifying the system architecture of a target computer of an operating system to be installed to obtain a target system architecture;
The program calling module is used for calling a target hard disk information acquisition program corresponding to the target system architecture to acquire characteristic information of each hard disk in the target computer to obtain hard disk characteristic information, and exporting the hard disk characteristic information into a file to obtain a hard disk information file;
The type identification module is used for identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the type of the hard disk;
The quantity counting module is used for counting the quantity of the types of the hard disks to obtain the type quantity;
The first system installation module is used for determining a target hard disk from the hard disks of the target computer and installing a Windows operating system to be installed on the target hard disk if the number of types is one;
And the second system installation module is used for judging whether the type of the hard disk comprises a solid state disk or not if the type number is larger than one, and installing the Windows operating system to be installed on the solid state disk if the type of the hard disk comprises the solid state disk.
In a third aspect, the application discloses an electronic device comprising a processor and a memory; the processor implements the aforementioned method for installing the Windows operating system when executing the computer program stored in the memory.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; the computer program, when executed by the processor, implements the aforementioned method for installing a Windows operating system.
It can be seen that the present application is applied to a computer in a Windows pre-installation environment, firstly, a system architecture of a target computer of an operating system to be installed is identified to obtain a target system architecture, then, a target hard disk information acquisition program corresponding to the target system architecture is called to acquire characteristic information of each hard disk in the target computer to obtain hard disk characteristic information, the hard disk characteristic information is exported as a file to obtain a hard disk information file, then, the type of each hard disk in the target computer is identified according to the hard disk information file to obtain a hard disk type, the number of the hard disk types is counted to obtain the number of types, if the number of types is one, a target hard disk is determined from the hard disks of the target computer, the Windows operating system to be installed is installed on the target hard disk, if the number of types is greater than one, whether the hard disk type contains a solid hard disk is judged, and if the type of hard disk contains a solid hard disk, the Windows operating system to be installed on the solid hard disk is installed. The application acquires the characteristic information of each hard disk in the computer through the hard disk information acquisition program which is created in advance and corresponds to different system architectures, identifies the types of each hard disk in the computer based on the hard disk characteristic information, counts the number of all hard disk types to obtain the type number, if the type number is one, indicates that only one type of hard disk exists in the current computer, at the moment, directly determines one hard disk from the single type of hard disk as a system disk to install the Windows operating system to be installed, if the type number is one, indicates that multiple types of hard disks exist in the current computer, at the moment, needs to further judge whether an SSD disk exists, if so, preferentially installs the SSD disk as the Windows operating system to be installed, by the system installation mode, the system can be preferentially installed on the disk without considering the serial numbers of the hard disks in the Windows pre-installation environment, and avoids installing the system on the non-system disk, thereby improving the efficiency of automatic production of the SSD.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for installing a Windows operating system according to the present application;
FIG. 2 is a schematic diagram showing the contents of a specific hard disk information file according to the present application;
FIG. 3 is a flowchart of a specific Windows operating system installation method disclosed in the present application;
FIG. 4 is a schematic diagram illustrating a specific system architecture identification method according to the present disclosure;
FIG. 5 is a schematic diagram of a Windows operating system installation device according to the present application;
Fig. 6 is a block diagram of an electronic device according to the present disclosure.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application discloses a method for installing a Windows operating system, which is applied to a computer in a Windows pre-installation environment, and is shown in FIG. 1, and comprises the following steps:
step S11: and identifying the system architecture of the target computer to which the operating system is to be installed, and obtaining the target system architecture.
It should be noted that, the installation scheme of the Windows operating system provided by the application is applied to the computer under the Windows pre-installation environment (i.e. the win pe), and can be specifically applied to the scenario that the Windows operating system is installed on the computer in batches through the server when the ODM or OEM production line is producing the computer. When the batch Windows operating system is required to be installed, the system architecture of the target computer to be installed with the operating system can be identified first to obtain a corresponding target system architecture; wherein the target system architecture includes, but is not limited to, an X32 architecture, an X64 architecture, an AMD6 architecture, an X86 architecture, and the like; specifically, the X86 corresponds to a 32-bit Windows operating system, and AMD64 corresponds to a 64-bit Windows operating system; the operating systems include, but are not limited to, windows 10, windows 7, windows Vista, windows XP, windows Server, etc.
Step S12: and calling a target hard disk information acquisition program corresponding to the target system architecture to acquire the characteristic information of each hard disk in the target computer to obtain hard disk characteristic information, and exporting the hard disk characteristic information into a file to obtain a hard disk information file.
In this embodiment, after identifying the system architecture of the target computer on which the operating system is to be installed, a target hard disk information acquisition program corresponding to the target system architecture is invoked. It should be noted that, in the present application, different hard disk information acquisition programs are created in advance for different system architectures, so that after the system architecture of the operating system to be installed is identified, the target hard disk information acquisition program corresponding to the target system architecture can be directly determined, and by calling the target hard disk information acquisition program, detailed characteristic information of all hard disks contained in the target computer can be directly acquired to obtain corresponding hard disk characteristic information, and then the acquired hard disk characteristic information is exported as a file to obtain a hard disk information file. The hard disk characteristic information comprises, but is not limited to, information such as the number and type of hard disks, the capacity of each hard disk, the partition condition of the current hard disk and the like. For example, referring to fig. 2, the hard Disk characteristic information is exported as DiskInfo files, and the DiskInfo files show that the total hard Disk count, fixeddisk.count, is 1, the total capacity, disk0, total size, is 976756 (mega), and the partition number, disk0, partcount, of hard Disk0 is 5. In addition, the hard disk information file can be used for checking various information of the hard disk and carrying out parameter configuration on the hard disk information.
Further, before the calling the target hard disk information obtaining program corresponding to the target system architecture, the method may further include: judging whether the hard disk space of each hard disk in the target computer is damaged or not through the disk capacity parameters; and if the hard disk space of each hard disk in the target computer is not damaged, executing the step of calling the target hard disk information acquisition program corresponding to the target system architecture. By detecting the hard disk space of all the hard disks in the computer, whether the damaged hard disk exists or not can be judged, and if the damaged hard disk does not exist, the installation flow of the current operating system can be continued, so that the condition that the operating system is failed to install due to the existence of the damaged hard disk is avoided.
Step S13: and identifying the types of the hard disks in the target computer according to the hard disk information file to obtain hard disk types, and counting the number of the hard disk types to obtain the type number.
In this embodiment, after the hard disk characteristic information is exported as a file to obtain a hard disk information file, the type of each hard disk in the target computer may be identified according to the hard disk information contained in the hard disk information file to obtain a corresponding hard disk type, and then the number of all the hard disk types is counted to obtain the type number. For example, when it is recognized that 1 SSD and 2 HDDs are included, the corresponding number of types is 2.
In this embodiment, the identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the hard disk type may specifically include: counting the number of hard disks in the target computer according to the hard disk information file to obtain the total number of hard disks; judging whether the total number of the hard disks is larger than zero or not; if the total number of the hard disks is greater than zero, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the type of the hard disk; and if the total number of the hard disks is not more than zero, generating prompt information of the undetected hard disks. In this embodiment, the total number of hard disks in the target computer may be counted according to the hard disk information file, for example, the hard disk information in DiskInfo files, and then whether the total number of hard disks is greater than zero is determined, that is, whether the hard disks exist in the current computer is determined, if the total number of hard disks is greater than zero, it is indicated that the hard disks exist in the current computer, and at this time, the types of each hard disk in the target computer may be identified according to the hard disk information included in the hard disk information file to obtain the types of hard disks, for example, SSD and HDD; if the total number of the hard disks is not greater than zero, namely equal to zero, the fact that the hard disks are not existed in the current computer or the damage of the hard disks cannot be detected is indicated, and prompt information of the hard disks which are not detected can be generated at the moment.
Specifically, if the total number of hard disks is greater than zero, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the type of the hard disk, which may include: if the total number of the hard disks is larger than zero, respectively counting the capacity of each hard disk in the target computer to obtain the target capacity; judging whether the size of each target capacity is larger than a preset capacity threshold value or not; and if the size of each target capacity is larger than the preset capacity threshold, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the hard disk type. In this embodiment, if the total number of hard disks in the target computer is greater than zero, it indicates that there are hard disks in the target computer at present, at this time, the capacities of the hard disks in the target computer may be counted respectively to obtain target capacities corresponding to the hard disks, then it is determined whether the respective target capacities are greater than a preset capacity threshold, and if the respective target capacities are greater than the preset capacity threshold, the types of the hard disks in the target computer are identified according to the hard disk information file, so as to obtain corresponding hard disk types; the preset capacity threshold is a threshold capable of meeting the capacity of installing a preset Windows operating system, the threshold should be greater than the capacity of the preset Windows operating system, and a redundant space should be reserved, and the threshold can be determined according to actual requirements without being limited in detail.
Step S14: and if the number of the types is one, determining a target hard disk from the hard disks of the target computer, and installing the Windows operating system to be installed on the target hard disk.
In this embodiment, if the number of types is one, it indicates that only one type of hard disk exists in the target computer, at this time, one hard disk may be determined from the hard disks of the target computer, and the Windows operating system to be installed may be installed on the hard disk. For example, a hard disk is randomly determined from all the hard disks of the target computer, and the Windows operating system to be installed is installed on the hard disk.
In a specific embodiment, if the number of types is one, determining a target hard disk from the hard disks of the target computer, and installing the Windows operating system to be installed on the target hard disk may specifically include: if the number of the types is one, judging whether the total number of the hard disks is larger than one; if the total number of the hard disks is greater than one, executing a Power Shell program in a mode of increasing authority to generate a detection solid state disk file, and setting the sequence of the solid state disk in the Windows pre-installation environment through the detection solid state disk file to obtain the sequence of the solid state disk; detecting whether the hard disk type is a solid state disk or not through the detection solid state disk file; if the hard disk type is a solid state disk, sequencing all the solid state disks in the target computer based on the solid state disk sequence to obtain a first sequenced hard disk, determining a target hard disk from the first sequenced hard disk, taking the target hard disk as a system disk, and then installing a Windows operating system to be installed on a system partition of the system disk; and if the hard disk type is a non-solid state hard disk, sequencing all the non-solid state hard disks in the target computer based on a preset hard disk sequence to obtain a second sequenced hard disk, determining a target hard disk from the second sequenced hard disk, taking the target hard disk as a system disk, and then installing a Windows operating system to be installed on a system partition of the system disk. In this embodiment, if the number of types of hard disks is one, it is further determined whether the total number of hard disks is greater than one, if the total number of hard disks is greater than one, it indicates that there are multiple hard disks of the same type currently, for example, there are 3 SSDs, or 2 HDDs, at this time, a Power Shell (a command Shell program) program may be executed by increasing the authority, and after the program is executed, a detected solid state disk file CheckSSD may be automatically generated, by which the order (i.e., disk partition order) of the solid state disk (i.e., SSD) in the Windows pre-installation environment may be set by the detected solid state disk file CheckSSD, And (3) obtaining a solid state disk sequence, such as SSD1, SSD2, SSD3 and the like, detecting whether the hard disk types are solid state disks through the detected solid state disk files, if so, sequencing all the solid state disks in a target computer based on the solid state disk sequence to obtain a first sequenced hard disk, determining a target hard disk from the first sequenced hard disk, taking the determined target hard disk as a system disk, preferably taking the hard disk with the smallest capacity as the system disk (such as a C disk), partitioning the system disk to obtain a system partition, and installing a Windows operating system to be installed on the system partition. In addition, if the hard disk type is a non-solid state hard disk (i.e., HDD), the non-solid state hard disks in the target computer may be sequenced according to a preset hard disk sequence to obtain corresponding second sequenced hard disks, such as HDD1, HDD2, HDD3, etc., then a target hard disk is determined from the second sequenced hard disks, then the determined target hard disk is used as a system disk, finally the system disk is partitioned to obtain a system partition, and the Windows operating system to be installed is installed on the system partition. It should be noted that the manner of partitioning the system disk and the space size of each partition can be flexibly set according to the actual production requirement of the factory, and in addition, the sequence of the hard disk can be flexibly adjusted by modifying the variable of the sequence of the hard disk, so that the system disk and the corresponding system partition meeting the production requirement are determined.
Step S15: if the number of the types is greater than one, judging whether the type of the hard disk comprises a solid state disk, and if the type of the hard disk comprises the solid state disk, installing a Windows operating system to be installed on the solid state disk.
In this embodiment, if the number of types is greater than one, it indicates that multiple types of hard disks exist in the current target computer, and at this time, it may be determined whether the types of hard disks include a solid state disk (i.e., SSD), and if the types of hard disks include a solid state disk, the Windows operating system to be installed is directly installed on the solid state disk. It can be understood that according to the characteristics of different types of hard disks, by default, when an SSD exists, the operating system is preferentially installed on the SSD, if no solid state disk exists, the operating system is installed on a non-solid state disk (such as an HDD), and if no non-solid state disk exists, it can be further determined whether other storage devices exist to be able to install the operating system.
Specifically, if the number of types is greater than one, determining whether the type of hard disk includes a solid state disk, and if the type of hard disk includes a solid state disk, installing a Windows operating system to be installed on the solid state disk may include: if the number of the types is greater than one, executing a Power Shell program in a mode of increasing authority to generate a detection solid state disk file, and setting the sequence of the solid state disk in the Windows pre-installation environment through the detection solid state disk file to obtain the solid state disk sequence; detecting whether the hard disk type contains the solid state disk or not through the detection solid state disk file, and if the hard disk type contains the solid state disk, counting the number of the solid state disks in the target computer to obtain the number of the solid state disks; judging whether the number of the solid state disks is larger than one; if the number of the solid state disks is greater than one, sequencing all the solid state disks in the target computer based on the solid state disk sequence to obtain target sequenced hard disks, determining the target hard disks from the target sequenced hard disks, taking the target hard disks as system disks, and then installing a Windows operating system to be installed on a system partition of the system disks; and if the number of the solid state disks is one, installing the Windows operating system to be installed on the unique solid state disk in the target computer. In this embodiment, if the number of types is greater than one, the Power Shell program is executed in a mode of increasing authority, so as to automatically generate a detected solid state disk file CheckSSD, then the sequence of the solid state disks under the WINPE is set through the detected solid state disk file CheckSSD, so as to obtain the solid state disk sequence, then whether the types of the solid state disks contain the solid state disks is detected through the detected solid state disk file, and if so, the number of the solid state disks in the target computer is counted, so that the corresponding solid state disk number is obtained. Further, judging whether the number of the solid state disks is larger than one, namely whether a plurality of solid state disks exist, if so, if the number of the solid state disks comprises 2 SSDs and 5 HDD, sequencing all the solid state disks existing in a target computer based on the sequence of the solid state disks to obtain a target sequenced hard disk, determining one hard disk from the target sequenced hard disk as a system disk, partitioning the system disk to obtain a system partition, and installing a Windows operating system to be installed on the system partition. If the number of the solid state disks is one, the fact that a plurality of types of hard disks exist currently is indicated, and if the number of the solid state disks is one, for example, 1 SSD and 5 HDD are included, at this time, the unique solid state disks can be directly used as system disks to install Windows operating systems to be installed, and hard disk ordering is not needed.
It can be seen that, the embodiment of the present application is applied to a computer in a Windows pre-installation environment, firstly, a system architecture of a target computer of an operating system to be installed is identified to obtain a target system architecture, then, a target hard disk information acquisition program corresponding to the target system architecture is called to acquire characteristic information of each hard disk in the target computer to obtain hard disk characteristic information, the hard disk characteristic information is exported as a file to obtain a hard disk information file, then, the type of each hard disk in the target computer is identified according to the hard disk information file to obtain a hard disk type, the number of the hard disk types is counted to obtain a type number, if the type number is one, a target hard disk is determined from the hard disks of the target computer, the Windows operating system to be installed is installed on the target hard disk, if the type number is greater than one, whether the hard disk type contains a solid hard disk is determined, and if the type contains a solid hard disk, the Windows operating system to be installed is installed on the solid hard disk. According to the embodiment of the application, the characteristic information of each hard disk in the computer is acquired through the hard disk information acquisition program which is created in advance and corresponds to different system architectures, the types of each hard disk in the computer are identified based on the hard disk characteristic information, the number of all the hard disk types is counted to obtain the number of the types, if the number of the types is one, only one type of hard disk exists in the current computer, at the moment, one hard disk can be directly determined from the single type of hard disk to be used as a system disk for installing the Windows operating system to be installed, if the number of the types is one, the fact that multiple types of hard disks exist in the current computer is indicated, at the moment, whether an SSD disk exists or not is further judged, if the SSD disk exists, the SSD disk is preferentially used as the system disk for installing the Windows operating system to be installed, and by the system installation mode, the system is preferentially installed on the SSD disk without considering the disk serial numbers of the hard disks in the Windows pre-installation environment, and the efficiency of automatic production of the computer is improved.
The embodiment of the application discloses a specific Windows operating system installation method, which is applied to a computer in a Windows pre-installation environment, and is shown in FIG. 3, and comprises the following steps:
Step S21: and identifying the system architecture of the target computer of the operating system to be installed through the processor architecture environment variable in the Windows pre-installation environment system to obtain the target system architecture.
In this embodiment, the system ARCHITECTURE of the target computer on which the operating system is to be installed may be identified by a PROCESSOR ARCHITECTURE environment variable (processor_architecture) in the win pe system, to obtain the target system ARCHITECTURE. For example, referring to FIG. 4, the current computer system rack is AMD64.
Step S22: and calling a target hard disk information acquisition program corresponding to the target system architecture to acquire the characteristic information of each hard disk in the target computer to obtain hard disk characteristic information, and exporting the hard disk characteristic information into a file to obtain a hard disk information file.
Step S23: and counting the number of the hard disks in the target computer according to the hard disk information file to obtain the total number of the hard disks, and judging whether the total number of the hard disks is larger than zero.
Step S24: if the total number of the hard disks is larger than zero, judging whether the total number of the hard disks is smaller than a preset hard disk number threshold value or not.
In this embodiment, in order to make the number of disks meet the shipment standard, after counting the number of all the hard disks in the current target computer, if the total number of the hard disks is greater than zero, it may be further determined whether the total number of the hard disks is less than a preset threshold of the number of the hard disks; the preset hard disk number threshold is the number of hard disks meeting shipment standards, for example, when each computer can only install 3 hard disks at most, the hard disk number threshold is 4.
Step S25: if the total number of the hard disks is smaller than the preset hard disk number threshold, identifying the types of all the hard disks in the target computer according to the hard disk information file to obtain hard disk types, and counting the number of the hard disk types to obtain the type number.
In this embodiment, if the total number of hard disks is smaller than the preset hard disk number threshold, it indicates that the number of hard disks in the current target computer meets the shipment standard, and at this time, the types of each hard disk in the target computer may be identified according to the hard disk information file to obtain a corresponding hard disk type, and the number of each hard disk type is counted to obtain the type number.
Step S26: if the total number of the hard disks is not smaller than the preset hard disk number threshold, generating an abnormal prompt and prohibiting the installation operation of the Windows operating system.
In this embodiment, if the total number of hard disks is not less than the preset threshold of hard disk number, it indicates that the number of hard disks in the current target computer does not meet the shipment standard, and at this time, a corresponding exception prompt may be generated, and the installation operation of the current Windows operating system is prohibited.
Step S27: and if the number of the types is one, determining a target hard disk from the hard disks of the target computer, and installing the Windows operating system to be installed on the target hard disk.
Step S28: if the number of the types is greater than one, judging whether the type of the hard disk comprises a solid state disk, and if the type of the hard disk comprises the solid state disk, installing a Windows operating system to be installed on the solid state disk.
For more specific processing procedures in the steps S22, S23, S27, and S28, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
Before an ODM and OEM production line mass production computer is provided with a Windows shipment mirror link, identifying a system architecture of a target computer of an operating system to be installed through a processor architecture environment variable in a Windows pre-installation environment system to obtain the target system architecture, then calling a target hard disk information acquisition program corresponding to the target system architecture, thereby acquiring characteristic information of each hard disk in the target computer to obtain hard disk characteristic information, exporting the hard disk characteristic information into a file to obtain a hard disk information file, counting the number of hard disks in the target computer to obtain the total number of hard disks according to the hard disk information file, judging whether the total number of hard disks is larger than zero, judging whether the total number of hard disks is smaller than a preset hard disk number threshold if the total number of hard disks is larger than zero, identifying types of each hard disk in the target computer according to the hard disk information file to obtain the types of the hard disks, and counting the number of the types of the hard disks to obtain the types of the types; if the number of the types is one, determining a target hard disk from the hard disks of the target computer, and installing a Windows operating system to be installed on the target hard disk; if the number of the types is greater than one, judging whether the type of the hard disk comprises a solid state disk, and if the type of the hard disk comprises the solid state disk, installing a Windows operating system to be installed on the solid state disk. According to the application, whether the number of the hard disks accords with the shipment standard of a factory can be identified through the preset threshold value of the number of the hard disks, so that the requirement of automatic production is met, and meanwhile, the operating system can be preferentially installed on the SSD disk, and the installation efficiency of the operating system is improved.
Correspondingly, the embodiment of the application also discloses a device for installing the Windows operating system, which is applied to the computer in the Windows pre-installation environment, and is shown in FIG. 5, and the device comprises:
the system architecture identification module 11 is configured to identify a system architecture of a target computer on which an operating system is to be installed, so as to obtain a target system architecture;
The program calling module 12 is configured to call a target hard disk information obtaining program corresponding to the target system architecture, so as to obtain characteristic information of each hard disk in the target computer, obtain hard disk characteristic information, and export the hard disk characteristic information into a file, so as to obtain a hard disk information file;
The type identification module 13 is configured to identify a type of each hard disk in the target computer according to the hard disk information file, so as to obtain a hard disk type;
A number statistics module 14, configured to count the number of types of each hard disk to obtain a type number;
a first system installation module 15, configured to determine a target hard disk from the hard disks of the target computer if the number of types is one, and install a Windows operating system to be installed on the target hard disk;
And the second system installation module 16 is configured to determine whether the type of the hard disk includes a solid state disk if the number of types is greater than one, and if the type of the hard disk includes a solid state disk, install the Windows operating system to be installed on the solid state disk.
The specific workflow of each module may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
It can be seen that, the embodiment of the present application is applied to a computer in a Windows pre-installation environment, firstly, a system architecture of a target computer of an operating system to be installed is identified to obtain a target system architecture, then, a target hard disk information acquisition program corresponding to the target system architecture is called to acquire characteristic information of each hard disk in the target computer to obtain hard disk characteristic information, the hard disk characteristic information is exported as a file to obtain a hard disk information file, then, the type of each hard disk in the target computer is identified according to the hard disk information file to obtain a hard disk type, the number of the hard disk types is counted to obtain a type number, if the type number is one, a target hard disk is determined from the hard disks of the target computer, the Windows operating system to be installed is installed on the target hard disk, if the type number is greater than one, whether the hard disk type contains a solid hard disk is determined, and if the type contains a solid hard disk, the Windows operating system to be installed is installed on the solid hard disk. According to the embodiment of the application, the characteristic information of each hard disk in the computer is acquired through the hard disk information acquisition program which is created in advance and corresponds to different system architectures, the types of each hard disk in the computer are identified based on the hard disk characteristic information, the number of all the hard disk types is counted to obtain the number of the types, if the number of the types is one, only one type of hard disk exists in the current computer, at the moment, one hard disk can be directly determined from the single type of hard disk to be used as a system disk for installing the Windows operating system to be installed, if the number of the types is one, the fact that multiple types of hard disks exist in the current computer is indicated, at the moment, whether an SSD disk exists or not is further judged, if the SSD disk exists, the SSD disk is preferentially used as the system disk for installing the Windows operating system to be installed, and by the system installation mode, the system is preferentially installed on the SSD disk without considering the disk serial numbers of the hard disks in the Windows pre-installation environment, and the efficiency of automatic production of the computer is improved.
In some specific embodiments, the type identification module 13 may specifically include:
The first hard disk number counting unit is used for counting the number of the hard disks in the target computer according to the hard disk information file to obtain the total number of the hard disks;
The first judging unit is used for judging whether the total number of the hard disks is larger than zero or not;
The first hard disk type identification unit is used for identifying the type of each hard disk in the target computer according to the hard disk information file if the total number of the hard disks is greater than zero, so as to obtain the hard disk type;
and the prompt information generation unit is used for generating prompt information of undetected hard disks if the total number of the hard disks is not more than zero.
In some specific embodiments, the first hard disk type identification unit may specifically include:
the capacity size statistics unit is used for respectively counting the capacity sizes of all the hard disks in the target computer to obtain the target capacity size if the total number of the hard disks is larger than zero;
the second judging unit is used for judging whether the size of each target capacity is larger than a preset capacity threshold value or not;
And the second hard disk type identification unit is used for identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the hard disk type if the size of each target capacity is larger than the preset capacity threshold value.
In some specific embodiments, the first system installation module 15 may specifically include:
a third judging unit, configured to judge whether the total number of hard disks is greater than one if the number of types is one;
The first program execution unit is used for executing a Power Shell program in a mode of increasing authority if the total number of the hard disks is larger than one so as to generate a detection solid state disk file, and setting the sequence of the solid state disk in the Windows pre-installation environment through the detection solid state disk file to obtain the sequence of the solid state disk;
The first solid state disk detection unit is used for detecting whether the hard disk type is a solid state disk or not through the detection solid state disk file;
The first solid state disk ordering unit is used for ordering all the solid state disks in the target computer based on the order of the solid state disks if the hard disk type is the solid state disk, so as to obtain a first ordered hard disk;
The first system installation unit is used for determining a target hard disk from the first ordered hard disks, taking the target hard disk as a system disk, and installing a Windows operating system to be installed on a system partition of the system disk;
The non-solid state disk ordering unit is used for ordering all the non-solid state disks in the target computer based on a preset disk order if the hard disk type is a non-solid state disk, so as to obtain a second ordered hard disk;
and the second system installation unit is used for determining a target hard disk from the second ordered hard disks, taking the target hard disk as a system disk, and installing a Windows operating system to be installed on a system partition of the system disk.
In some embodiments, the second system installation module 16 may specifically include:
The second program execution unit is used for executing the Power Shell program in a mode of increasing authority if the number of types is greater than one so as to generate a detection solid state disk file, and setting the sequence of the solid state disk in the Windows pre-installation environment through the detection solid state disk file to obtain the solid state disk sequence;
the second solid state disk detection unit is used for detecting whether the type of the hard disk contains the solid state disk or not through the detection solid state disk file;
the second hard disk number counting unit is used for counting the number of the solid state disks in the target computer to obtain the number of the solid state disks if the type of the hard disk contains the solid state disks;
The fourth judging unit is used for judging whether the number of the solid state disks is larger than one;
The second solid state disk ordering unit is used for ordering all the solid state disks in the target computer based on the solid state disk order if the number of the solid state disks is larger than one, so as to obtain a target ordered hard disk;
the third system installation unit is used for determining a target hard disk from the hard disks after target ordering, taking the target hard disk as a system disk, and installing a Windows operating system to be installed on a system partition of the system disk;
And the fourth system installation unit is used for installing the Windows operating system to be installed on the unique solid state disk in the target computer if the number of the solid state disks is one.
In some specific embodiments, the first hard disk type identification unit may specifically include:
a fifth judging unit, configured to judge whether the total number of hard disks is smaller than a preset hard disk number threshold value if the total number of hard disks is greater than zero;
the third hard disk type identification unit is used for identifying the type of each hard disk in the target computer according to the hard disk information file if the total number of the hard disks is smaller than the preset hard disk number threshold value, so as to obtain the hard disk type;
And the abnormal prompt generation unit is used for generating an abnormal prompt and prohibiting the installation operation of the Windows operating system if the total number of the hard disks is not smaller than the preset hard disk number threshold value.
In some specific embodiments, the system architecture identification module 11 may specifically include:
the system architecture identification unit is used for identifying the system architecture of the target computer of the operating system to be installed through the processor architecture environment variable in the Windows pre-installation environment system to obtain the target system architecture.
Further, the embodiment of the present application further discloses an electronic device, and fig. 6 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the figure is not to be considered as any limitation on the scope of use of the present application.
Fig. 6 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the Windows operating system installation method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the Windows operating system installation method performed by the electronic device 20 as disclosed in any of the previous embodiments.
Further, the application also discloses a computer readable storage medium for storing a computer program; the method for installing the Windows operating system is characterized in that the computer program is executed by a processor to realize the method for installing the Windows operating system. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above detailed description of the method, the device, the equipment and the storage medium for installing the Windows operating system provided by the application applies specific examples to illustrate the principle and the implementation of the application, and the description of the above examples is only used for helping to understand the method and the core idea of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. The method for installing the Windows operating system is characterized by being applied to a computer in a Windows pre-installation environment and comprising the following steps:
Identifying a system architecture of a target computer to which an operating system is to be installed, and obtaining a target system architecture;
invoking a target hard disk information acquisition program corresponding to the target system architecture to acquire characteristic information of each hard disk in the target computer to obtain hard disk characteristic information, and exporting the hard disk characteristic information into a file to obtain a hard disk information file;
Identifying the types of each hard disk in the target computer according to the hard disk information file to obtain hard disk types, and counting the number of the hard disk types to obtain the type number;
If the number of the types is one, determining a target hard disk from the hard disks of the target computer, and installing a Windows operating system to be installed on the target hard disk;
if the number of the types is greater than one, judging whether the type of the hard disk comprises a solid state disk, and if the type of the hard disk comprises the solid state disk, installing a Windows operating system to be installed on the solid state disk.
2. The method for installing the Windows operating system according to claim 1, wherein said identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the hard disk type comprises:
Counting the number of hard disks in the target computer according to the hard disk information file to obtain the total number of hard disks;
Judging whether the total number of the hard disks is larger than zero or not;
if the total number of the hard disks is greater than zero, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the type of the hard disk;
And if the total number of the hard disks is not more than zero, generating prompt information of the undetected hard disks.
3. The method for installing the Windows operating system according to claim 2, wherein if the total number of hard disks is greater than zero, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the hard disk type, comprising:
if the total number of the hard disks is larger than zero, respectively counting the capacity of each hard disk in the target computer to obtain the target capacity;
Judging whether the size of each target capacity is larger than a preset capacity threshold value or not;
And if the size of each target capacity is larger than the preset capacity threshold, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the hard disk type.
4. The method for installing the Windows operating system according to claim 2, wherein if the number of types is one, determining a target hard disk from the hard disks of the target computer, and installing the Windows operating system to be installed on the target hard disk, comprises:
if the number of the types is one, judging whether the total number of the hard disks is larger than one;
If the total number of the hard disks is greater than one, executing a Power Shell program in a mode of increasing authority to generate a detection solid state disk file, and setting the sequence of the solid state disk in the Windows pre-installation environment through the detection solid state disk file to obtain the sequence of the solid state disk;
detecting whether the hard disk type is a solid state disk or not through the detection solid state disk file;
If the hard disk type is a solid state disk, sequencing all the solid state disks in the target computer based on the solid state disk sequence to obtain a first sequenced hard disk, determining a target hard disk from the first sequenced hard disk, taking the target hard disk as a system disk, and then installing a Windows operating system to be installed on a system partition of the system disk;
And if the hard disk type is a non-solid state hard disk, sequencing all the non-solid state hard disks in the target computer based on a preset hard disk sequence to obtain a second sequenced hard disk, determining a target hard disk from the second sequenced hard disk, taking the target hard disk as a system disk, and then installing a Windows operating system to be installed on a system partition of the system disk.
5. The method for installing the Windows operating system according to claim 1, wherein if the number of types is greater than one, determining whether the hard disk type includes a solid state disk, and if the hard disk type includes a solid state disk, installing the Windows operating system to be installed on the solid state disk includes:
if the number of the types is greater than one, executing a Power Shell program in a mode of increasing authority to generate a detection solid state disk file, and setting the sequence of the solid state disk in the Windows pre-installation environment through the detection solid state disk file to obtain the solid state disk sequence;
detecting whether the hard disk type contains the solid state disk or not through the detection solid state disk file, and if the hard disk type contains the solid state disk, counting the number of the solid state disks in the target computer to obtain the number of the solid state disks;
judging whether the number of the solid state disks is larger than one;
If the number of the solid state disks is greater than one, sequencing all the solid state disks in the target computer based on the solid state disk sequence to obtain target sequenced hard disks, determining the target hard disks from the target sequenced hard disks, taking the target hard disks as system disks, and then installing a Windows operating system to be installed on a system partition of the system disks;
And if the number of the solid state disks is one, installing the Windows operating system to be installed on the unique solid state disk in the target computer.
6. The method for installing the Windows operating system according to claim 2, wherein if the total number of hard disks is greater than zero, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the hard disk type, comprising:
if the total number of the hard disks is larger than zero, judging whether the total number of the hard disks is smaller than a preset hard disk number threshold value or not;
If the total number of the hard disks is smaller than the preset hard disk number threshold, identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the type of the hard disk;
if the total number of the hard disks is not smaller than the preset hard disk number threshold, generating an abnormal prompt and prohibiting the installation operation of the Windows operating system.
7. The method for installing a Windows operating system according to any one of claims 1 to 6, wherein the identifying a system architecture of a target computer on which an operating system is to be installed, to obtain a target system architecture, includes:
And identifying the system architecture of the target computer of the operating system to be installed through the processor architecture environment variable in the Windows pre-installation environment system to obtain the target system architecture.
8. A Windows operating system installation apparatus, for a computer in a Windows preinstallation environment, comprising:
The system architecture identification module is used for identifying the system architecture of a target computer of an operating system to be installed to obtain a target system architecture;
The program calling module is used for calling a target hard disk information acquisition program corresponding to the target system architecture to acquire characteristic information of each hard disk in the target computer to obtain hard disk characteristic information, and exporting the hard disk characteristic information into a file to obtain a hard disk information file;
The type identification module is used for identifying the type of each hard disk in the target computer according to the hard disk information file to obtain the type of the hard disk;
The quantity counting module is used for counting the quantity of the types of the hard disks to obtain the type quantity;
The first system installation module is used for determining a target hard disk from the hard disks of the target computer and installing a Windows operating system to be installed on the target hard disk if the number of types is one;
And the second system installation module is used for judging whether the type of the hard disk comprises a solid state disk or not if the type number is larger than one, and installing the Windows operating system to be installed on the solid state disk if the type of the hard disk comprises the solid state disk.
9. An electronic device comprising a processor and a memory; wherein the processor, when executing the computer program stored in the memory, implements the Windows operating system installation method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program; wherein the computer program, when executed by a processor, implements the Windows operating system installation method according to any one of claims 1 to 7.
CN202410339476.1A 2024-03-22 2024-03-22 Windows operating system installation method, device, equipment and storage medium Pending CN118259925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410339476.1A CN118259925A (en) 2024-03-22 2024-03-22 Windows operating system installation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410339476.1A CN118259925A (en) 2024-03-22 2024-03-22 Windows operating system installation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118259925A true CN118259925A (en) 2024-06-28

Family

ID=91604440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410339476.1A Pending CN118259925A (en) 2024-03-22 2024-03-22 Windows operating system installation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118259925A (en)

Similar Documents

Publication Publication Date Title
CN111756574B (en) Method, device and computer readable storage medium for remote batch updating firmware
US10936299B2 (en) Automated intra-system persistent memory updates
CN110096314B (en) Interface initialization method, device, equipment and computer readable storage medium
US7058563B1 (en) Device driver auto-load
EP3654167B1 (en) Operating system installation
CN112765023A (en) Test case generation method and device
CN103810099A (en) Code tracing method and code tracing system
CN109002348B (en) Load balancing method and device in virtualization system
CN111694684A (en) Abnormal construction method and device of storage equipment, electronic equipment and storage medium
US9268608B2 (en) Automatic administration of UNIX commands
US20040243731A1 (en) Upgrading a memory subsystem
CN111026656A (en) Automatic testing system, method, equipment and storage medium for distributed storage
CN111367745A (en) Memory pressure testing method and system without support of operating system and related components
CN108985402B (en) RAID card information acquisition method and related device
CN118259925A (en) Windows operating system installation method, device, equipment and storage medium
US11360702B2 (en) Controller event queues
CN114048465B (en) Stack state detection method, device, equipment and storage medium
CN116185774A (en) Log monitoring installation method, device, computer equipment and storage medium
CN112463574A (en) Software testing method, device, system, equipment and storage medium
US20090210589A1 (en) Dynamic Vital Product Data Update Based on an Installed Feature Card
CN112486517B (en) Application program installation method and system, electronic equipment and storage medium
CN111475819B (en) Method and device for identifying abnormal terminal equipment, storage medium and electronic equipment
US20070061227A1 (en) Determining a computer system inventory
CN111221701A (en) Chip and circuit logic reconfiguration system thereof
CN104090845A (en) Automatic game testing method and system and related device

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination