Method and device for installing installation program of network management software

By generating a network management software installation package based on Java graphical language, the problem of inconsistent installation wizards on different operating systems is solved, and the rapid installation and multiple installation wizard support on operating systems such as Windows and Linux are realized, which significantly improves the user experience.

CN119806559APending Publication Date: 2025-04-11BEIJING GW TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411819187.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The prior art is difficult to provide a network management software installation wizard that supports graphical interfaces on different operating systems such as Windows and Linux, resulting in poor user experience.

Method used

By generating a network management software installation package written based on the Java graphical language, the installation package includes the installer call entry file and the installer compression package. It automatically selects the corresponding installer call entry file according to the operating system and whether the graphical interface installation wizard is needed, and decompresses and installs it in the system temporary directory.

Benefits of technology

It realizes rapid installation based on different installation wizards on different operating systems, improves user experience, and supports multiple operating systems and installation wizards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806559A_ABST
    Figure CN119806559A_ABST
Patent Text Reader

Abstract

The invention provides an installation program installation method and device for network management software. The method comprises the following steps: acquiring a network management software installation package corresponding to a stored installation program of network management software; selecting a corresponding installation program calling entry file in the network management software installation package based on an operation system of an installation platform on which the installation program is to be installed and whether an installation guide supporting a graphical interface needs to be installed, and running the installation program calling entry file; decompressing the installation program package to a system temporary directory; starting an installation guide, and obtaining installation parameters; calling the decompressed installation program in the temporary directory of the system, and installing the selected module based on the installation parameters and the compressed package of the selected module; and displaying the installation progress until the installation is completed. According to the method, rapid installation can be carried out on different operating systems based on different installation guides through one network management software installation package, and the user experience is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more particularly to a method and device for installing a program of a network management software. Background Art

[0002] At present, the common operating systems running on the installation platform are: Linux operating system and Windows operating system. In related implementations, when installing the network management software installation program, a graphical interface installation wizard is usually provided on the Windows operating system to guide the user to install; while the installation wizard provided on the Linux operating system does not support the graphical interface. With the increase in the application of the Linux operating system, the demand for installation that supports the graphical interface is also increasing.

[0003] Therefore, there is an urgent need for an installation program for network management software that supports multiple operating systems, and when installing the program, it is possible to select whether to support an installation wizard with a graphical interface as required. Summary of the invention

[0004] In view of this, the present application provides a method and device for installing a network management software installation program, which can realize rapid installation based on different installation wizards on different operating systems through a network management software installation package, greatly improving the user experience.

[0005] To solve the above technical problems, the technical solution of this application is implemented as follows: In one embodiment, a method for installing a program of a network management software is provided, the method comprising: Obtain a network management software installation package corresponding to the stored network management software installation program; wherein the network management software installation package is written based on the Java graphical language; the network management software installation package includes: an installation program call entry file and an installation program compressed package; the installation program call entry file is generated based on the operating system of different installation platforms and whether a graphical interface installation wizard is supported; the installation program compressed package includes: an installation program and a network management software data package; the network management software data package includes a compressed package of multiple modules; Based on the operating system of the installation platform where the installation program is to be installed and whether it is necessary to install an installation wizard that supports a graphical interface, select a corresponding installation program call entry file in the network management software installation package and run it; Decompress the installation program compressed package to the system temporary directory; Start the installation wizard and obtain installation parameters; The decompressed installation program in the system temporary directory is called to install the selected module based on the installation parameters and the compressed package of the selected module; and the installation progress is displayed until the installation is completed.

[0006] If the running installation program calls the entry file for supporting the graphical interface installation wizard installation program, the step of obtaining the installation parameters includes: Start the graphical interface installation wizard to guide users to enter customized installation parameters; Get the installation parameters entered by the user; The installation progress is displayed through a graphical interface.

[0007] If the running installation program calling entry file is an installation program calling entry file that does not support the graphical interface installation wizard, the obtaining of installation parameters includes: The command line automatically lists all installation parameters and descriptions that the user can enter, prompting the user to enter the installation parameters; Get the installation parameters entered by the user; determining whether the installation parameter indicates an exit command; In response to the installation parameter indicating an exit command, the installation is terminated; In response to the installation parameter not indicating an exit command, verify whether the installation parameter input by the user is valid; if so, obtain the installation parameter input by the user as the installation parameter to be installed; otherwise, echo an error message in the command line to prompt re-entry.

[0008] The calling of the decompressed installation program in the system temporary directory to install the selected module based on the installation parameters and the compressed package of the selected module includes: Select the modules to be installed and analyze the dependencies of all selected modules; Starting from the lowest-level module, install each module one by one according to the dependency relationship until all selected modules are installed. The installation of each module includes: Decompress the compressed package corresponding to the module; Update the module uninstallation list file in the installation directory, record the shortcuts corresponding to the modules, the module installation order, the application menu and the command files to be called when uninstalling; Copy the module folder and files to the installation directory; Generate shortcuts and application menus for module definitions; Call the module installation script to complete the installation of the module.

[0009] The installation program calls the entry file including: The operating system is Windows, and the installation program that supports the graphical interface installation wizard calls the entry file; The operating system is Windows, and the installation program that does not support the graphical interface installation wizard calls the entry file; The operating system is Linux, and the installation program that supports the graphical interface installation wizard calls the entry file; The operating system is Linux, and the installation program of the graphical interface installation wizard does not support calling the entry file.

[0010] Wherein, the method further comprises: If the installation is canceled, roll back the installation; If the installation is complete, clear the system temporary directory.

[0011] Wherein, the method further comprises: Run the uninstall file in the installation directory; copy it to the system temporary directory and call it again; Parse module uninstall manifest file; Call all module uninstall files; Delete all shortcuts and application menus generated by the module; Clear and delete the installation directory; Delete the uninstall files in the system temporary directory.

[0012] In another embodiment, a device for installing a program of a network management software is provided, the device comprising: The first acquisition unit is used to acquire a network management software installation package corresponding to the stored network management software installation program; wherein the network management software installation package is written based on the Java graphical language; the network management software installation package includes: an installation program call entry file and an installation program compressed package; the installation program call entry file is generated based on the operating system of different installation platforms and whether the graphical interface installation wizard is supported; the installation program compressed package includes: an installation program and a network management software data package; the network management software data package includes a compressed package of multiple modules; A selection unit, configured to select a corresponding installation program call entry file in the network management software installation package based on the operating system of the installation platform on which the installation program is to be installed and whether an installation wizard supporting a graphical interface needs to be installed, and to run the installation program; A decompression unit, used for decompressing the installation program compressed package to a system temporary directory; The second acquisition unit starts the installation wizard and acquires installation parameters; The installation unit is used to call the decompressed installation program in the system temporary directory, install the selected module based on the installation parameters and the compressed package of the selected module; and display the installation progress until the installation is completed.

[0013] In another embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method for installing a program of a network management software when executing the program.

[0014] In another embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, a method for installing a program of a network management software is implemented.

[0015] As can be seen from the above technical solution, the above embodiment provides an installation package of a network management software installation program that supports multiple operating systems and multiple installation wizards, which can be automatically installed according to the corresponding operating system and whether a graphical interface is required; wherein, the installation program of the network management software that supports multiple operating systems can be installed under different operating systems only by calling entry files of different installation programs, and can freely choose whether to support the installation wizard of the graphical interface for installation. This solution can realize fast installation based on different installation wizards on different operating systems through a network management software installation package, greatly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0017] Figure 1 This is a schematic diagram of the installation process of the network management software installation program in the embodiment of the present application; Figure 2 A schematic diagram of a flow chart of obtaining installation parameters when a program is installed based on a graphical interface installation wizard installation program calling an entry file to implement program installation in an embodiment of the present application; Figure 3 A schematic diagram of a flow chart of obtaining installation parameters when a program is installed based on an installation program that does not support a graphical interface installation wizard and calls an entry file in an embodiment of the present application; Figure 4 A schematic diagram of a process of installing a selected module based on installation parameters and a compressed package of the selected module in an embodiment of the present application; Figure 5 This is a schematic diagram of the process of uninstalling the network management software in an embodiment of the present application; Figure 6 This is a schematic diagram of the structure of the installation device of the network management software installation program in the embodiment of the present application; Figure 7 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe the order or precedence of the objects. It should be understood that the data used in this way can be interchanged where appropriate, so that the implementation of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0020] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0021] In recent years, with the rapid development of information technology, domestic Linux operating systems have gradually emerged in the market and have been increasingly widely used in the government and enterprise fields. By using domestic Linux operating systems, we can reduce dependence on external systems and improve information security. Therefore, more and more government and enterprise customers require that the same software can be used in both Windows and Linux systems, which requires software developers to provide different installation programs for different operating systems.

[0022] Usually, the software installer on the Windows operating system will provide a GUI (Graphical User Interface) installation wizard to guide the user to install; on the Linux system, the software installer is usually called using the command line to complete the installation. Although Linux systems with GUI can also automatically download the installation package and complete its installation through the graphical software center, no matter which method, the software installation process itself does not provide a GUI.

[0023] Currently, the GUI under Linux is becoming more and more powerful and complete. Whether the network management software is C / S (Client / Server) architecture or B / S (Browser / Server), the client or Web browser is a graphical interactive interface, which means that a complete network management software that runs completely in the Linux system must have a GUI. On such a Linux system, if the process of installing the network management software can support users to customize the installation step by step with the help of a graphical wizard, just like on a Windows system, compared with entering a large number of required and optional parameters in the command line to install, it will undoubtedly significantly reduce the difficulty of installation, avoid the input errors that may occur when using the command line to install, avoid the unpredictable risks that may be caused by this, and greatly improve the user experience.

[0024] Based on the above problems, an installation method for a network management software installer is provided in an embodiment of the present application, and an installation package of a network management software installer that supports multiple operating systems and multiple installation wizards is provided, which can be automatically installed according to the corresponding operating system and whether a graphical interface is required; wherein, the installation program of the network management software that supports multiple operating systems can be installed under different operating systems only by calling entry files of different installation programs, and can freely select whether to support the installation wizard of the graphical interface for installation. This solution can realize fast installation based on different installation wizards on different operating systems through a network management software installation package, greatly improving the user experience.

[0025] In the embodiment of the present application, before executing the application program, it is necessary to generate a network management software installation package corresponding to the network management software installation program. The network management software installation package is written based on the Java graphical language; the network management software installation package includes: an installation program call entry file and an installation program compressed package; the installation program call entry file is generated based on the operating system of different installation platforms and whether the graphical interface installation wizard is supported; the specific implementation is as follows: With the cross-platform running feature of Java, the network management software installation program is written based on the Java graphical language to generate a network management software installation package, so that the compiled and released installation program can support running on both Windows and Linux.

[0026] The network management software installation package is a folder, which includes two parts: the installation program calling entry file and the installation program compressed package.

[0027] The installation program calls the entry file including: The installation program call entry file for the Windows operating system that supports the graphical interface installation wizard can be expressed as: install-ui.bat; The operating system is Windows, and the installation program does not support the graphical interface installation wizard. The entry file can be expressed as install.bat; The operating system is Linux and supports the installation program call entry file of the graphical interface installation wizard; it can be expressed as install-ui.sh; The operating system is Linux, and the installation program calling entry file that does not support the graphical interface installation wizard can be expressed as install.sh.

[0028] The installation program compressed package can be expressed as data.zip: a compressed package file in zip format, and the installation program compressed package specifically includes: an installation program and a network management software data package; The installation program includes: installation program related folders and files, such as: installation program Jar file, dependent third-party libraries, JRE (Java Runtime Environment, including Windows JRE and Linux JRE), module uninstallation files for uninstalling the network management software, uninstall.bat and uninstall.sh, and cleanup files for cleaning temporary directories, such as clear.bat and clear.sh.

[0029] Network management software data package: For each module of the network management software, a zip format compressed package (zip file) and an XML format file (xml file) with the same name are provided.

[0030] zip file: contains files that need to be copied or called during installation; XML file: defines basic module information and installation information, such as: A globally unique module name; Descriptive information; Whether to display in the installation wizard; Whether installation is optional; Whether a license or activation code is required; List of supported languages; Language parameters: language name, module display name in different languages, whether to use the language selected by the user as the default language if the module does not support it, etc.

[0031] List of other modules that depend on it; Dependent module parameters: module name, dependency description, etc.

[0032] Install the list of folders and file information that need to be copied from the module compressed package; Copy parameters: source path, target path, excluded files or folders, matching operating system, matching language, etc. Install the information list of shortcuts or application menus that need to be generated; Parameters of shortcut or application menu: name, target (launch command), icon path, shortcut location (desktop or start menu or both), version, type, matching operating system, matching language, etc.; A list of script information that needs to be executed during installation; Script parameters: script file path, type, matching operating system, matching language, etc. The type is a common script type, such as Python, Groovy, Ruby, etc.

[0033] The file that needs to be called during uninstallation, i.e. the module uninstallation file: bat or sh format, generally used to delete the system services registered by the module during installation, delete related registry information, etc.

[0034] The above are examples of commonly used information and parameters. In actual use, you can add or reduce them appropriately according to the functions that need to be supported when the software is installed.

[0035] The following describes in detail the installation process of the installation program of the network management software in the embodiment of the present application in conjunction with the accompanying drawings.

[0036] See also Figure 1 , Figure 1 This is a schematic diagram of the installation process of the network management software installation program in the embodiment of this application. The specific steps are: Step 101, obtaining a network management software installation package corresponding to a stored network management software installation program; the network management software installation package is written based on the Java graphical language; the network management software installation package includes: an installation program calling entry file and an installation program compressed package.

[0037] The installation program call entry file is generated based on the operating system of different installation platforms and whether the graphical interface installation wizard is supported. In specific implementation, the installation program call entry file that supports the graphical interface installation wizard and the installation program call entry file that does not support the graphical interface installation wizard are generated based on each operating system.

[0038] The installation program compressed package includes: an installation program and a network management software data package; the network management software data package includes compressed packages of multiple modules.

[0039] Step 102, based on the operating system of the installation platform of the installation program to be installed and whether it is necessary to install an installation wizard supporting a graphical interface, select a corresponding installation program call entry file in the network management software installation package and run it.

[0040] When installing the program after obtaining the network management software installation package, select the corresponding installation program call entry file in the network management software installation package according to the operating system of the installation platform and whether the installation wizard supporting the graphical interface is required.

[0041] Step 103, decompress the installation program compressed package to the system temporary directory.

[0042] The installation program compressed package includes: an installation program and a network management software data package, and the network management software data package includes compressed packages corresponding to multiple modules and files in XML format with the same name.

[0043] Step 104: Start the installation wizard and obtain installation parameters.

[0044] Step 105, calling the decompressed installation program in the system temporary directory, installing the selected module based on the obtained installation parameters and the compressed package of the selected module; and displaying the installation progress until the installation is completed.

[0045] The installation program compressed package includes multiple modules. During the installation process, you can choose which modules to install according to the installation wizard, and then only these selected modules will be installed.

[0046] In this embodiment, an installation package of a network management software installation program that supports multiple operating systems and multiple installation wizards is provided, which can be automatically installed according to the corresponding operating system and whether a graphical interface is required; wherein, the installation program of the network management software that supports multiple operating systems can be installed under different operating systems only by calling entry files of different installation programs, and can freely select whether to support the installation wizard of the graphical interface for installation. This solution can realize fast installation based on different installation wizards on different operating systems through a network management software installation package, greatly improving the user experience.

[0047] In the embodiment of the present application, if the installation is canceled, the installation is rolled back; if the installation is completed, the system temporary directory is cleared to save disk space.

[0048] In the embodiment of the present application, when the installation wizard is started and the installation parameters are obtained, different acquisition methods are executed based on different installation programs calling entry files: The first way to obtain the parameters is: the running installation program calls the entry file to support the graphical interface installation wizard. When the installation program calls the entry file, the specific process of obtaining the installation parameters is as follows: See also Figure 2 , Figure 2 This is a flow chart of obtaining installation parameters when the installation program calls the entry file based on the support of the graphical interface installation wizard in the embodiment of the present application. The specific steps are: Step 201, start the graphical interface installation wizard to guide the user to customize and input installation parameters.

[0049] That is, a graphical interface is displayed to the user at each step, and the user selects according to the prompts of the graphical interface, or directly enters the installation parameters.

[0050] Step 202: Obtain installation parameters input by the user.

[0051] The installation progress is displayed through a graphical interface.

[0052] The second way to obtain the parameters is: when the running installer calls the entry file and does not support the graphical interface installation wizard, the installation parameters are obtained. The specific process is as follows: See also Figure 3 , Figure 3 This is a flow chart of obtaining installation parameters when the installation program calls the entry file to implement program installation based on the embodiment of the present application that does not support the graphical interface installation wizard. The specific steps are: Step 301: The command line automatically lists all installation parameters and descriptions that can be entered by the user, prompting the user to enter the installation parameters.

[0053] The user enters required or optional parameters, such as language, installation directory, license, and module, in command line mode.

[0054] The installation package includes multiple modules, and users can choose to install several or all of them as needed.

[0055] Step 302: Obtain installation parameters input by the user.

[0056] Step 303, determining whether the installation parameter indicates an exit command.

[0057] Step 304: In response to the installation parameter indicating an exit command, the installation is terminated, and this process ends.

[0058] Step 305 , in response to the installation parameter not indicating an exit command, checking whether the installation parameter input by the user is valid; if so, executing step 306 ; otherwise, executing step 307 .

[0059] Step 306: Obtain the installation parameters input by the user as the installation parameters to be installed. End this process.

[0060] Step 307: Display an error message on the command line, prompting you to re-enter the command.

[0061] The validity check is completed by calling the interface of the installation program to check the installation parameters. When the parameters are incorrect or the required parameters are not entered, an error message is echoed in the command line, prompting you to re-enter the parameters.

[0062] Whether you are installing based on the installation wizard that supports the graphical interface or not, the installation process is the same, except that the echo method is different during the installation. Based on the module list selected by the user and the XML files with the same name corresponding to each module, the specific installation process is as follows: See also Figure 4 , Figure 4 This is a flow chart of installing the selected module based on the installation parameters and the compressed package of the selected module in the embodiment of the present application. The specific steps are: Step 401, select the modules to be installed, and analyze the dependencies of all the selected modules.

[0063] Select the modules to be installed based on the user's input, analyze the dependencies of these modules, and determine the installation order of these modules.

[0064] When analyzing dependencies, the analysis is performed based on the dependencies defined in the XML file.

[0065] Step 402, starting from the most dependent bottom module, install them one by one according to the dependency relationship until all selected modules are installed.

[0066] Install them one by one from the lowest-level module to the top one by one. This ensures that if the installation of a module requires the files or data generated after the installation of other modules it depends on, there will be no errors caused by missing files or data.

[0067] The installation of each module includes: Decompress the module compression package corresponding to the module; Update the module uninstallation list file in the installation directory to record the module's corresponding shortcuts, application menus, and command files that need to be called when uninstalling; Copy the module folder and files to the installation directory; Generate shortcuts and application menus for module definitions; Call the module installation script to complete the module installation.

[0068] This step allows you to freely select the modules to be installed and then automatically complete the installation of the modules.

[0069] After the network management software is installed, if you no longer need the network management software, you can uninstall the network management software. The uninstallation function of the network management software is defined as a module of the network management software, and it is a mandatory module that will be automatically installed; and the module corresponding to the uninstallation function of the network management software is the lowest-level module, ensuring that even if the installation is interrupted, the module can be called to roll back the installation operation and uninstall the incompletely installed network management software.

[0070] Usually, when uninstalling the network management software, there is no content that needs to be customized by the user. Therefore, there is no need for a graphical interface installation wizard, and it can be done directly using the command line. For example, in the Linux operating system, it can be done directly using the command line; For example, the uninstall entry under Windows can be used to register the software to the "Programs and Features" of the Control Panel through a script during installation, or a shortcut for uninstalling the network management software can be generated. During uninstallation, the uninstall operation can be initiated from these entries instead of from the command line, but the actual call is also the command line uninstallation.

[0071] See also Figure 5 , Figure 5 This is a schematic diagram of the process of uninstalling the network management software in the embodiment of this application. The specific steps are: Step 501, run the module uninstallation file in the installation directory, and copy it to the system temporary directory for re-calling.

[0072] Whether it is a normal uninstallation or an incomplete software installation that is interrupted during the installation, the uninstallation process does not share the same temporary directory as the installation process. The manifest file recorded in the installation directory is used as the basis, and a new temporary directory is generated to complete the uninstallation. That is, the system temporary directory during installation and the system temporary directory during uninstallation in the embodiment of the present application are different directories.

[0073] If the installation is interrupted, the manifest file records which modules have been installed and which modules are uninstalled.

[0074] Step 502, parsing module uninstallation file.

[0075] Step 503, calling all module uninstallation files to complete the uninstallation of each module.

[0076] Such as deleting system services, deleting registry information, etc.

[0077] When uninstalling each module, the order of uninstalling the modules is opposite to the order of installing the modules, that is, uninstalling from top to bottom according to the dependency relationship to ensure that the modules that depend on other modules are uninstalled first to avoid uninstallation failure due to the existence of dependency relationships.

[0078] Step 504, delete the shortcuts and application menus generated by all modules.

[0079] Step 505, clear and delete the installation directory; Step 506, deleting the module uninstallation file in the system temporary directory.

[0080] The embodiment of the present application also provides a one-click uninstallation solution, and all related files in the installation directory and the system temporary directory are cleared, saving system resources.

[0081] Based on the same inventive concept, the present application also provides a device for installing a network management software installation program. Figure 6 , Figure 6 This is a schematic diagram of the structure of the installation device of the network management software installation program in the embodiment of the present application. The device includes: The first acquisition unit 601 is used to acquire a network management software installation package corresponding to the stored network management software installation program; wherein the network management software installation package is written based on the Java graphical language; the network management software installation package includes: an installation program call entry file and an installation program compressed package; the installation program call entry file is generated based on the operating system of different installation platforms and whether the graphical interface installation wizard is supported; the installation program compressed package includes: an installation program and a network management software data package; the network management software data package includes a compressed package of multiple modules; A selection unit 602 is used to select a corresponding installation program call entry file in the network management software installation package based on the operating system of the installation platform of the installation program to be installed and whether an installation wizard supporting a graphical interface needs to be installed, and run it; Decompression unit 603, used for decompressing the installation program compressed package to a system temporary directory; The second acquisition unit 604 is used to start the installation wizard and obtain installation parameters; The installation unit 605 is used to call the decompressed installation program in the system temporary directory, install the selected module based on the installation parameters and the compressed package of the selected module, and display the installation progress until the installation is completed.

[0082] In another example, The second acquisition unit 604 is further used to start the graphical interface installation wizard when obtaining installation parameters if the running installation program calls the entry file for supporting the graphical interface installation wizard installation program calls the entry file, and guide the user to customize the input of installation parameters; obtain the installation parameters input by the user; and display the installation progress through the graphical interface.

[0083] In another example, The second acquisition unit 604 is further used to automatically list all installation parameters and instructions that can be entered by the user under the command line when obtaining installation parameters if the running installation program calls the entry file for the installation program that does not support the graphical interface installation wizard. The command line prompts the user to enter the installation parameters; obtain the installation parameters entered by the user; determine whether the installation parameters represent an exit command; in response to the installation parameters representing an exit command, end the installation; in response to the installation parameters not representing an exit command, verify whether the installation parameters entered by the user are valid. If so, obtain the installation parameters; otherwise, echo an error message on the command line to prompt the user to re-enter the parameters.

[0084] In another example, The installation unit 605 is specifically used to call the installation program after decompression in the system temporary directory, select the module to be installed based on the installation parameters and the compressed package of the selected module when installing the selected module, and analyze the dependency relationship of all the selected modules; start from the most dependent bottom module, and install one by one according to the dependency relationship until all the selected modules are installed; wherein, the installation of each module includes: decompressing the compressed package corresponding to the module; updating the module uninstallation list file in the installation directory, recording the shortcut corresponding to the module, the module installation order, the application menu and the command file to be called when uninstalling; copying the module folder and files to the installation directory; generating the shortcut and application menu defined by the module; calling the module installation script to complete the installation of the module.

[0085] In another example, the installer call entry file includes: The operating system is Windows, and the installation program that supports the graphical interface installation wizard calls the entry file; The operating system is Windows, and the installation program that does not support the graphical interface installation wizard calls the entry file; The operating system is Linux, and the installation program that supports the graphical interface installation wizard calls the entry file; The operating system is Linux, and the installation program of the graphical interface installation wizard does not support calling the entry file.

[0086] In another embodiment, The installation unit 605 is further configured to roll back the installation if the installation is cancelled, and to clear the system temporary directory if the installation is completed.

[0087] In another embodiment, the device further comprises: Uninstallation unit 606 is used to run the uninstallation file in the installation directory; copy it to the system temporary directory and call it again; parse the module uninstallation list file; call all module uninstallation files; delete the shortcuts and application menus generated by all modules; clear and delete the installation directory; delete the uninstallation file in the system temporary directory.

[0088] In another embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method for installing a program of a network management software when executing the program.

[0089] In another embodiment, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, a method for installing a program of the network management software is implemented.

[0090] Figure 7 Schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. Figure 7 As shown, the electronic device may include: a processor (Processor) 710, a communication interface (Communications Interface) 720, a memory (Memory) 730 and a communication bus 740, wherein the processor 710, the communication interface 720, and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the following method: Obtain a network management software installation package corresponding to the stored network management software installation program; wherein the network management software installation package is written based on the Java graphical language; the network management software installation package includes: an installation program calling entry file and an installation program compressed package; the installation program calling entry file is generated based on the operating system of different installation platforms and whether the graphical interface installation wizard is supported; the installation program compressed package includes: an installation program and a network management software data package; the network management software data package includes a compressed package of multiple modules; Based on the operating system of the installation platform of the installation program to be installed and whether it is necessary to install an installation wizard that supports a graphical interface, select the corresponding installation program call entry file in the network management software installation package and run it; Unzip the installation program compressed package to the system temporary directory; Start the installation wizard and obtain installation parameters; Call the installation program that has been decompressed in the system temporary directory, install the selected module based on the installation parameters and the compressed package of the selected module; and display the installation progress until the installation is completed.

[0091] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0092] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0093] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0094] The flow chart and block diagram in the accompanying drawings of the present application show the possible architecture, function and operation of the system, method and computer program product according to the various embodiments disclosed in the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in the order of the standards in different figures. For example, the boxes represented by two connections can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0095] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims disclosed in this application may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in this application. In particular, without departing from the spirit and teachings of this application, the features described in the various embodiments and / or claims of this application may be combined and / or combined in a variety of ways, and all of these combinations and / or combinations fall within the scope disclosed in this application.

[0096] Specific embodiments are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas, and is not used to limit the present application. For those skilled in the art, changes can be made in the specific implementation methods and application scopes according to the ideas, spirits and principles of the present invention, and any modifications, equivalent substitutions, improvements, etc. made therein should be included in the scope of protection of this application.

Claims

1. A method for installing a program of a network management software, characterized in that: The method comprises: Obtain a network management software installation package corresponding to the stored network management software installation program; wherein the network management software installation package is written based on the Java graphical language; the network management software installation package includes: an installation program call entry file and an installation program compressed package; the installation program call entry file is generated based on the operating system of different installation platforms and whether a graphical interface installation wizard is supported; the installation program compressed package includes: an installation program and a network management software data package; the network management software data package includes a compressed package of multiple modules; Based on the operating system of the installation platform where the installation program is to be installed and whether it is necessary to install an installation wizard that supports a graphical interface, select a corresponding installation program call entry file in the network management software installation package and run it; Decompress the installation program compressed package to the system temporary directory; Start the installation wizard and obtain installation parameters; The decompressed installation program in the system temporary directory is called to install the selected module based on the installation parameters and the compressed package of the selected module; and the installation progress is displayed until the installation is completed.

2. The method according to claim 1, characterized in that If the running installation program calls the entry file for supporting the graphical interface installation wizard installation program, the step of obtaining the installation parameters includes: Start the graphical interface installation wizard to guide users to enter customized installation parameters; Get the installation parameters entered by the user; The installation progress is displayed through a graphical interface.

3. The method according to claim 1, characterized in that: If the running installation program calls the entry file for the installation program that does not support the graphical interface installation wizard, the obtaining of the installation parameters includes: The command line automatically lists all installation parameters and descriptions that the user can enter, prompting the user to enter the installation parameters; Get the installation parameters entered by the user; determining whether the installation parameter indicates an exit command; In response to the installation parameter indicating an exit command, the installation is terminated; In response to the installation parameter not indicating an exit command, verify whether the installation parameter input by the user is valid; if so, obtain the installation parameter input by the user as the installation parameter to be installed; otherwise, echo an error message in the command line to prompt re-entry.

4. The method according to claim 1, characterized in that: The calling of the decompressed installation program in the system temporary directory to install the selected module based on the installation parameters and the compressed package of the selected module includes: Select the modules to be installed and analyze the dependencies of all selected modules; Starting from the lowest-level module, install each module one by one according to the dependency relationship until all selected modules are installed. The installation of each module includes: Decompress the compressed package corresponding to the module; Update the module uninstallation list file in the installation directory, record the shortcuts corresponding to the modules, the module installation order, the application menu and the command files to be called when uninstalling; Copy the module folder and files to the installation directory; Generate shortcuts and application menus for module definitions; Call the module installation script to complete the installation of the module.

5. The method according to claim 1, characterized in that: The installation program calls the entry file including: The operating system is Windows, and the installation program that supports the graphical interface installation wizard calls the entry file; The operating system is Windows, and the installation program that does not support the graphical interface installation wizard calls the entry file; The operating system is Linux, and the installation program that supports the graphical interface installation wizard calls the entry file; The operating system is Linux, and the installation program of the graphical interface installation wizard does not support calling the entry file.

6. The method according to claim 1, characterized in that After the installation is completed or the installation is canceled, the method further comprises: If the installation is canceled, roll back the installation; If the installation is complete, clear the system temporary directory.

7. The method according to claim 1, characterized in that The method further comprises: Run the uninstall file in the installation directory; copy it to the system temporary directory and call it again; Parse module uninstall manifest file; Call all module uninstall files; Delete all shortcuts and application menus generated by the module; Clear and delete the installation directory; Delete the uninstall files in the system temporary directory.

8. A device for installing a program of a network management software, characterized in that: The device comprises: The first acquisition unit is used to acquire a network management software installation package corresponding to the stored network management software installation program; wherein the network management software installation package is written based on the Java graphical language; the network management software installation package includes: an installation program call entry file and an installation program compressed package; the installation program call entry file is generated based on the operating system of different installation platforms and whether the graphical interface installation wizard is supported; the installation program compressed package includes: an installation program and a network management software data package; the network management software data package includes a compressed package of multiple modules; A selection unit, configured to select a corresponding installation program call entry file in the network management software installation package based on the operating system of the installation platform on which the installation program is to be installed and whether an installation wizard supporting a graphical interface needs to be installed, and to run the installation program; A decompression unit, used for decompressing the installation program compressed package to a system temporary directory; The second acquisition unit starts the installation wizard and acquires installation parameters; The installation unit is used to call the decompressed installation program in the system temporary directory, install the selected module based on the installation parameters and the compressed package of the selected module; and display the installation progress until the installation is completed.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method described in any one of claims 1 to 7 is implemented.