EP4258103A1 - Installation method needless of multiple requests for permissions, electronic device, and computer readable storage medium - Google Patents
Installation method needless of multiple requests for permissions, electronic device, and computer readable storage medium Download PDFInfo
- Publication number
- EP4258103A1 EP4258103A1 EP23166890.6A EP23166890A EP4258103A1 EP 4258103 A1 EP4258103 A1 EP 4258103A1 EP 23166890 A EP23166890 A EP 23166890A EP 4258103 A1 EP4258103 A1 EP 4258103A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- installation
- command
- program
- startup program
- permissions
- 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
Links
- 238000009434 installation Methods 0.000 title claims abstract description 69
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000013515 script Methods 0.000 claims description 19
- 230000006870 function Effects 0.000 claims description 18
- 230000015572 biosynthetic process Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 description 26
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 4
- 238000011900 installation process Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 230000014509 gene expression Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000002730 additional effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/57—Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F21/572—Secure firmware programming, e.g. of basic input output system [BIOS]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/03—Indexing scheme relating to G06F21/50, monitoring users, programs or devices to maintain the integrity of platforms
- G06F2221/033—Test or assess software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2141—Access rights, e.g. capability lists, access control lists, access tables, access matrices
Definitions
- the present disclosure relates to the technical field of program installation and, more particularly, to an installation method needless of multiple requests for permissions, an electronic device, and a computer readable storage medium.
- a system window may need to pop up multiple times to request a user to input login passwords, which increases operation complexity and reduces user experience.
- the disclosure provides an installation method needless of multiple requests for permissions.
- the method includes executing a first command after a first startup program is run under a non-administrator permission, the first command being configured to run a second startup program with an administrator permission; and starting at least one installation module through a second command after the second startup program is run, the second command being configured to execute startup programs with the administrator permission.
- the installation module includes at least one function selected from implementing a driver installation of an image formation device, configuring a wireless network of the image formation device, and completing an addition of the image formation device.
- the installation method is used in a MacOS system.
- the first command and the second command are API or script commands in a standard library.
- an interface of the first startup program is hidden after the second startup program is run; and/or an interface of the second startup program is hidden after the installation module is run.
- the disclosure provides another installation method needless of multiple requests for permissions.
- the method includes repeatedly executing a third command until an installation is completed after a first startup program is run under a non-administrator permission, the third command being configured to execute an installation command in a file in a preset path with an administrator permission; and each time before the first startup program executes the third command, clearing the file and writing an installation command corresponding to a next module to be installed into the file through a first writing program.
- the installation module includes at least one function selected from implementing a driver installation of an image formation device, configuring a wireless network of the image formation device, and completing an addition of the image formation device.
- the installation method is used in a MacOS system.
- the third command is API or script commands in a standard library.
- the disclosure provides an electronic device.
- the electronic device includes a memory configured to store a computer program; and a processor communicatively coupled to the memory, and when the computer program is being executed, configured to perform an installation method needless of multiple requests for permissions according to the first aspect or the second aspect of the disclosure.
- the disclosure provides a non-transitory computer readable storage medium that contain a computer program.
- the computer program When being executed, the computer program causes a processor to perform the disclosed installation methods needless of multiple requests for permissions.
- the purpose of the present disclosure is to provide a method in which a user is not required to input system login password multiple times.
- a window will pop up if the application program needs to modify system files.
- An interface of a pop-up window is shown in FIG. 1 .
- an interaction interface will pop up in the system requesting the user to input the password, otherwise the installation cannot continue.
- a printer service program is being installed, a driver module, a network module, and a device addition module may all request for permissions from the system. At this time, multiple pop-up windows will appear successively, which reduces user experience.
- an installation method needless of multiple requests for permissions is provided. As shown in FIG. 2 , the method includes processes S101 and S102.
- process S101 a first command is executed after a first startup program is run under non-administrator permission.
- the first startup program may be a program for receiving user interaction. For example, the user may run the first startup program by clicking an icon of the first startup program, by inputting an operation instruction in command lines, or by using a shortcut key. It can be considered that the first startup program is an interface for the user to implement an installation process.
- the first startup program itself does not contain installation files.
- the first command is configured to run a second startup program with administrator permission.
- the first command may be a function provided in Apple standard library for obtaining permission
- an input parameter of the function may be a path where the second startup program is located.
- API functions configured to run programs with the administrator permission or execute commands with the administrator permission include some functions that were once commonly used but then officially recommended to be deprecated as the library is updated, specific function names are not provided in the present disclosure in order to prevent public from accidentally choosing deprecated functions.
- keywords such as permission to search in technical manuals such as developer manuals, and select currently recommended functions for practical use.
- a second command starts at least one installation module after the second startup program is run.
- FIG. 3 A schematic diagram of an example is shown in FIG. 3 , where a process with PID of 59439 is the first startup program. It can be seen that the first startup program is run under the non-administrator permission (the user name is the name of a user with normal permission), and a process with PID of 44007 is the second startup program. It can be seen that the second startup program has root permission after running with the first command, and the second startup program always has the root permission during the entire installation process, i.e., it is not required to input the password repeatedly no matter how many root commands that are input, followed by the second startup program. For different installation modules, the specific execution instructions may be different.
- names of the installation modules are different, or modification operations performed are different.
- number of the installation modules is not less than 2, it is satisfied that each installation module needs to request for permission, and the permission that each installation module needs to request for are different from each other.
- the second command is configured to execute startup programs with the administrator permission.
- startup instructions can be executed through API provided in the Apple standard library or shell script commands.
- those skilled in the art can use relevant keywords to search in the library to select the most recommended functions or scripts for use, and the specific function names are not provided in the present disclosure.
- a difference between the first command and the second command may be that input parameters of the first command are executable files (such as the second startup program), while the second command may be a specific operation of adding, deleting, modifying, or checking.
- FIG. 4 A module signal relationship diagram of this example embodiment is shown in FIG. 4 . It can be seen that the first startup program runs the second startup program through the first command, and the second startup program starts multiple installation modules through the second command.
- FIG. 5 A flow chart of an application example according to this example embodiment is shown in FIG. 5 .
- the first startup program is run. At this time, the first command is executed immediately.
- the system pops up a user name/password window for the user to input.
- the second startup program is run.
- command 1 with the root permission i.e., a statement in the second command
- multiple commands with the root permission are executed by the second startup program.
- the window shown in FIG. 1 may not pop up, i.e., it is only required to request for permission once in the whole process in this example embodiment.
- the present disclosure it is found that a combination of the first command and the second command can make the second startup program always be with the root permission, and there is no need to repeatedly request for permission.
- the first startup program, the second startup program, the first command, and the second command are cleverly designed in the present disclosure to make the second startup program have the root permission when it is run, so that it is no longer needed to input the password when the second startup program running multiple installation packages, which greatly simplifies operation process.
- the installation module in the above process S102 has at least one function selected from implementing a driver installation of an image formation device, configuring a wireless network of the image formation device, and completing an addition of the image formation device.
- the installation module includes at least two functions, by using the method consistent with the present disclosure, a one-click driver installation of the image formation device (such as a printer) can be achieved needless of multiple requests for permissions, and at least two operations of the driver installation, network configuration, and device addition of the image formation device can be completed, which is convenient for the user to quickly use the image formation device from a computer.
- the second command starts at least one installation module after the second startup program is run, which refers to that, for example, an installation of a network configuration program may be started first, then the driver installation of the image formation device is started, and then an installation of adding the image formation device to the computer operating system is started.
- Order of the three installation processes may not be limited. Therefore, through the process S102, it is no longer needed to input the password when running multiple installation modules that are wanted to run or running multiple installation packages with the root permission, which greatly simplifies the operation process and achieves an effect of completing all installation operations after the password is input once with one key.
- an interface of the first startup program is hidden after the second startup program is run, and/or an interface of the second startup program is hidden after the installation module is run. Since the first startup program and the second startup program do not provide a standard installation interface, and only play a function of calling commands, if the first startup program and the second startup program are always displayed, user's observation of installation progress may be interfered. Therefore, the first startup program can be hidden so that only one program is displayed on a system interface at a time.
- an installation method needless of multiple requests for permissions is provided. As shown in FIG. 6 , the method includes processes S201 and S202.
- a third command is repeatedly executed until the installation is completed after the first startup program is run under the non-administrator permission.
- the first startup program may be a program for receiving user interaction. For example, the user may run the first startup program by clicking the icon of the first startup program, by inputting the operation instruction in command lines, or by using the shortcut key.
- the third command is configured to execute installation commands in files in a preset path with the administrator permission, and is also configured to make a process of the third command run with the administrator permission.
- the startup instructions can be executed through API provided in the Apple standard library or shell script commands.
- those skilled in the art can use relevant keywords to search in the library to select the most recommended functions or scripts for use, and the specific function names are not provided in the present disclosure.
- a difference between the third command and the first command and the second command is that an input parameter of the third command is a path, which is configured to execute a script in the path.
- a password input window may not pop up repeatedly with repeated execution of the same command.
- the first startup program repeatedly executes the third command to avoid multiple requests for permissions. Meanwhile, in this example embodiment, it is also needed to realize an installation process of different installation modules by a same command, which can be completed by means of process S202.
- a function defined in the first startup program may clear the file, and write an installation command corresponding to the next module to be installed into the file.
- the file is empty in an initial state.
- the third command writes a command for running a first installation module into the empty file.
- a first writing program clears the file, and then write a command for running a second installation module.
- the first writing program clears the file, and then write a command for running a third installation module. The process is completed until all the installation modules are run.
- the idea is to repeatedly execute the same script command so that the password input window may not pop up multiple times. Meanwhile, in order to actually have an effect of performing different operations, another writing module is used to continuously modify content of the script to achieve this goal.
- FIG. 7 A module signal relationship diagram of this example embodiment is shown in FIG. 7 . It can be seen that the first startup program executes multiple installation modules by modifying a script file again and again.
- FIG. 8 A flow chart of an application example according to this example embodiment is shown in FIG. 8 .
- the first startup program is run, and then the third command is executed immediately.
- S602 an empty script file is created.
- command 1 is written into the script file.
- S604 the script file is executed with root permission.
- S605 a window for inputting the user name/password pops up, and after the user completes inputting, the command 1 is executed.
- the script file is cleared and command 2 is written into the script file.
- the script file is executed with root permission. This process is repeated until a writing process S608 and an execution process S609 corresponding to the last command are completed. From S606 to S609, the window shown in FIG. 1 may not pop up again, i.e., it is only required to request for permission once in the whole process in this example embodiment of the present disclosure.
- the present disclosure also provides an electronic device, which includes one or more processors, a memory, and one or more computer programs stored in the memory.
- the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform some or all of the processes in the method consistent with the present disclosure.
- the present disclosure also provides a computer storage medium, where the computer storage medium may store a program, and the program may include some or all of the processes in the method consistent with the present disclosure when executed.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
- the present disclosure also provides a computer program product, and the computer program product includes executable instructions that, when executed on a computer, cause the computer to perform some or all of the processes in the method consistent with the present disclosure.
- “at least one” refers to one or more, and “multiple” refers to two or more.
- the term “and/or” is an association relationship to describe related objects, indicating that there can be three kinds of relationships. For example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
- the character “/” generally indicates that the related objects are in an "or” relationship. Expressions such as “at least one of the following” refer to any combination of items, including any combination of single or plural items.
- At least one of a, b, and c can represent a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Stored Programmes (AREA)
Abstract
Description
- The present disclosure relates to the technical field of program installation and, more particularly, to an installation method needless of multiple requests for permissions, an electronic device, and a computer readable storage medium.
- In some operating systems, when different types of functional modules are to be installed in one program installation process, a system window may need to pop up multiple times to request a user to input login passwords, which increases operation complexity and reduces user experience.
- In a first aspect, the disclosure provides an installation method needless of multiple requests for permissions. The method includes executing a first command after a first startup program is run under a non-administrator permission, the first command being configured to run a second startup program with an administrator permission; and starting at least one installation module through a second command after the second startup program is run, the second command being configured to execute startup programs with the administrator permission.
- Optionally, the installation module includes at least one function selected from implementing a driver installation of an image formation device, configuring a wireless network of the image formation device, and completing an addition of the image formation device.
- Optionally, the installation method is used in a MacOS system.
- Optionally, the first command and the second command are API or script commands in a standard library.
- Optionally, an interface of the first startup program is hidden after the second startup program is run; and/or an interface of the second startup program is hidden after the installation module is run.
- In a second aspect, the disclosure provides another installation method needless of multiple requests for permissions. The method includes repeatedly executing a third command until an installation is completed after a first startup program is run under a non-administrator permission, the third command being configured to execute an installation command in a file in a preset path with an administrator permission; and each time before the first startup program executes the third command, clearing the file and writing an installation command corresponding to a next module to be installed into the file through a first writing program.
- Optionally, the installation module includes at least one function selected from implementing a driver installation of an image formation device, configuring a wireless network of the image formation device, and completing an addition of the image formation device.
- Optionally, the installation method is used in a MacOS system.
- Optionally, the third command is API or script commands in a standard library.
- In a third aspect, the disclosure provides an electronic device. The electronic device includes a memory configured to store a computer program; and a processor communicatively coupled to the memory, and when the computer program is being executed, configured to perform an installation method needless of multiple requests for permissions according to the first aspect or the second aspect of the disclosure.
- In a fourth aspect, the disclosure provides a non-transitory computer readable storage medium that contain a computer program. When being executed, the computer program causes a processor to perform the disclosed installation methods needless of multiple requests for permissions.
- The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate the embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure.
-
FIG. 1 illustrates a schematic diagram of a pop-up window when a permission is requested. -
FIG. 2 illustrates a flow chart of an example embodiment of the present disclosure. -
FIG. 3 illustrates an activity monitor interface diagram after a second startup program runs according to an embodiment of the present disclosure. -
FIG. 4 illustrates a module signal relationship diagram of an example embodiment of the present disclosure. -
FIG. 5 illustrates a flow chart of an application example according to an embodiment of the present disclosure. -
FIG. 6 illustrates a flow chart of another example embodiment of the present disclosure. -
FIG. 7 illustrates a module signal relationship diagram of another example embodiment of the present disclosure. -
FIG. 8 illustrates a flow chart of an application example according to another embodiment of the present disclosure. - Various exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. It should be noted that relative arrangements of components and processes, numerical expressions, and numerical values set forth in the embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
- The following description of at least one exemplary embodiment is only illustrative in nature and in no way taken as any limitation of the present disclosure, and application or use thereof. Techniques, methods, and devices known to those of ordinary skill in the art may not be discussed in detail, but where appropriate, such techniques, methods, and devices should be considered a part of this specification.
- In all examples shown and discussed herein, any specific values should be construed as exemplary only, and not as limitations. Therefore, other instances of the exemplary embodiments may have different values.
- It should be noted that similar numbers and letters refer to similar items in the following figures. Therefore, once an item is defined in one figure, it does not require further discussion in subsequent figures.
- The purpose of the present disclosure is to provide a method in which a user is not required to input system login password multiple times. For example, in some typical Unix systems (such as Ubuntu or MacOS system), when an application program is being installed, a window will pop up if the application program needs to modify system files. An interface of a pop-up window is shown in
FIG. 1 . When a program to be installed has multiple functional modules that need to modify the system files, before each module is installed, an interaction interface will pop up in the system requesting the user to input the password, otherwise the installation cannot continue. For example, when a printer service program is being installed, a driver module, a network module, and a device addition module may all request for permissions from the system. At this time, multiple pop-up windows will appear successively, which reduces user experience. - There are some methods to conveniently skip password input. For example, website of developer.apple.com provides a way to write user name and password with plain text into a command to execute, or write the user name and the password into a script to read. But these methods will undoubtedly cause safety hazards, so a safe and convenient method is urgently needed to solve the above problems.
- Two example embodiments provided by the present disclosure to solve the above problems are described in detail below.
- In an example embodiment, an installation method needless of multiple requests for permissions is provided. As shown in
FIG. 2 , the method includes processes S101 and S102. - In process S101, a first command is executed after a first startup program is run under non-administrator permission.
- The first startup program may be a program for receiving user interaction. For example, the user may run the first startup program by clicking an icon of the first startup program, by inputting an operation instruction in command lines, or by using a shortcut key. It can be considered that the first startup program is an interface for the user to implement an installation process. The first startup program itself does not contain installation files.
- The first command is configured to run a second startup program with administrator permission. For example, in the MacOS system, the first command may be a function provided in Apple standard library for obtaining permission, and an input parameter of the function may be a path where the second startup program is located. Considering that API functions configured to run programs with the administrator permission or execute commands with the administrator permission include some functions that were once commonly used but then officially recommended to be deprecated as the library is updated, specific function names are not provided in the present disclosure in order to prevent public from accidentally choosing deprecated functions. Those skilled in the art can use keywords such as permission to search in technical manuals such as developer manuals, and select currently recommended functions for practical use.
- In process S102, a second command starts at least one installation module after the second startup program is run.
- Since the second startup program is run with the administrator permission at this time, the second startup program may not repeatedly request permissions when using root commands again. A schematic diagram of an example is shown in
FIG. 3 , where a process with PID of 59439 is the first startup program. It can be seen that the first startup program is run under the non-administrator permission (the user name is the name of a user with normal permission), and a process with PID of 44007 is the second startup program. It can be seen that the second startup program has root permission after running with the first command, and the second startup program always has the root permission during the entire installation process, i.e., it is not required to input the password repeatedly no matter how many root commands that are input, followed by the second startup program. For different installation modules, the specific execution instructions may be different. For example, names of the installation modules are different, or modification operations performed are different. In some embodiments, when number of the installation modules is not less than 2, it is satisfied that each installation module needs to request for permission, and the permission that each installation module needs to request for are different from each other. - The second command is configured to execute startup programs with the administrator permission. For example, in the MacOS system, startup instructions can be executed through API provided in the Apple standard library or shell script commands. Similarly, those skilled in the art can use relevant keywords to search in the library to select the most recommended functions or scripts for use, and the specific function names are not provided in the present disclosure.
- In some embodiments, a difference between the first command and the second command may be that input parameters of the first command are executable files (such as the second startup program), while the second command may be a specific operation of adding, deleting, modifying, or checking.
- A module signal relationship diagram of this example embodiment is shown in
FIG. 4 . It can be seen that the first startup program runs the second startup program through the first command, and the second startup program starts multiple installation modules through the second command. - A flow chart of an application example according to this example embodiment is shown in
FIG. 5 . In S501, the first startup program is run. At this time, the first command is executed immediately. In S502, the system pops up a user name/password window for the user to input. In S503, the second startup program is run. In S504,command 1 with the root permission (i.e., a statement in the second command) is executed. In the subsequent S505 to S507, multiple commands with the root permission are executed by the second startup program. During the execution processes of S504-S507, the window shown inFIG. 1 may not pop up, i.e., it is only required to request for permission once in the whole process in this example embodiment. - It should be noted that this example embodiment cannot be deduced from the existing technical manuals and usage specifications of command statements. On the contrary, completely opposite teachings are given in the technical manuals. On a page of "Technical Note TN2065 do shell script in AppleScript" on the website of developer.apple.com, it is mentioned that repeated requests for permissions are unnecessary and provide no additional benefit, and developers are urged to avoid such use. To a certain extent, this page can represent general understanding of those skilled in the art, i.e., it is only needed to choose one of the commands to request for permission, and using them together may only have the same effect without additional effects. Therefore, those skilled in the art have no incentive to reuse the commands. In the present disclosure, it is found that a combination of the first command and the second command can make the second startup program always be with the root permission, and there is no need to repeatedly request for permission. The first startup program, the second startup program, the first command, and the second command are cleverly designed in the present disclosure to make the second startup program have the root permission when it is run, so that it is no longer needed to input the password when the second startup program running multiple installation packages, which greatly simplifies operation process.
- In some embodiments, the installation module in the above process S102 has at least one function selected from implementing a driver installation of an image formation device, configuring a wireless network of the image formation device, and completing an addition of the image formation device. When the installation module includes at least two functions, by using the method consistent with the present disclosure, a one-click driver installation of the image formation device (such as a printer) can be achieved needless of multiple requests for permissions, and at least two operations of the driver installation, network configuration, and device addition of the image formation device can be completed, which is convenient for the user to quickly use the image formation device from a computer.
- In some embodiments, in the above process S102, the second command starts at least one installation module after the second startup program is run, which refers to that, for example, an installation of a network configuration program may be started first, then the driver installation of the image formation device is started, and then an installation of adding the image formation device to the computer operating system is started. Order of the three installation processes may not be limited. Therefore, through the process S102, it is no longer needed to input the password when running multiple installation modules that are wanted to run or running multiple installation packages with the root permission, which greatly simplifies the operation process and achieves an effect of completing all installation operations after the password is input once with one key.
- Further, in order to make an installation interface simple and unobtrusive, in this example embodiment, an interface of the first startup program is hidden after the second startup program is run, and/or an interface of the second startup program is hidden after the installation module is run. Since the first startup program and the second startup program do not provide a standard installation interface, and only play a function of calling commands, if the first startup program and the second startup program are always displayed, user's observation of installation progress may be interfered. Therefore, the first startup program can be hidden so that only one program is displayed on a system interface at a time.
- In another example embodiment, an installation method needless of multiple requests for permissions is provided. As shown in
FIG. 6 , the method includes processes S201 and S202. - In process S201, a third command is repeatedly executed until the installation is completed after the first startup program is run under the non-administrator permission. The first startup program may be a program for receiving user interaction. For example, the user may run the first startup program by clicking the icon of the first startup program, by inputting the operation instruction in command lines, or by using the shortcut key.
- The third command is configured to execute installation commands in files in a preset path with the administrator permission, and is also configured to make a process of the third command run with the administrator permission. For example, in the MacOS system, the startup instructions can be executed through API provided in the Apple standard library or shell script commands. Similarly, those skilled in the art can use relevant keywords to search in the library to select the most recommended functions or scripts for use, and the specific function names are not provided in the present disclosure.
- A difference between the third command and the first command and the second command is that an input parameter of the third command is a path, which is configured to execute a script in the path. In this example embodiment, after the permission is obtained, a password input window may not pop up repeatedly with repeated execution of the same command. Based on this, in this example embodiment, the first startup program repeatedly executes the third command to avoid multiple requests for permissions. Meanwhile, in this example embodiment, it is also needed to realize an installation process of different installation modules by a same command, which can be completed by means of process S202.
- In process S202, each time before the first startup program executes the third command, a function defined in the first startup program may clear the file, and write an installation command corresponding to the next module to be installed into the file. For example, the file is empty in an initial state. Before the third command is executed for the first time, the third command writes a command for running a first installation module into the empty file. After the installation is completed, a first writing program clears the file, and then write a command for running a second installation module. After the installation is completed, the first writing program clears the file, and then write a command for running a third installation module. The process is completed until all the installation modules are run.
- That is, in this example embodiment, the idea is to repeatedly execute the same script command so that the password input window may not pop up multiple times. Meanwhile, in order to actually have an effect of performing different operations, another writing module is used to continuously modify content of the script to achieve this goal.
- A module signal relationship diagram of this example embodiment is shown in
FIG. 7 . It can be seen that the first startup program executes multiple installation modules by modifying a script file again and again. - A flow chart of an application example according to this example embodiment is shown in
FIG. 8 . In S601, the first startup program is run, and then the third command is executed immediately. In S602, an empty script file is created. In S603,command 1 is written into the script file. In S604, the script file is executed with root permission. In S605, a window for inputting the user name/password pops up, and after the user completes inputting, thecommand 1 is executed. In S606, the script file is cleared andcommand 2 is written into the script file. In S607, the script file is executed with root permission. This process is repeated until a writing process S608 and an execution process S609 corresponding to the last command are completed. From S606 to S609, the window shown inFIG. 1 may not pop up again, i.e., it is only required to request for permission once in the whole process in this example embodiment of the present disclosure. - It should be noted that this example embodiment is not easy to be deduced from the existing technical manuals and usage specifications of command statements. The technical application examples provided by developer.apple.com do not give any technical enlightenment on how to use statement features to make multiple programs with different names run without repeatedly requesting for permissions.
- In some implementations, the present disclosure also provides an electronic device, which includes one or more processors, a memory, and one or more computer programs stored in the memory. The one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform some or all of the processes in the method consistent with the present disclosure.
- In some implementations, the present disclosure also provides a computer storage medium, where the computer storage medium may store a program, and the program may include some or all of the processes in the method consistent with the present disclosure when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
- In some implementations, the present disclosure also provides a computer program product, and the computer program product includes executable instructions that, when executed on a computer, cause the computer to perform some or all of the processes in the method consistent with the present disclosure.
- In the embodiments of the present disclosure, "at least one" refers to one or more, and "multiple" refers to two or more. The term "and/or" is an association relationship to describe related objects, indicating that there can be three kinds of relationships. For example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship. Expressions such as "at least one of the following" refer to any combination of items, including any combination of single or plural items. For example, at least one of a, b, and c can represent a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple.
- Although some embodiments of the present disclosure have been described in detail through examples, those skilled in the art should understand that the above examples are for illustration only and not intended to limit the scope of the present disclosure. Those skilled in the art should understand that modifications can be made to the above embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims (6)
- An installation method needless of multiple requests for permissions comprising:repeatedly executing a third command until an installation is completed after a first startup program is run under a non-administrator permission, the third command being configured to execute an installation command in a file in a preset path with an administrator permission; andeach time before the first startup program executes the third command, clearing the file and writing an installation command corresponding to a next module to be installed into the file through a first writing program.
- The method according to claim 1, wherein the installation module includes at least one function selected from implementing a driver installation of an image formation device, configuring a wireless network of the image formation device, and completing an addition of the image formation device.
- The method according to claim 1, wherein the installation method is used in a MacOS system.
- The method according to claim 3, wherein the third command is API or script commands in a standard library.
- An electronic device comprising:a memory configured to store a computer program; anda processor communicatively coupled to the memory, and when the computer program is being executed, configured to perform an installation method needless of multiple requests for permissions according to any one of claims 1-4.
- A non-transitory computer readable storage medium containing a computer program, that when being executed, causes a processor to perform the installation method needless of multiple requests for permissions according to any one of claims 1-4.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210369865 | 2022-04-08 | ||
CN202211288574.4A CN116088870A (en) | 2022-04-08 | 2022-10-20 | Installation method without multiple request rights, electronic device and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
EP4258103A1 true EP4258103A1 (en) | 2023-10-11 |
Family
ID=85980793
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP23166890.6A Pending EP4258103A1 (en) | 2022-04-08 | 2023-04-06 | Installation method needless of multiple requests for permissions, electronic device, and computer readable storage medium |
Country Status (2)
Country | Link |
---|---|
US (1) | US20230325167A1 (en) |
EP (1) | EP4258103A1 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100095294A1 (en) * | 2007-06-12 | 2010-04-15 | Canon Kabushiki Kaisha | Information processing method and program |
-
2023
- 2023-04-06 EP EP23166890.6A patent/EP4258103A1/en active Pending
- 2023-04-07 US US18/297,265 patent/US20230325167A1/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100095294A1 (en) * | 2007-06-12 | 2010-04-15 | Canon Kabushiki Kaisha | Information processing method and program |
Also Published As
Publication number | Publication date |
---|---|
US20230325167A1 (en) | 2023-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101790190B1 (en) | Application scenario identification method, power consumption management method, apparatus, and terminal device | |
US9298474B2 (en) | System and method for managing a floating window | |
JP6151256B2 (en) | Computing device, operating method and computer program | |
US7984115B2 (en) | Extensible application platform | |
US8904012B2 (en) | Client-server input method editor architecture | |
US9069432B2 (en) | Copy and paste buffer | |
US10776852B2 (en) | Contextual solicitation in a starter application | |
US20090193363A1 (en) | Representing Multiple Computing Resources Within A Predefined Region Of A Graphical User Interface For Displaying A Single Icon | |
US9038019B2 (en) | Paige control for enterprise mobile applications | |
CN107358096B (en) | File virus searching and killing method and system | |
CA2791743C (en) | Private web browsing using encrytion | |
US20150269194A1 (en) | Interactive user interface for metadata builder | |
WO2014011711A2 (en) | Extensible content focus mode | |
US10241838B2 (en) | Domain based resource isolation in multi-core systems | |
EP4258103A1 (en) | Installation method needless of multiple requests for permissions, electronic device, and computer readable storage medium | |
EP3506136B1 (en) | Detecting stack cookie utilization in a binary software component using binary static analysis | |
GB2619793A (en) | Installation method needless of multiple requests for permissions, electronic device, and computer readable storage medium | |
US10248534B2 (en) | Template-based methodology for validating hardware features | |
US20140380231A1 (en) | Systems and methods for protecting a user interface component from accidental operation | |
RU2815924C1 (en) | Method of installing programs which does not require multiple requests for permission, electronic device and computer-readable data medium | |
CN104572199A (en) | Method and device for inhibiting starting items from starting | |
KR20190112491A (en) | System and method for converting application | |
US20210240595A1 (en) | Configuration-based code construct for restriction checks in component of a web application | |
Halsey et al. | Using Scripting Tools for Troubleshooting | |
KR20160099173A (en) | Monitoring method and monitoring device of executable program's action, Computer program for the same, Recording medium storing computer program for the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION HAS BEEN PUBLISHED |
|
AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC ME MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE |
|
17P | Request for examination filed |
Effective date: 20240320 |
|
RBV | Designated contracting states (corrected) |
Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC ME MK MT NL NO PL PT RO RS SE SI SK SM TR |