CN114428622A - Software installation method and device - Google Patents

Software installation method and device Download PDF

Info

Publication number
CN114428622A
CN114428622A CN202210023641.3A CN202210023641A CN114428622A CN 114428622 A CN114428622 A CN 114428622A CN 202210023641 A CN202210023641 A CN 202210023641A CN 114428622 A CN114428622 A CN 114428622A
Authority
CN
China
Prior art keywords
installation
file
script file
target
target script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210023641.3A
Other languages
Chinese (zh)
Inventor
周琦超
黄治国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Manteia Data Technology Co ltd In Xiamen Area Of Fujian Pilot Free Trade Zone
Original Assignee
Manteia Data Technology Co ltd In Xiamen Area Of Fujian Pilot Free Trade Zone
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 Manteia Data Technology Co ltd In Xiamen Area Of Fujian Pilot Free Trade Zone filed Critical Manteia Data Technology Co ltd In Xiamen Area Of Fujian Pilot Free Trade Zone
Priority to CN202210023641.3A priority Critical patent/CN114428622A/en
Publication of CN114428622A publication Critical patent/CN114428622A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

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

Abstract

The application discloses a software installation method and device. Wherein, the method comprises the following steps: detecting a first trigger instruction for triggering installation operation; under the condition that the first trigger instruction is detected, calling a target script file through a development environment provided in an operating system; modifying an installation process of a file to be installed in the target script file, wherein the file to be installed comprises one of the following: installing package files and upgrading data; and executing the modified target script file to finish the installation of the file to be installed. The software package packaging method and the software package packaging device solve the technical problem of low software installation efficiency caused by the fact that the packaged software package cannot be modified again.

Description

Software installation method and device
Technical Field
The application relates to the field of software installation, in particular to a software installation method and device.
Background
The system environment that the user used is various, once the installation fails often needs the scene can directly debug the adaptation, and current software packaging tool all merges all files into an installation package, can't accomplish the scene and revise. The existing packaging tool is used for packaging the files into an installation package, only simple file and command operations are supported, and the software package packaged by the existing technology cannot be modified again. Meanwhile, the problems of field troubleshooting are inconvenient, and the debugging is inconvenient. If the installation package is large, all files must be packaged first before debugging can be performed, and the packaging process is time-consuming.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a software installation method and a software installation device, which at least solve the technical problem of low software installation efficiency caused by the fact that a packaged software package cannot be modified again.
According to an aspect of an embodiment of the present application, there is provided a software installation method including: detecting a first trigger instruction for triggering installation operation; under the condition that the first trigger instruction is detected, calling a target script file through a development environment provided in an operating system; modifying an installation process of a file to be installed in the target script file, wherein the file to be installed comprises one of the following: installing package files and upgrading data; and executing the modified target script file to finish the installation of the file to be installed.
Optionally, detecting a first trigger instruction for triggering an installation operation includes: displaying the installation interface; and detecting the trigger operation of a target object on a target control in the installation interface, and generating the first trigger instruction when the target control is triggered.
Optionally, modifying an installation process of a file to be installed in the target script file includes: detecting a second trigger instruction for triggering modification of the target script file; and modifying the installation flow of the file to be installed in the target script file under the condition of detecting the second trigger instruction.
Optionally, modifying an installation process of a file to be installed in the target script file includes: under the condition that the operating environment required by the file to be installed does not exist in the target equipment, adding an installation flow of the operating environment required by downloading the file to be installed in the installation flow; under the condition that the initial installation path of the file to be installed cannot be identified, adding an installation flow for changing the initial installation path in the installation flow;
optionally, in a case that the running environment required by the file to be installed does not exist in the target device, adding an installation process of the running environment required by downloading the file to be installed in the installation process, including: modifying the target script file to add a calling environment detection tool in the installation process; determining the operating environment required by the file to be installed by using the environment detection tool; and downloading the running environment required by the file to be installed.
Optionally, when the initial installation path of the file to be installed cannot be identified, adding an installation procedure for changing the initial installation path in the installation procedure, including: modifying the target script file to modify the initial installation path; and executing the modified target script file to finish the installation of the file to be installed.
Optionally, after completing the installation, the method further comprises: and saving the installation process recording file.
Optionally, the method further comprises: upgrading the software by using the upgrading data in the file to be installed; modifying the target script file to call a data migration tool under the condition that a redundant configuration file exists after upgrading is completed; and clearing the redundant configuration file by adopting the data migration tool.
According to another aspect of the embodiments of the present application, there is also provided a software installation apparatus, including: the device comprises a detection module, a processing module and a control module, wherein the detection module is used for detecting a first trigger instruction for triggering installation operation; the calling module is used for calling a target script file through a development environment provided in an operating system under the condition that the first trigger instruction is detected; an execution module, configured to modify an installation process of a file to be installed in the target script file, where the file to be installed includes one of: installing package files and upgrading data; and the installation module is used for executing the modified target script file so as to finish the installation of the file to be installed.
According to another aspect of the embodiments of the present application, a non-volatile storage medium is further provided, where the non-volatile storage medium includes a stored program, and when the program runs, the device where the non-volatile storage medium is located is controlled to execute the software installation method.
In the embodiment of the application, a first trigger instruction for triggering installation operation is detected; under the condition that the first trigger instruction is detected, calling a target script file through a development environment provided in an operating system; modifying an installation process of a file to be installed in the target script file, wherein the file to be installed comprises one of the following: installing package files and upgrading data; and the target script file after modification is executed to complete the installation of the file to be installed, and the script file is called by utilizing the development environment of the operating system to modify the installation flow, so that the purpose of modifying the packaged installation file is achieved, the technical effect of improving the software installation efficiency is realized, and the technical problem of low software installation efficiency caused by the fact that the packaged software package cannot be modified again is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a block diagram of a hardware structure of an alternative computer terminal (or mobile device) for implementing a software installation method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an alternative software installation method according to an embodiment of the present application;
FIG. 3 is a schematic view of an alternative software installation tool operational interface in accordance with an embodiment of the present application;
FIG. 4 is a schematic diagram of the successful installation of an alternative software installation tool according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an alternative software installation apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of an alternative software installation flow according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Fig. 1 shows a hardware configuration block diagram of a computer terminal (or mobile device) for implementing the software installation method. As shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission module 106 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module or incorporated, in whole or in part, into any of the other elements in the computer terminal 10 (or mobile device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the software installation method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implementing the vulnerability detection method of the application program. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission module 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
In accordance with an embodiment of the present application, there is provided a software installation method embodiment, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 2 is a software installation method according to an embodiment of the present application, and as shown in fig. 2, the method includes the following steps:
step S202, detecting a first trigger instruction for triggering installation operation;
step S204, under the condition that the first trigger instruction is detected, calling a target script file through a development environment provided in an operating system;
step S206, modifying an installation process of a file to be installed in the target script file, where the file to be installed includes one of: installing package files and upgrading data;
and step S208, executing the modified target script file to finish the installation of the file to be installed.
Through the steps, the script file is called by utilizing the development environment in the operating system to modify the installation process, and the purpose of modifying the packaged files to be installed is achieved, so that the technical effect of improving the software installation efficiency is realized, and the technical problem of low software installation efficiency caused by the fact that the packaged software package cannot be modified again is solved.
It should be noted that, in the embodiment of the present application, a package tool is first used to package a file to be installed to obtain a file to be installed software package, where the package tool includes, but is not limited to, a software InnoSetup for packaging a file. The development environment of the operating system comprises but is not limited to a Net environment in a windows system.
In some embodiments of the present application, detecting a first trigger instruction for triggering an installation operation is by displaying an installation interface; and detecting the trigger operation of a target object on a target control in the installation interface, and generating the first trigger instruction when the target control is triggered.
It should be noted that, in this embodiment of the present application, the first trigger instruction is an instruction for triggering installation or software upgrade to start an installation program; the target control is a key for controlling starting of the installation program. For example: the target object sends a trigger instruction by triggering an installation program key so as to start the installation program.
In some embodiments of the present application, modifying an installation process of a file to be installed in the target script file includes: detecting a second trigger instruction for triggering modification of the target script file; and modifying the installation flow of the file to be installed in the target script file under the condition of detecting the second trigger instruction.
It should be noted that, in the embodiment of the present application, the second trigger instruction refers to an instruction for modifying a script file, which is triggered when the installation of the to-be-installed file fails. The script file in the implementation of the present application may be implemented by a C # script language, and may also be implemented by other script languages, for example: python, Lua, and other scripting languages.
And under the condition of installation failure, calling a system tool in the operating system by using the script file to modify the installation flow, thereby realizing the purpose of modifying the packaged installation file to successfully install. The installation files do not need to be packaged again, so that the software installation efficiency is improved.
For convenience of description, the software installation method proposed by the present application is specifically described in the embodiment of the present application in combination with a software accuconteurotool, where an operation interface of the installation tool is as shown in fig. 3, an installation/upgrade key is used to trigger a program to start running, and a recovery key is used to recover to a state before installation starts and start a script file when installation fails. The interface with successful installation is shown in fig. 4, the accucontinourtol installation tool is compiled by combining an insetup packaging tool and a C # script language, wherein the insetup packaging tool mainly works to package files into a compressed package, and the C # script mainly realizes flow control; such as: and calling an environment detection tool, installing an installation package, a data migration tool, a database upgrading tool and the like.
The calling essence of the cs script file is as follows: the method mainly plays a role in dynamically compiling cs script files so as to realize the capability similar to a scripting language. Cs is a source code file of the C # script.
Through the steps, the script file is called by utilizing the development environment in the operating system to modify the installation process, and the purpose of modifying the packaged files to be installed is achieved, so that the technical effect of improving the software installation efficiency is realized, and the technical problem of low software installation efficiency caused by the fact that the packaged software package cannot be modified again is solved.
By utilizing the Net environment in the window, the C # can dynamically modify and compile like a script language, and can be adjusted in time when a problem is found. And calling a script command in the software installation and uninstallation process to modify and adjust in real time. The local debugging is facilitated, and the situation that the debugging can be executed after being repackaged like InnoSetup every time is avoided. The method can support the simultaneous installation of a plurality of installation packages, and the installation packages can be installed in sequence as long as the cs files are modified. Simple problem troubleshooting and debugging can be performed even in the case where no development environment is present on site.
In some embodiments of the present application, the script file is used to modify the installation process of the file to be installed, including but not limited to the following cases, specifically:
under the condition that the operating environment required by the file to be installed does not exist in the target equipment, adding an installation flow of the operating environment required by downloading the file to be installed in the installation flow; and under the condition that the initial installation path of the file to be installed cannot be identified, adding an installation flow for changing the initial installation path in the installation flow.
It should be noted that, the case where there is no runtime environment required by the file to be installed in the target device includes, but is not limited to, that the runtime environment version number in the target device is not consistent with the runtime environment version number adapted to the file to be installed, and the runtime environment refers to an environment in which the semi-compiled runtime code is run on the target machine. For example: the environment where the file to be installed runs is microsoft. net framework4.0, the environment of the target device is microsoft. net framework3.5, and the environment version number of the target device is not consistent with the environment version number adapted to the file to be installed. The initial installation path refers to a file directory which is set in the packaging process by using a packaging tool and is originally intended to be installed, and the unrecognizable file directory includes but is not limited to that the installation software cannot recognize the file directory due to the fact that the file name is a Chinese name. The reasons listed here for the failure of installation can be preliminarily confirmed by searching the installation log file. The processing scheme for solving the failure reason can be more accurately judged through the confirmation of the failure reason of the installation.
In some embodiments of the present application, in a case that there is no runtime environment required for the file to be installed in the target device, an installation process of the runtime environment required for downloading the file to be installed is added to the installation process, where the installation process includes: modifying the target script file to add a calling environment detection tool in the installation process; determining the operating environment required by the file to be installed by using the environment detection tool; and downloading the running environment required by the file to be installed.
It should be noted that, in the embodiment of the present application, the target script file is modified to invoke the environment detection tool to detect the operating environment of the target device to determine whether the operating environment required by the file to be installed exists in the target device, and if it is determined that the operating environment does not exist, a download instruction is issued to download and install the corresponding operating environment. The environment detection tool is self-contained by installation tool software, such as the installation tool software AccuContourTool installation tool.
In some embodiments of the present application, in a case that an initial installation path of the file to be installed cannot be identified, adding an installation procedure that changes the initial installation path in the installation procedure, including: acquiring an initial installation path of the installation package; executing the script file to alter the initial installation path.
It should be noted that, in the embodiment of the present application, modifying the installation flow by modifying the script file is implemented by modifying the script file through a text editor in the operating system to correspondingly compile and modify to modify the installation flow. Specific modification can be achieved by annotating a partial script/file copy (src, dst)/reducing partial copy operations in the installation flow. And adding a part of mobile file operation in a src (dst) adding mode.
Different methods are used for processing different installation failure reasons, problems are accurately eliminated so as to successfully install the file to be installed, installation efficiency is improved, and only a development environment and a tool carried by an operating system are used in the debugging process, so that modification can be carried out at any time, and the debugging process is more convenient.
In the case of compiling the script file by using the C # language, when the field installation fails, the debugging can be carried out by modifying the cs file so as to achieve the installation purpose. A flow chart of upgrading software by using an accucontentortol installation tool is shown in fig. 5, an installation/upgrade instruction is triggered, a C # script file is modified to modify an installation flow under the condition of failed installation, the C # script file is attempted to be installed again after being modified, CheckEnvironment in a right box of fig. 5 represents a detection environment, InstallPackage represents an installation file package, and DataUpdate represents upgrade data.
In some embodiments of the present application, after completing the installation of the file to be installed, the method further includes: and saving the record file of the installation flow, wherein the installation flow can be an unmodified installation flow which is directly installed successfully, or an installation flow which is modified by modifying the script file. So as to directly call the determined installation flow under the condition of secondary operation. For example: and synchronously updating to relevant git branches, and repacking the test to ensure that the same environment is encountered again to be normally installed.
In some embodiments of the present application, the software may also be upgraded by using upgrade data in the file to be installed; modifying the target script file to call a data migration tool under the condition that a redundant configuration file exists after upgrading is completed; and clearing the redundant configuration file by adopting the data migration tool. For example: and after the old version is upgraded to the new version, deleting some redundant configuration files and the like which may exist in the old version.
It should be noted that the data migration tool may be carried by the installation tool itself, for example: AccuContourTool.
According to another aspect of the embodiments of the present application, there is also provided a software installation apparatus, as shown in fig. 6, including: a detection module 60, configured to detect a first trigger instruction for triggering an installation operation; a calling module 62, configured to, in a case that the first trigger instruction is detected, call a target script file through a development environment provided in an operating system; an execution module 64, configured to modify an installation process of a file to be installed in the target script file, where the file to be installed includes one of: installing package files and upgrading data; and an installation module 66, configured to execute the modified object script file to complete installation of the file to be installed.
The detection module 60 includes: the device comprises a first detection sub-module and a second detection sub-module, wherein the first detection sub-module is used for detecting the triggering operation of a target object on a target control in the installation interface, and generating a first triggering instruction when the target control is triggered; the second detection submodule is used for detecting a second trigger instruction for triggering the execution of the script file.
The execution module 64 includes: a first execution submodule and a second execution submodule; the first execution submodule is used for increasing an installation process of the operating environment required by downloading the file to be installed in the installation process under the condition that the operating environment required by the file to be installed does not exist in the target equipment; the first sub-module comprises a first execution unit, a detection unit and a downloading unit, wherein the first execution unit is used for modifying the target script file so as to add a calling environment detection tool in the installation process; the detection unit is used for determining the operating environment required by the file to be installed by using the environment detection tool; the downloading unit is used for downloading the running environment required by the file to be installed.
The second execution submodule is used for adding an installation process for changing the initial installation path in the installation process under the condition that the initial installation path of the file to be installed cannot be identified; wherein the second execution submodule includes: a modification unit and an execution unit; the change unit is used for modifying the target script file to modify the initial installation path; and the execution unit is used for executing the modified target script file to finish the installation of the file to be installed.
The installation module 66 further includes: saving the submodule and upgrading the submodule; the storage submodule is used for storing the target installation process recording file; the upgrading submodule is used for upgrading the software by utilizing upgrading data in the file to be installed; modifying the target script file to call a data migration tool under the condition that a redundant configuration file exists after upgrading is completed; and clearing the redundant configuration file by adopting the data migration tool.
Through the steps, the script file is called by utilizing the development environment in the operating system to modify the installation process, and the purpose of modifying the packaged files to be installed is achieved, so that the technical effect of improving the software installation efficiency is realized, and the technical problem of low software installation efficiency caused by the fact that the packaged software package cannot be modified again is solved.
According to another aspect of the embodiments of the present application, a non-volatile storage medium is further provided, where the non-volatile storage medium includes a stored program, and when the program runs, the device where the non-volatile storage medium is located is controlled to execute the software installation method.
According to another aspect of the embodiments of the present application, there is also provided a computer device, including a memory and a processor; the processor is used for running a program, wherein the program executes the software installation method when running.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A software installation method, comprising:
detecting a first trigger instruction for triggering installation operation;
under the condition that the first trigger instruction is detected, calling a target script file through a development environment provided in an operating system;
modifying an installation process of a file to be installed in the target script file, wherein the file to be installed comprises one of the following: installing package files and upgrading data;
and executing the modified target script file to finish the installation of the file to be installed.
2. The method of claim 1, wherein detecting a first trigger instruction for triggering an installation operation comprises:
displaying the installation interface;
and detecting the trigger operation of a target object on a target control in the installation interface, and generating the first trigger instruction when the target control is triggered.
3. The method according to claim 1, wherein modifying the installation flow of the file to be installed in the target script file comprises:
detecting a second trigger instruction for triggering modification of the target script file;
and modifying the installation flow of the file to be installed in the target script file under the condition of detecting the second trigger instruction.
4. The method according to claim 3, wherein modifying the installation flow of the file to be installed in the target script file comprises:
under the condition that the operating environment required by the file to be installed does not exist in the target equipment, adding an installation flow of the operating environment required by downloading the file to be installed in the installation flow;
and under the condition that the initial installation path of the file to be installed cannot be identified, adding an installation flow for changing the initial installation path in the installation flow.
5. The method according to claim 4, wherein in a case that the running environment required for downloading the file to be installed does not exist in the target device, adding an installation process of the running environment required for downloading the file to be installed in the installation process, includes:
modifying the target script file to add a calling environment detection tool in the installation process;
determining the operating environment required by the file to be installed by using the environment detection tool;
and downloading the running environment required by the file to be installed.
6. The method according to claim 4, wherein in a case that an initial installation path of the file to be installed cannot be identified, adding an installation procedure for changing the initial installation path in the installation procedure, comprises:
modifying the target script file to modify the initial installation path;
and executing the modified target script file to finish the installation of the file to be installed.
7. The method of claim 6, wherein after completing installation, the method further comprises:
and saving the record file of the installation process.
8. The method of claim 1, further comprising:
upgrading the software by using the upgrading data in the file to be installed;
modifying the target script file to call a data migration tool under the condition that a redundant configuration file exists after upgrading is completed;
and clearing the redundant configuration file by adopting the data migration tool.
9. A software installation apparatus, comprising:
the detection module is used for detecting a first trigger instruction for triggering installation operation;
the calling module is used for calling a target script file through a development environment provided in an operating system under the condition that the first trigger instruction is detected;
an execution module, configured to modify an installation process of a file to be installed in the target script file, where the file to be installed includes one of: installing package files and upgrading data;
and the installation module is used for executing the modified target script file so as to finish the installation of the file to be installed.
10. A non-volatile storage medium, comprising a stored program, wherein when the program runs, a device in which the non-volatile storage medium is located is controlled to execute the software installation method according to any one of claims 1 to 8.
CN202210023641.3A 2022-01-10 2022-01-10 Software installation method and device Pending CN114428622A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210023641.3A CN114428622A (en) 2022-01-10 2022-01-10 Software installation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210023641.3A CN114428622A (en) 2022-01-10 2022-01-10 Software installation method and device

Publications (1)

Publication Number Publication Date
CN114428622A true CN114428622A (en) 2022-05-03

Family

ID=81311591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210023641.3A Pending CN114428622A (en) 2022-01-10 2022-01-10 Software installation method and device

Country Status (1)

Country Link
CN (1) CN114428622A (en)

Similar Documents

Publication Publication Date Title
US10592237B2 (en) Efficient detection of architecture related bugs during the porting process
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN105786538B (en) software upgrading method and device based on android system
JP2008176793A (en) Software test system, method, and computer-readable recording medium having program stored for executing this method
CN105468529A (en) Accurate traversal method and apparatus for UI controls of android application
CN112463198B (en) Updating method and system based on Electron
CN111176629A (en) Application development method and device
CN115617687B (en) Program instrumentation method, device, equipment and storage medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN112199284A (en) Program automation testing method and corresponding device, equipment and medium
CN108121650B (en) Method and device for testing page user interface
CN113360379B (en) Program test environment creation method and program test environment creation apparatus
CN110414218B (en) Kernel detection method and device, electronic equipment and storage medium
CN114356779A (en) Programming language debugging method and device and terminal equipment
CN112631915B (en) Method, system, device and medium for PCIE device software simulation
CN109408133B (en) Method and equipment for starting assembly
CN115268969A (en) Android system upgrading method and device and terminal equipment
CN114428622A (en) Software installation method and device
CN110889116A (en) Advertisement blocking method and device and electronic equipment
CN113127329A (en) Script debugging method and device and computer storage medium
CN104239112A (en) Device driver installation method and device
CN114840198A (en) Function execution method, building block function rewriting method and related equipment
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN115168175A (en) Program error solving method, device, electronic equipment and storage medium
CN113282363A (en) Method and device for optimizing hybrid APP

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