CN112732284B - Installation method, installation device, installation equipment and computer readable storage medium - Google Patents

Installation method, installation device, installation equipment and computer readable storage medium Download PDF

Info

Publication number
CN112732284B
CN112732284B CN202110221028.8A CN202110221028A CN112732284B CN 112732284 B CN112732284 B CN 112732284B CN 202110221028 A CN202110221028 A CN 202110221028A CN 112732284 B CN112732284 B CN 112732284B
Authority
CN
China
Prior art keywords
state
operating system
target
setting item
target setting
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.)
Active
Application number
CN202110221028.8A
Other languages
Chinese (zh)
Other versions
CN112732284A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110221028.8A priority Critical patent/CN112732284B/en
Publication of CN112732284A publication Critical patent/CN112732284A/en
Application granted granted Critical
Publication of CN112732284B publication Critical patent/CN112732284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses an installation method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: if an instruction for installing a first operating system is obtained, determining the current state of a target setting item; if the target setting item is in a first state, executing an operation of installing the first operating system; and/or outputting a prompt that the first operating system cannot be installed if the target setting item is in the second state, so as to execute an operation of installing the first operating system after determining that the target setting item is switched from the second state to the first state; the target setting item can adjust the state of a target variable in the electronic device, the target variable is generated when the electronic device installs a second operating system different from the first operating system, and the target variable can influence the installation of the first operating system.

Description

Installation method, installation device, installation equipment and computer readable storage medium
Technical Field
Embodiments of the present application relate to the field of computers and information processing, and relate to, but are not limited to, an installation method, an installation device, and a computer readable storage medium.
Background
With the rapid development of science and technology, dual-screen computers are gradually appearing in people's lives, and at the same time, an operating system adapted to dual-screen computers, such as a Window Core Operating System (WCOS), has also been developed. In practice, however, when WCOS is installed on the computer, lock information is generated in the basic input output system (Basic Input Output System, BIOS) of the computer, and the lock information prevents installation of other types of operating systems, so that the computer cannot install other types of operating systems.
In the related art, although an engineer can execute a command under a new Extensible firmware interface (Extensible FIRMWARE INTERFACE SHELL, EFT shell) interface to clear the locking information, the clearing process is very complex, and is not easy to operate, and does not have universality, so that the applicability of the computer is affected, and the functions of the computer are reduced.
Disclosure of Invention
In view of this, embodiments of the present application provide an installation method, apparatus, device, and computer-readable storage medium.
The technical scheme of the embodiment of the application is realized as follows:
The embodiment of the application provides an installation method, which comprises the following steps:
if an instruction for installing a first operating system is obtained, determining the current state of a target setting item;
if the target setting item is in a first state, executing an operation of installing the first operating system; and/or the number of the groups of groups,
Outputting a prompt that the first operating system cannot be installed if the target setting item is in a second state, so as to execute an operation of installing the first operating system after determining that the target setting item is switched from the second state to the first state;
The target setting item can adjust the state of a target variable in the electronic device, the target variable is generated when the electronic device installs a second operating system different from the first operating system, and the target variable can influence the installation of the first operating system.
An embodiment of the present application provides a mounting device, including:
A determining module for determining a current state of the target setting item if an instruction for installing the first operating system is obtained;
an execution module configured to execute an operation of installing the first operating system if the target setting item is in a first state; and/or the number of the groups of groups,
Outputting a prompt that the first operating system cannot be installed if the target setting item is in a second state, so as to execute an operation of installing the first operating system after determining that the target setting item is switched from the second state to the first state;
The target setting item can adjust the state of a target variable in the electronic device, the target variable is generated when the electronic device installs a second operating system different from the first operating system, and the target variable can influence the installation of the first operating system.
An embodiment of the present application provides an electronic device, including:
a processor; and
A memory for storing a computer program executable on the processor;
wherein the computer program when executed by a processor implements the steps of the installation method described above.
Embodiments of the present application provide a computer-readable storage medium having stored therein computer-executable instructions configured to perform the steps of the above-described installation method.
The embodiment of the application provides an installation method, an installation device and a computer readable storage medium, wherein when an instruction for installing a first operating system is acquired, the current state of a target setting item is determined, and when the target setting item is in a first state, the first operating system is directly installed; and outputting a prompt that the first operating system cannot be installed when the target setting item is in the second state, and installing the first operating system after determining that the target setting item is switched from the second state to the first state. Therefore, the electronic equipment provided with the second operating system can be provided with the first operating system by prohibiting access to the first state of the non-enabled target variable through the target setting item or switching the current state of the target setting item to the first state of the non-enabled target variable, so that the installation process is simplified, the applicability of the electronic equipment is improved, the functions of the electronic equipment are enriched, and the performance of the electronic equipment is enhanced. Meanwhile, the use requirements of users on multiple systems of the electronic equipment are met, the working efficiency is improved, and the user experience is improved.
Drawings
In the drawings (which are not necessarily drawn to scale), like numerals may describe similar components in different views. The drawings illustrate generally, by way of example and not by way of limitation, various embodiments discussed herein.
FIG. 1 is a schematic diagram of an implementation flow of an installation method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a prompt for failing to install a first OS according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of another implementation of the installation method according to the embodiment of the present application;
FIG. 4 is a schematic flow chart of another implementation of the installation method according to the embodiment of the present application;
fig. 5 is a schematic diagram of a component structure of a mounting device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application.
Detailed Description
The present application will be further described in detail with reference to the accompanying drawings, for the purpose of making the objects, technical solutions and advantages of the present application more apparent, and the described embodiments should not be construed as limiting the present application, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
If a similar description of "first\second\third" appears in the application document, the following description is added, in which the terms "first\second\third" are merely distinguishing between similar objects and do not represent a particular ordering of the objects, it being understood that the "first\second\third" may be interchanged in a particular order or precedence, where allowed, so that embodiments of the application described herein may be practiced in an order other than that illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the application only and is not intended to be limiting of the application.
Based on the problems of the related art, the embodiment of the present application provides an installation method, where the method provided by the embodiment of the present application may be implemented by a computer program, and the computer program completes each step in the installation method provided by the embodiment of the present application when executed. In some embodiments, the computer program may be executed by a processor in an electronic device. Fig. 1 is a schematic flow chart of an implementation of an installation method according to an embodiment of the present application, as shown in fig. 1, where the method includes:
step S101, if an instruction for installing the first operating system is obtained, determining the current state of the target setting item.
Here, the first operating system may be an operating system commonly used at present and applicable to electronic devices such as a computer, a smart phone, a smart watch, an AR device, a VR device, a smart glasses, a smart television, etc., for example, windows XP, windows 7, windows 10, linux, android, 4.0, android 7.0, etc. In addition, the instruction for installing the first operating system may be triggered by an operation of updating or upgrading the operating system of the electronic device itself, may be triggered by a loading operation of loading the first operating system file by the boot program of the BIOS of the electronic device, or may be a migration instruction from all resources of other electronic devices.
The target setting item may be stored in the BIOS, and when the electronic device is turned on or an operating system installation instruction is received, the electronic device may run a program stored in the BIOS, where when an instruction for installing the first operating system is received, it is first required to determine a current state of the target setting item to determine whether the first operating system can be installed.
The current state of the target setting item may be a first state or a second state, the target setting item being capable of adjusting a state of a target variable in the electronic device, the target variable being capable of affecting an installation of the first operating system. When the current state of the target setting item is the first state, the electronic equipment is characterized that the target variable cannot be accessed when the first operating system is installed, wherein the target variable cannot be accessed, namely the electronic equipment can hide the target variable or the electronic equipment can clear the previous target variable, or the electronic equipment does not have the target variable, and at the moment, the electronic equipment can smoothly install the first operating system. The target variable is generated when the electronic device installs the second operating system, and the target variable is stored in a storage space where the system start program is located, and the electronic device starts the system through the BIOS, so the target variable is stored in the storage space of the BIOS, for example, the target variable may be locking information, and the target variable can prevent the electronic device from installing the first operating system, that is, the target variable makes the electronic device unable to successfully install the first operating system; here, the second operating system is different from the first operating system in type, for example, the second operating system may be WCOS.
When the current state of the target setting item is the second state, the electronic equipment can access the target variable when the first operating system is installed, and at the moment, the electronic equipment cannot install the first operating system; in addition, the state of the target variable in the electronic device can be adjusted through the target setting item. That is, when the electronic device can access the target variable when the first operating system is installed, the second state of the target setting item can be switched to the first state, so that the purpose of hiding or removing the target variable can be achieved, the electronic device cannot access the target variable when the first operating system is installed, and the installation of the first operating system is smoothly completed.
Step S102, if the target setting item is in a first state, an operation of installing the first operating system is performed.
In the embodiment of the application, when the current state of the target setting item is the first state, the electronic equipment cannot access the target variable when the first operating system is installed, and the target variable in the electronic equipment can be considered to be hidden or cleared; it may also be considered that the target variable does not exist in the electronic device, where the case where the target variable does not exist includes that the electronic device has not yet installed an operating system, or that the operating system installed in the electronic device is the same type of operating system as the first operating system. At this time, since the electronic device cannot access the target variable when the first operating system is installed, the electronic device can smoothly perform the operation of installing the first operating system at this time.
Step S103, if the target setting item is in a second state, outputting a prompt that the first operating system cannot be installed, so as to execute an operation of installing the first operating system after determining that the target setting item is switched from the second state to the first state.
In the embodiment of the application, when the current state of the target setting item is the second state, the electronic device can access the target variable when the first operating system is installed, and the target variable can influence the installation of the first operating system, and when the target variable is realized, the installation of the bootstrap program of the first operating system can be prevented, or the installation of the system file of the first operating system can be prevented, or the installation of part of the bootstrap program of the first operating system can be allowed, or the installation of part of the system file of the first operating system can be allowed, so that the bootstrap program and the system file of the first operating system can not be completely installed, and finally the first operating system can not be installed on the electronic device.
In some embodiments, when the first operating system cannot be installed, the electronic device may output a prompt message that the first operating system cannot be installed, as shown in fig. 2, where the prompt message that the first operating system cannot be installed may be "because the locking information of the operating system type exists in the device, and thus the operation of currently installing the operating system cannot be performed", and of course, the prompt message that the first operating system cannot be installed may also be "the current electronic device does not support the installation of the first operating system", where in the embodiment of the present application, the prompt message that the first operating system cannot be installed can display the related information that the first operating system cannot be installed on the screen of the electronic device through a visual window, so as to inform the user, and the embodiment of the present application does not limit specific prompt content.
In some embodiments, the electronic device may acquire the current state of the target setting item in real time or periodically, and when the current state of the target setting item is acquired, the period may be 5ms, 10ms, or the like, and when the current state of the target setting item is acquired as the first state, it indicates that the current state of the target setting item has been switched from the second state to the first state, and correspondingly, the electronic device is also switched from a state that does not support installation of the first operating system to a state that supports installation of the first operating system, and then, performs an operation of installing the first operating system.
The embodiment of the application provides an installation method, which is applied to electronic equipment, and is used for determining the current state of a target setting item when an instruction for installing a first operating system is acquired, and directly installing the first operating system when the target setting item is in the first state; outputting a prompt that the first operating system cannot be installed when the target setting item is in the second state; then, after the target setting item is determined to be switched from the second state to the first state, the first operating system is installed. Therefore, the electronic equipment provided with the second operating system can be provided with the first operating system by prohibiting access to the first state of the non-enabled target variable through the target setting item or switching the current state of the target setting item to the first state of the non-enabled target variable, so that the installation process is simplified, the applicability of the electronic equipment is improved, the functions of the electronic equipment are enriched, and the performance of the electronic equipment is enhanced.
In some embodiments, "if an instruction for installing the first operating system is obtained" in step S101 may be implemented by the following three cases:
in case one, if an input for controlling the electronic device to update or upgrade from the second operating system to the first operating system is detected, it is determined to obtain an instruction for installing the first operating system.
In some embodiments, the second operating system is installed on the electronic device, so that the electronic device can access internet resources, the electronic device can connect to the internet, and establish a connection with a database server of the internet, based on which the database server can push information for updating or upgrading the second operating system to the first operating system to the electronic device, and output selection information of the information, and when the electronic device detects that the selection information characterizes that the electronic device is updated or upgraded from the second operating system to the first operating system, the electronic device is considered to obtain instructions for installing the first operating system.
In other embodiments, the electronic device may further obtain, by downloading, an installation package of the first operating system on the basis of the installation of the second operating system by the electronic device, and when it is detected that the installation package is opened and the installation program for installing the first operating system is further run, consider that the electronic device obtains the instruction for installing the first operating system.
And secondly, if the boot program of the basic input/output system of the electronic device is detected to load the first operating system file, determining to obtain an instruction for installing the first operating system.
Here, the electronic device may or may not have an operating system installed, and when the electronic device is turned on, the electronic device first enters into the BIOS, and when a boot program of the BIOS loads a system file of the first operating system, it is considered that the electronic device obtains an instruction for installing the first operating system. The boot program of the BIOS may load a system file of the first operating system through an external device such as a usb disk, an optical disc, or may load a system file of the first operating system based on a hard disk of the electronic device.
And thirdly, if the electronic equipment is detected to obtain the migration instruction from the target equipment, determining to obtain the instruction for installing the first operating system, wherein the target equipment is provided with the first operating system.
Here, the migration instruction refers to copying all contents stored in the target device into the electronic device, where all contents stored in the target device include not only common documents, video, audio, and other files, but also a first operating system installed in the target electronic device.
In some embodiments, when the electronic device receives a migration instruction of the target electronic device, the migration instruction instructs copying of the first operating system of the target electronic device into the electronic device, so that the migration instruction triggers the BIOS, so that the boot program of the BIOS loads the first operating system file, and the electronic device is considered to obtain the instruction for installing the first operating system.
Through the three conditions, the electronic equipment can smoothly receive the instruction for installing the first operating system, and then the process of installing the first operating system is started.
In some embodiments, "determining the current state of the target setting item" in step S101 may be achieved through step S11A or S11B:
Step S11A, a selected state of a target setting item in a basic input and output system of the electronic equipment is obtained, and the current state of the target setting item is determined based on the selected state.
Here, the selected state of the target setting item includes a first selected state of hiding or clearing the target variable, and correspondingly, the first selected state corresponds to the first state of the target setting item; the selected states of the target setting item further comprise a second selected state of the normally accessed target variable, which corresponds to the second state of the target setting item.
In some embodiments, the electronic device is capable of obtaining a selected state of the target setting item by reading the instruction, and determining that the current state of the target setting item is the first state when the selected state of the target setting item is the first selected state; and when the selected state of the target setting item is the second selected state, determining that the current state of the target setting item is the second state.
Step S11B, a current state value of a target setting item in a basic input and output system of the electronic equipment is obtained, and the current state of the target setting item is determined based on the current state value.
Here, the current state of the target setting item may be a first state or a second state, and accordingly, the current value of the target setting item includes at least a second value corresponding to the first state and a first value corresponding to the second selected state. The second value, which may be 0, can characterize the first state of the target setting, and then the second value may also be used to characterize the hidden or cleared target variable; the first value, which may be 1, may also be used to characterize the second state of the target setting item, and thus may also be used to characterize the target variable that is accessible when the first operating system is installed.
In some embodiments, the electronic device is further capable of obtaining a current state value of the target setting item by reading the instruction, and determining that the current state of the target setting item is the first state when the current state value of the target setting item is the second numerical value; and when the current state value of the target setting item is the first numerical value, determining that the current state of the target setting item is the second state.
The current state of the target setting item can be determined through the step S11A or the step S11B, so that a basis is provided for the installation method of the subsequent first operating system, and the installation method of the subsequent first operating system is further guided. Therefore, the installation process is simplified, the installation convenience is improved, the applicability of the electronic equipment is improved, the functions of the electronic equipment are enriched, and the performance of the electronic equipment is enhanced.
In some embodiments, when the "output prompt that the first operating system cannot be installed" in step S103 is implemented, a prompt to switch the target setting item from the second state to the first state may also be simultaneously output.
Here, while the electronic device outputs a prompt that the first operating system cannot be installed, a prompt to switch the target setting item from the second state to the first state may also be simultaneously output, and the state switching prompt may include a prompt, for example, "please switch the locking information of the operating system type from the current permission state to the prohibition state". In addition, the state switching prompt may further include a prompt and a specific switching step, for example, "please switch the locking information of the operating system type from the current permission state to the prohibition state, the switching method is as follows: step one, entering a setting interface of the locking information of an operating system; second, opening a state setting option; and thirdly, selecting a forbidden state ", and switching the target setting item from the second state to the first state can be realized through the three steps.
In other embodiments, outputting the prompt to switch the target setting item from the second state to the first state may also be performed after implementing the "output prompt that the first operating system cannot be installed" in step 103. That is, after outputting the prompt of the first operating system which cannot be installed, the prompt of state switching is output separately, and of course, the state switching prompt may include only the prompt, or may include the prompt and a specific switching step.
In some embodiments, as shown in fig. 3, after "outputting a prompt to switch the target setting item from the second state to the first state" in step S103, the following steps S21 to S22 may be further performed:
Step S21, receiving a response message for the prompt for switching the target setting item from the second state to the first state.
Here, based on the state switching prompt, the user may select one of the states of the target setting item, which corresponds to responding to the state switching prompt, and accordingly, the electronic device receives the corresponding response message. Here, the response message may be to switch the target setting item from the second state to the first state, or the response message may be to maintain the current second state of the target setting item.
Step S22, when the received response message is to adjust the target setting item to the first state, setting the target setting item to the first state.
Here, the electronic device parses the response message, and sets the target setting item to the first state based on the response message when the parsing result indicates that the state of the target setting item has been switched to the first state.
Therefore, when the first operating system is installed on the electronic equipment provided with the second operating system, corresponding prompt information and a correct installation method can be given, so that the installation process is simplified, the applicability of the electronic equipment is improved, the functions of the electronic equipment are enriched, and the performance of the electronic equipment is enhanced.
In some embodiments, as shown in fig. 4, the "after determining that the target setting item is switched from the second state to the first state, the operation of installing the first operating system" in step S103 may be implemented by steps S31 to S33:
step S31, determining that the target setting item is switched from the second state to the first state.
In some embodiments, if it is detected that the current state value of the target setting item in the basic input output system of the electronic device changes from a first value to a second value, it is determined that the target setting item is switched from the second state to the first state.
Here, referring to step S11B, the states of the target setting items are in one-to-one correspondence with the current state values, and the second numerical value corresponds to the first state of the target setting item, and the first numerical value corresponds to the second state of the target setting item. Then when the electronic device is to detect that the current state value is changed from the first value to the second value, it is indicated that the target setting item is switched from the second state to the first state.
In other embodiments, if a cursor selection state in a basic input output system of an electronic device is detected to move from a first target setting item to a second target setting item, or to switch from a first position to a second position of the target setting item, it is determined that the target setting item switches from the second state to the first state.
Here, referring to step S11A, the first selected state of the target setting item corresponds to the first state of the target setting item, and the second selected state of the target setting item corresponds to the second state of the target setting item. When the method is realized, the selected state of the target setting item can be further determined by detecting the selected state of the cursor, wherein the selected state of the cursor can be a first target setting item or a second target setting item, the first target setting item corresponds to the second state of the target setting item, and the second target setting item corresponds to the first state of the target setting item; the selected state of the cursor may also be a first target sub-setting item or a second target sub-setting item, where the first target sub-setting item corresponds to the second state of the target setting item and the second target sub-setting item corresponds to the first state of the target setting item; the selected state of the cursor may still be the first position of the target setting item or the second position of the target setting item, and the first position of the target setting item corresponds to the second state of the target setting item, and the second position of the target setting item corresponds to the first state of the target setting item.
In some embodiments, the target setting item is determined to switch from the second state to the first state when movement of the cursor selection state from the first target setting item to the second target setting item is detected, or when movement of the cursor selection state from the first position of the target setting item to the second position of the target setting item is detected.
Step S32, clearing the target variable of the target storage location in the electronic device.
In some embodiments, step S32 may be implemented by the following steps S321A to S322A:
in step S321A, a clear instruction is received.
Here, the clear instruction form may be in the form of a command line, for example: the target variable of the target storage location is set to null by the set instruction, or the target variable of the target storage location is cleared by the clear instruction, or the target variable of the target storage location is hidden by the hide instruction. The hiding the target variable is actually to point the target storage position to other positions, and the content stored in the position does not contain the target variable, so that when the position is accessed, the electronic device cannot access the target variable, and therefore the hiding of the target variable is achieved.
In step S322A, the target variable of the target storage location is cleared or hidden in response to the clearing instruction.
After receiving the clearing instruction, the electronic device responds to the clearing instruction and executes corresponding operation based on the corresponding clearing instruction so as to clear or hide the target variable.
In other embodiments, step S32 may be implemented by the following steps S321B to S323B:
In step S321B, a mapping relationship between the state value of the target setting item and the storage location is obtained.
Here, the mapping relationship at least includes a correspondence between a first value and a corresponding first storage location, and a correspondence between a second value and a corresponding second storage location, where the first value and the first storage location each correspond to a second state of the target setting item, and the second value and the second storage location each correspond to a first state of the target setting item.
Step S322B, determining the second storage location from the mapping relationship.
Step S323B, setting the target storage location as the second storage location.
Through steps S321B to S323B, a second storage location is first determined from the mapping relationship, where the content in the second storage location does not include the target variable, and the second storage location is set as the target storage location, so that the target setting item is in the first state, and when the BIOS accesses the target storage location, the target variable is not accessed.
In other embodiments, step S32 may be implemented by the following steps S321C to S323C:
S321C, acquiring target storage content of the target storage position.
S322C, determining the target variable in the target storage content.
S323C, deleting the target variable.
Through steps S321C to S323C, the target storage content stored in the target storage location is acquired first, then the target variable is determined from the target storage content, and the target variable is deleted, so that the target setting item is in the first state.
Step S33, performing an operation of installing the first operating system.
At this time, the target setting item of the electronic device is in the first state, the state supports the electronic device to install the first operating system, and when the BIOS accesses the target storage location, the target variable is not accessed, so that the electronic device can smoothly install the first operating system.
Therefore, the electronic equipment provided with the second operating system can be provided with the first operating system, and the installation process is simplified, so that the applicability of the electronic equipment is improved, the functions of the electronic equipment are enriched, and the performance of the electronic equipment is enhanced.
In some embodiments, the electronic device is used as a computer, the first operating system is a Windows 10 operating system, the second operating system is WCOS, the target setting item is locking information, the first state is a disabled state, the second state is an allowed state, the locking information pointer points to a blank address, and the locking information pointer points to a section of address in the nonvolatile random access memory in the allowed state; the lock information is in a permitted state by default. Here WCOS is mutually exclusive from the Windows 10 operating system, and WCOS adds a unified extensible firmware interface (Unified Extensible FIRMWARE INTERFACE, UEFI) variable SecureBootPlatformID to BIOS memory space each time it is started or flushed, and SecureBootPlatformID can prevent the Windows 10 operating system from being started.
Under the condition that a computer is installed WCOS, receiving an instruction for installing a Windows 10 operating system, and outputting a prompt of the incapable installation and simultaneously outputting a prompt of a step of setting the locking information to a disabled state because the computer is locked by the locking information in the computer, so that the computer cannot directly install the Windows 10 operating system; then, when the computer detects that the state of the locking information is switched from the permission state to the prohibition state, the locking information pointer points to a blank address changed from an address in the nonvolatile random access memory, the electronic device cannot access the content in the address in the nonvolatile random access memory before the electronic device can not prevent the Windows 10 operating system from being installed, and the electronic device responds to an instruction for installing the Windows 10 operating system and installs the Windows 10 operating system.
Therefore, the computer can support the installation of the Windows 10 operating system on the basis of WCOS, and the installation process is simple and easy to operate, so that the applicability of the computer is improved, the functions of the computer are enriched, and the performance of the computer is enhanced.
Based on the foregoing embodiments, the embodiments of the present application provide an installation apparatus, where each module included in the installation apparatus, and each unit included in each module may be implemented by a processor in a computer device; of course, the method can also be realized by a specific logic circuit; in an implementation, the processor may be a central Processing unit (CPU, central Processing Unit), a microprocessor (MPU, microprocessor Unit), a digital signal processor (DSP, digital Signal Processing), a field programmable gate array (FPGA, field Programmable GATE ARRAY), or the like.
An embodiment of the present application further provides a mounting device, fig. 5 is a schematic diagram of a composition structure of the mounting device provided in the embodiment of the present application, as shown in fig. 5, where the mounting device 500 includes:
A determining module 501 configured to determine a current state of a target setting item if an instruction for installing a first operating system is obtained;
an execution module 502, configured to execute an operation of installing the first operating system if the target setting item is in a first state; and/or the number of the groups of groups,
Outputting a prompt that the first operating system cannot be installed if the target setting item is in a second state, so as to execute an operation of installing the first operating system after determining that the target setting item is switched from the second state to the first state;
The target setting item can adjust the state of a target variable in the electronic device, the target variable is generated when the electronic device installs a second operating system different from the first operating system, and the target variable can influence the installation of the first operating system.
In some embodiments, the determining module 501 includes:
A determining unit configured to determine to obtain an instruction for installing a first operating system if an input for controlling an electronic device to be updated or upgraded from the second operating system to the first operating system is detected; or alternatively, the first and second heat exchangers may be,
If the boot program of the basic input and output system of the electronic device is detected to load the first operating system file, determining to obtain an instruction for installing the first operating system; or alternatively, the first and second heat exchangers may be,
If the electronic device is detected to obtain the migration instruction from the target device, determining to obtain an instruction for installing a first operating system, wherein the target device is installed with the first operating system.
In some embodiments, the determining module 501 further comprises:
The device comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring a selected state of a target setting item in a basic input and output system of the electronic equipment, and determining the current state of the target setting item based on the selected state; or alternatively, the first and second heat exchangers may be,
And obtaining a current state value of a target setting item in a basic input and output system of the electronic equipment, and determining the current state of the target setting item based on the current state value.
In some embodiments, the mounting apparatus 500 further comprises:
the output module is used for outputting a prompt for switching the target setting item from the second state to the first state when the prompt that the first operating system cannot be installed is output; or alternatively, the first and second heat exchangers may be,
And outputting a prompt for switching the target setting item from the second state to the first state after outputting the prompt that the first operating system cannot be installed.
In some embodiments, the execution module 502 includes:
And the clearing unit is used for clearing a target variable of a target storage position in the electronic equipment after the target setting item is determined to be switched from the second state to the first state so as to execute the operation of installing the first operating system, wherein the target variable can influence the installation of the first operating system.
In some embodiments, the execution module 502 further comprises:
A detection unit, configured to determine that the target setting item is switched from a second state to the first state if it is detected that a current state value of the target setting item in a basic input output system of the electronic device changes from a first value to a second value; or alternatively, the first and second heat exchangers may be,
And if the cursor selection state in the basic input and output system of the electronic device is detected to move from the first target setting item to the second target setting item or to switch from the first position to the second position of the target setting item, determining that the target setting item is switched from the second state to the first state.
In some embodiments, the purge unit is further to:
Receiving a clearing instruction; responding to the clearing instruction, and clearing or hiding a target variable of the target storage position; or alternatively, the first and second heat exchangers may be,
Acquiring a mapping relation between a state value of a target setting item and a storage position; the mapping relation at least comprises a corresponding relation between the first numerical value and a corresponding first storage position and a corresponding relation between the second numerical value and a corresponding second storage position; determining the second storage position from the mapping relation; setting the target storage location to the second storage location; or alternatively, the first and second heat exchangers may be,
Acquiring target storage content of the target storage position; determining the target variable in the target storage content; and deleting the target variable.
In some embodiments, the mounting apparatus 500 further comprises:
a receiving module, configured to receive a response message for the prompt for switching the target setting item from the second state to the first state;
and the setting module is used for setting the target setting item to the first state when the received response message is for adjusting the target setting item to the first state.
In some embodiments, the mounting apparatus 500 further comprises:
the generation module is used for generating the target variable when the second operating system is installed;
and the storage module is used for storing the target variable in a storage space where the system starting program is located.
In the embodiment of the present application, if the installation method is implemented in the form of a software functional module and sold or used as a separate product, the installation method may also be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be embodied essentially or in a part contributing to the related art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes. Thus, embodiments of the application are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the installation method provided in the above embodiment.
An embodiment of the present application provides an electronic device, fig. 6 is a schematic diagram of a composition structure of the electronic device provided in the embodiment of the present application, as shown in fig. 6, and the electronic device 600 includes: a processor 601, at least one communication bus 602, a user interface 603, at least one external communication interface 604 and a memory 605. Wherein the communication bus 602 is configured to enable connected communication between these components. The user interface 603 may include a display screen, and the external communication interface 604 may include a standard wired interface and a wireless interface, among others. Wherein the processor 601 is configured to execute a program of an installation method stored in a memory to implement the steps in the installation method provided in the above-described embodiment.
The description of the electronic device and the storage medium embodiments above is similar to that of the method embodiments described above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the electronic device and storage medium embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present application, please refer to the description of the method embodiments of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application. The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, 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.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purposes of the embodiment of the present application.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a magnetic disk or an optical disk, or the like, which can store program codes.
Or the above-described integrated units of the application may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied essentially or in a part contributing to the related art in the form of a software product stored in a storage medium, including several instructions for causing an AC to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
The foregoing is merely an embodiment of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A method of installation, comprising:
if an instruction for installing a first operating system is obtained, determining the current state of a target setting item;
If the target setting item is in a first state, executing an operation of installing the first operating system; or alternatively, the first and second heat exchangers may be,
Outputting a prompt that the first operating system cannot be installed if the target setting item is in a second state, so as to execute an operation of installing the first operating system after determining that the target setting item is switched from the second state to the first state;
The target setting item can adjust the state of a target variable in the electronic equipment, wherein the target variable is generated when the electronic equipment installs a second operating system different from the first operating system, and the target variable can influence the installation of the first operating system;
The instructions, if obtained, for installing the first operating system, comprise:
determining to obtain instructions for installing a first operating system if an input for controlling an electronic device to update or upgrade from the second operating system to the first operating system is detected; or alternatively, the first and second heat exchangers may be,
If the boot program of the basic input and output system of the electronic device is detected to load the first operating system file, determining to obtain an instruction for installing the first operating system; or alternatively, the first and second heat exchangers may be,
If the electronic device is detected to obtain the migration instruction from the target device, determining to obtain an instruction for installing a first operating system, wherein the target device is installed with the first operating system.
2. The method of claim 1, wherein the determining the current state of the target setting item comprises:
acquiring a selected state of a target setting item in a basic input/output system of electronic equipment, and determining the current state of the target setting item based on the selected state; or alternatively, the first and second heat exchangers may be,
And obtaining a current state value of a target setting item in a basic input and output system of the electronic equipment, and determining the current state of the target setting item based on the current state value.
3. The method of claim 1, wherein upon outputting a prompt that the first operating system cannot be installed, outputting a prompt to switch the target setting item from the second state to the first state; or alternatively, the first and second heat exchangers may be,
And outputting a prompt for switching the target setting item from the second state to the first state after outputting the prompt that the first operating system cannot be installed.
4. The method of claim 1, wherein the performing the operation of installing the first operating system after determining that the target setting item is switched from the second state to the first state comprises:
After determining that the target setting item is switched from the second state to the first state, clearing a target variable of a target storage location in the electronic device to perform an operation of installing the first operating system, wherein the target variable can reject the installation of the first operating system.
5. The method of claim 4, wherein the determining that the target setting item is to be switched from the second state to the first state comprises:
If the current state value of the target setting item in the basic input and output system of the electronic equipment is detected to be changed from a first value to a second value, determining that the target setting item is switched from the second state to the first state; or alternatively, the first and second heat exchangers may be,
And if the cursor selection state in the basic input and output system of the electronic device is detected to move from the first target setting item to the second target setting item or to switch from the first position to the second position of the target setting item, determining that the target setting item is switched from the second state to the first state.
6. The method of claim 4 or 5, wherein the purging the target variable of the target storage location in the electronic device comprises:
Receiving a clearing instruction; responding to the clearing instruction, and clearing or hiding a target variable of the target storage position; or alternatively, the first and second heat exchangers may be,
Acquiring a mapping relation between a state value of a target setting item and a storage position; the mapping relation at least comprises a corresponding relation between a first numerical value and a corresponding first storage position and a corresponding relation between a second numerical value and a corresponding second storage position; determining the second storage position from the mapping relation; setting the target storage location to the second storage location; or alternatively, the first and second heat exchangers may be,
Acquiring target storage content of the target storage position; determining the target variable in the target storage content; and deleting the target variable.
7. A method according to claim 3, wherein after the outputting of the prompt to switch the target setting item from the second state to the first state, the method further comprises:
Receiving a response message for the prompt to switch the target setting item from the second state to the first state;
and when the received response message is to adjust the target setting item to the first state, setting the target setting item to the first state.
8. The method of claim 1, wherein the target variable is generated when the electronic device installs a second operating system different from the first operating system, comprising:
Generating the target variable when the second operating system is installed;
and storing the target variable in a storage space where a system starting program is located.
9. A mounting device, comprising:
A determining module for determining a current state of the target setting item if an instruction for installing the first operating system is obtained;
an execution module configured to execute an operation of installing the first operating system if the target setting item is in a first state; or alternatively, the first and second heat exchangers may be,
Outputting a prompt that the first operating system cannot be installed if the target setting item is in a second state, so as to execute an operation of installing the first operating system after determining that the target setting item is switched from the second state to the first state;
The target setting item can adjust the state of a target variable in the electronic equipment, wherein the target variable is generated when the electronic equipment installs a second operating system different from the first operating system, and the target variable can influence the installation of the first operating system;
The determining module is further configured to determine to obtain an instruction for installing a first operating system if an input for controlling an electronic device to update or upgrade from the second operating system to the first operating system is detected; or if the boot program of the basic input output system of the electronic device is detected to load the first operating system file, determining to obtain an instruction for installing the first operating system; or if the electronic device is detected to obtain the migration instruction from the target device, determining to obtain an instruction for installing a first operating system, wherein the target device is installed with the first operating system.
CN202110221028.8A 2021-02-26 2021-02-26 Installation method, installation device, installation equipment and computer readable storage medium Active CN112732284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110221028.8A CN112732284B (en) 2021-02-26 2021-02-26 Installation method, installation device, installation equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110221028.8A CN112732284B (en) 2021-02-26 2021-02-26 Installation method, installation device, installation equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112732284A CN112732284A (en) 2021-04-30
CN112732284B true CN112732284B (en) 2024-06-18

Family

ID=75595555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110221028.8A Active CN112732284B (en) 2021-02-26 2021-02-26 Installation method, installation device, installation equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112732284B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810430A (en) * 2012-11-13 2014-05-21 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019678B (en) * 2019-05-31 2021-10-08 青岛海信移动通信技术股份有限公司 Terminal, processing method and computer storage medium
KR20210002979A (en) * 2019-07-01 2021-01-11 라인플러스 주식회사 Method and apparatus for processing notification using notification preset
CN110888688B (en) * 2019-11-21 2024-04-19 维沃移动通信有限公司 Setting restoration method of electronic equipment and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810430A (en) * 2012-11-13 2014-05-21 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment

Also Published As

Publication number Publication date
CN112732284A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN105867947B (en) Data processing method and device after preset application program updating
KR101760778B1 (en) Computer system and method for updating program therein
US8560822B1 (en) Pre-boot operating environment
CN107577472B (en) Software installation method and device and computer readable storage medium
US20070112899A1 (en) Method and apparatus for fast boot of an operating system
JP6293657B2 (en) Dynamic redirection of boot behavior to other operating systems
CA2380762A1 (en) Internet-enabled device provisioning, upgrade and recovery mechanism
US20060174099A1 (en) Embedded system, automatic loading system, and method capable of automatically loading a root file system
CN104156235A (en) Browser plugin and/or extension updating method and device
US7080244B2 (en) System and method for configuring hardware devices using a menu for platforms with EFI and legacy option-ROMs
CN106201602B (en) Label providing method, label obtaining method, server and electronic equipment
KR101615646B1 (en) Computer system, control method thereof and recording medium storing computer program thereof
JP4961019B2 (en) How to use global variables for PEI modules in EFI based firmware
CN113672296B (en) Custom application switching method, switching device, electronic equipment and storage medium
CN112732284B (en) Installation method, installation device, installation equipment and computer readable storage medium
CN106470351B (en) Page display method and page display device
CN106155808B (en) Method and device for managing computer system resources
CN103530155A (en) Method and device for installing application program
CN107911816B (en) Starting method for multi-mode IoT device, multi-mode IoT device and storage medium
JP2024521862A (en) Program control method, device, electronic device and readable storage medium
US20150143093A1 (en) Plurality of interface files usable for access to bios
US20060230190A1 (en) Method and apparatus for executing application in system having NAND flash memory
US8549273B1 (en) Method and apparatus to present a unique background image on a personal computer display when the computer system is booted from an external drive
CN114895934A (en) Program management method and device, equipment and storage medium
CN111026542B (en) Method and device for displaying overlay icons of application program

Legal Events

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