WO2014086173A1 - Installation method and device for terminal software - Google Patents

Installation method and device for terminal software Download PDF

Info

Publication number
WO2014086173A1
WO2014086173A1 PCT/CN2013/082762 CN2013082762W WO2014086173A1 WO 2014086173 A1 WO2014086173 A1 WO 2014086173A1 CN 2013082762 W CN2013082762 W CN 2013082762W WO 2014086173 A1 WO2014086173 A1 WO 2014086173A1
Authority
WO
WIPO (PCT)
Prior art keywords
installation
software
interface
configuration table
unified interface
Prior art date
Application number
PCT/CN2013/082762
Other languages
French (fr)
Chinese (zh)
Inventor
杨洪刚
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014086173A1 publication Critical patent/WO2014086173A1/en

Links

Classifications

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

Definitions

  • the present invention relates to the field of software installation, and in particular, to a method and apparatus for installing a customizable unified interface terminal software.
  • the release of terminal software is implemented by using packaged software on various systems, such as Install Shield used on Windows systems and PackageMaker on MAC systems.
  • the main problems are as follows: First, using the software versions released by these packaged software, the installation process varies greatly on different systems, the installation process is also inconsistent, and some functions are also inconsistent; secondly, there is a software installation interface. Inconsistent with the style of the software; finally, the installation process interface cannot be changed.
  • the main object of the present invention is to provide a method for installing terminal software, which aims to achieve uniformization of the installation interface when installing software across platforms.
  • the present invention provides a method for installing terminal software, including:
  • the graphic development library supported by the installation system is called, and the running environment of the unified interface is configured;
  • the operating environment supported by the installation system is invoked according to the type of the installation system, and the running environment for configuring the unified interface includes:
  • the operating environment serves as the operating environment for a unified interface.
  • the loading a unified interface control resource configuration table, and displaying the interaction interface includes: loading a default configuration table and a custom configuration table;
  • the installing the software when the software installation instruction is received comprises:
  • the method further comprises: calling the packaged installation system interface to perform software installation during the software installation process.
  • the invention also provides a device for installing terminal software, comprising:
  • the operating environment configuration module is set to: according to the type of the installation system, invoke the graphic development library supported by the installation system, and configure the running environment of the unified interface;
  • the interface interaction module is configured to: load a unified interface control resource configuration table, and display an interaction interface;
  • Install the module set to: Install the software when the software installation instructions are received.
  • the operating environment configuration module includes:
  • the file reading unit is set to: read the installation file and store it in the temporary directory; call the unit, set to: call the graphic development library supported by the installation system, assemble the cross-platform GUI graphics library development interface operating environment as The operating environment of the unified interface.
  • the interface interaction module includes:
  • the configuration table loading unit is set to: load the default configuration table and the custom configuration table; configure the table analysis unit, set to: read the default configuration table, and find out whether there is a configuration item from the corresponding custom configuration table; Modify the information of the unified interface control; otherwise, load the unified interface control and layout;
  • the interface display unit is set to: display the corresponding interactive interface according to the analysis result of the configuration table of the configuration table analysis unit.
  • the installation module comprises:
  • the unpacking unit is set to: receive the software installation instruction, unpack the installation content, and store the fixed directory file in the installation directory;
  • the control unit is set to: acquire the preset rule file, parse it, and control the installation of the software according to the analysis result.
  • the installation module further includes:
  • the interface call unit is set to: Call the packaged installation system interface during software installation to install the software.
  • the embodiment of the present invention configures the running environment of the unified interface according to the type of the installation system before installation, configures the running environment of the unified interface, and then loads the unified interface control resource configuration table, thereby realizing the consistent installation interface of the software in each system. . BRIEF abstract
  • FIG. 1 is a schematic flow chart of an embodiment of a method for installing terminal software according to the present invention
  • FIG. 2 is a schematic flowchart of a configuration of an operating environment in a method for installing a terminal software according to the present invention
  • FIG. 3 is a schematic flowchart showing an interactive interface in a method for installing a terminal software of the present invention
  • FIG. 4 is a software installation in a method for installing a terminal software of the present invention
  • FIG. 5 is a schematic structural diagram of an embodiment of a device for installing terminal software according to the present invention
  • FIG. 6 is a schematic structural diagram of a running environment configuration module in a device for installing terminal software according to the present invention
  • FIG. 7 is a schematic structural diagram of an interface interaction module in a device for installing terminal software of the present invention
  • FIG. 8 is a module for installing a terminal software of the present invention
  • Step S110 according to the type of the installation system, calling the graphic development library supported by the installation system, and configuring the running environment of the unified interface;
  • the current system type of the software installation can be detected. If the current system type is Windows, the MFC is used to implement the configuration of the unified interface operating environment; if the current system type is MAC, then Cocoa is used. The configuration of the operating environment that implements a unified interface.
  • Step S120 loading a unified interface control resource configuration table, and displaying an interactive interface
  • the software's installation interface can be controlled by using the unified interface control resource configuration table.
  • the interactive interface during general software installation includes the welcome screen, the installation selection section, the installation process, and the installation. Therefore, during the software installation process, the unified display of all interactive interfaces can be realized by loading the unified interface control resource configuration table.
  • Step S130 When the software installation instruction is received, the software is installed.
  • the software When a software installation instruction is received, the software is installed according to the software pre-configured installation program.
  • the embodiment of the present invention configures the running environment of the unified interface according to the type of the installation system before installation, configures the running environment of the unified interface, and then loads the unified interface control resource configuration table, thereby realizing the consistent installation interface of the software in each system. .
  • step S110 includes:
  • Step Sl l l read the installation file, and store it in a temporary directory
  • Step S112 Calling the graphics development library supported by the installation system, and assembling the cross-platform GUI graphics library development interface operation environment as a unified interface operation environment.
  • the installation file Upon receiving an execution request from the client-triggered software installation, the installation file is read, unpacked and stored in a temporary directory. For example, the Temp folder under the system drive of the Windows system, the Mac system / tmp directory. Then, according to the type of the installation system, the corresponding graphics development library supported by the system is called, and the running environment of the cross-platform GUI graphics library development interface is assembled as a unified interface.
  • the software installation program includes corresponding graphics development libraries supported by various installation systems. For example, when creating the software installation package, the graphics development libraries supported by the Windows system, the Mac system, and other systems are separately configured. In the runtime environment configuration before the installation program, the graphics development library supported by the installation system is called to set up the running environment of the unified interface.
  • the cross-platform GUI graphics library opens The interface includes interfaces developed by wxPython, Qt, and Web scripts. In this embodiment, the interface developed by Qt is mainly used as a cross-platform GUI graphics library development interface.
  • step S120 includes:
  • Step S121 Load a default configuration table and a custom configuration table.
  • Step S122 Read the default configuration table, and find out whether there is a configuration item from the corresponding custom configuration table; if yes, modify the information of the unified interface control; otherwise, load the unified interface control and layout; Step S123, display the interactive interface.
  • the control logic of the interface mainly implements the display and interaction process of the interface.
  • the control logic of the installation process can be divided into four parts: the welcome interface, the installation option, the installation process, and the installation end.
  • the welcome interface part mainly implements some information about the installation software, such as software name, version information and precautions during installation.
  • the installation options section mainly implements the selection of the installation directory, the creation of shortcuts, and some information that is visible to the user.
  • the installation process mainly implements information display during installation, such as progress information and installation phase information.
  • the installation end section provides some instructions for starting the software and using the software.
  • the configuration table includes a default configuration table and a custom configuration table.
  • the default configuration table can be designed in XML, and each control is designed as a node.
  • the node properties of each node are designed as the names of the controls.
  • the child nodes include: the class of the control class, the parent class parent, the child class child, the position pos, the size size, the color color, the style style, the picture, and the trigger event.
  • the default configuration table is used to configure the location, size, default values, and fonts of the interface elements. This table does not allow user changes, and it can guarantee that the installation process will not fail due to incorrect configuration files.
  • [Installlnfo] implements the installation name, default installation directory, and other settings.
  • Custom configuration table Customized for user interface elements.
  • the customization of the interface elements is mainly caused by changing the default value of the default elements of the interface, the display color of the interface font, whether the elements are displayed on the interface, and whether the installation process of each small step exists.
  • the specific interface display process includes: loading the default configuration table and the custom table, according to the information of the two tables, first reading the default configuration table, and then checking whether there is a configuration from the custom configuration table corresponding to the control in the default configuration table. Item, if there is any, modify the information of the control, otherwise directly load the interface control and layout, and finally display the interactive interface.
  • the above step 130 includes:
  • Step S131 receiving a software installation instruction, unpacking the installation content, and storing the fixed directory file in an installation directory;
  • Step S132 Obtain a preset rule file, analyze it, and control the installation of the software according to the analysis result.
  • the installation of the software is mainly divided into three steps: pre-installation inspection, installation and post-installation functions.
  • the main tasks of the pre-installation check are to check the installed status, whether the previously installed version is clear and clean. If this check step fails, the subsequent steps cannot be performed. After the inspection is completed, enter the installation section. Considering the differences in processing during software installation, such as whether you need to start the background process to detect the running of the device after installation, whether you need the driver files needed to load the device at the end of the installation, whether you need to write the registry information, and whether you need to control the installation package. Size and some files are shared or compressed, etc., so the installation files can be installed locally and can include fixed installation files and custom installation files.
  • the installation first decompresses the installation content and installs it into the specified directory or default directory, then obtains the preset installation rules, and controls the installation of the software according to the installation rules.
  • the preset installation rules file can be set to the following installation rules: support file creation, copy, delete; support registry new delete and modify function; support to start background process and shutdown; support device driver installation and loading functions.
  • the installation rule file mainly includes a global variable area and a function area.
  • the global variable area is mainly used to define variables in the function area to reduce the length of the function area code and enhance legibility and maintainability.
  • the function area defines the operations that need to be added during the installation process.
  • the system interface is called.
  • the main package functions include registry related operations, file directory related operations, shortcut creation, process start and end functions, and privilege escalation functions.
  • the operations of the registry mainly include the functions of creating, deleting, adding and modifying.
  • the operation of files and directories is to create a directory, delete a file or directory, copy a file, or a directory.
  • the creation of shortcuts mainly includes windows desktop shortcuts, quick launch bar, start menu shortcut group and Dock bar shortcuts on Mac system, and desktop shortcut creation interfaces.
  • the start or end function of the process is mainly the call of the system interface such as the startup of the background process and the installation of the driver.
  • the privilege promotion function mainly refers to the operation authority given to different users in the installation directory, and the administrator or owner has the operation authority for the installation directory. Referring to Fig. 5, an embodiment of a mounting apparatus for terminal software of the present invention is proposed.
  • the installation device of the terminal software of this embodiment includes:
  • the running environment configuration module 110 is configured to invoke a graphic development library supported by the installation system according to a type of the installation system, and configure an operating environment of the unified interface;
  • the interface interaction module 120 is configured to load a unified interface control resource configuration table, and display an interaction interface
  • the installation module 130 is configured to perform software installation when receiving a software installation instruction.
  • the operating environment configuration module 110 can detect the current system type of the software installation. If the current system type is Windows, the MFC is used to implement the configuration of the unified interface operating environment; if the current system type is MAC, Then use Cocoa to implement the configuration of the unified interface operating environment.
  • the interface interaction module 120 can control the software installation interface by using the unified interface control resource configuration table.
  • the interactive interface during general software installation includes the welcome interface, the installation selection section, the installation process, and the installation end. Therefore, during the software installation process, the unified display of all interactive interfaces can be realized by loading the unified interface control resource configuration table.
  • the installation module 130 receives the software installation instructions, the software is installed according to the software pre-configured installation program.
  • the embodiment of the present invention configures the running environment of the unified interface according to the type of the installation system before installation, configures the running environment of the unified interface, and then loads the unified interface control resource configuration table, thereby realizing the consistent installation interface of the software in each system. .
  • the above operating environment configuration module 110 includes:
  • the file reading unit 111 is configured to read the installation file and store it in the temporary directory.
  • the graphics library calling unit 112 is configured to invoke the graphic development library supported by the installation system, and assemble The cross-platform GUI graphics library development interface runtime environment serves as a unified interface runtime environment.
  • the file reading unit 111 Upon receiving the execution request of the client-side trigger software installation, the file reading unit 111 will read the installation file, decompress it, and store it in the temporary directory. For example, the Temp folder under the system drive of the Windows system, the Mac system / tmp directory.
  • the calling unit 112 calls the corresponding graphics development library supported by the calling system according to the type of the installation system, and assembles the cross-platform GUI graphics library development interface running environment as a unified interface running environment.
  • the software installation program includes corresponding graphics development libraries supported by various installation systems.
  • the graphics development libraries supported by the Windows system, the Mac system, and other systems are separately configured.
  • the cross-platform GUI graphics library development interface includes interfaces developed by wxPython, Qt, and web scripts.
  • the interface developed by Qt is mainly used as a cross-platform GUI graphics library development interface.
  • the interface interaction module 120 includes:
  • a configuration table loading unit 121 configured to load a default configuration table and a custom configuration table
  • the configuration table analyzing unit 122 is configured to read the default configuration table, and find out whether there is a configuration item from the corresponding custom configuration table; if yes, modify the information of the unified interface control; otherwise, load the unified interface control and layout;
  • the interface display unit 123 is configured to display a corresponding interaction interface according to the configuration table analysis result of the configuration table analysis unit.
  • the control logic of the interface mainly implements the display and interaction process of the interface.
  • the control logic of the installation process can be divided into four parts: the welcome interface, the installation option, the installation process, and the installation end.
  • the configuration table includes a default configuration table and a custom configuration table.
  • the specific interface display process includes: loading the default configuration table and the custom table by the configuration table loading unit 121, and the configuration table analyzing unit 122 first reads the default configuration table according to the information of the two tables, and then controls from the default configuration table.
  • the corresponding custom configuration table checks whether there is a configuration item, and if so, modifies the information of the control, otherwise directly loads the interface control and the layout, and finally displays the interactive interface through the interface display unit 123.
  • the above installation module 130 includes:
  • the unpacking unit 131 is configured to receive the software installation instruction, unpack the installation content, and store the fixed directory file in the installation directory;
  • the control unit 132 is configured to acquire a preset rule file, and parse the rule file according to the parsing The result is the installation of the control software.
  • the installation of the software is mainly divided into three steps: pre-installation inspection, installation and post-installation functions.
  • the main tasks of the pre-installation check are to check the installed status, whether the previously installed version is clear and clean. If this check step fails, the subsequent steps cannot be performed. After the inspection is completed, enter the installation section. Considering the differences in processing during software installation, such as whether you need to start the background process to detect the running of the device after installation, whether you need the driver files needed to load the device at the end of the installation, whether you need to write the registry information, and whether you need to control the installation package. Size and some files are shared or compressed, so in the software program, some installation rules need to be configured, and the designer can customize the rules to be followed during the installation process.
  • the installation contents are decompressed and installed to the specified directory or the default directory, and then the preset installation rules are obtained, and the installation of the software is controlled according to the installation rules.
  • Files installed locally can include fixed installation files and custom installation files.
  • the above installation module 130 further includes:
  • the interface calling unit 133 is configured to invoke the packaged installation system interface during software installation to install the software.
  • the main package functions include registry related operations, file directory related operations, shortcut creation, process start and end functions, and privilege escalation functions.
  • the operations of the registry mainly include the functions of creating, deleting, adding and modifying.
  • the operation of files and directories is to create a directory, delete a file or directory, copy a file, or a directory.
  • the creation of shortcuts mainly includes windows desktop shortcuts, quick launch bar, start menu shortcut group and Dock bar shortcuts on Mac system, and desktop shortcut creation interfaces.
  • the start or end function of the process is mainly the call of the system interface such as the startup of the background process and the installation of the driver.
  • the privilege promotion function mainly refers to the operation authority given to different users in the installation directory, and the administrator or owner has the operation authority for the installation directory.
  • the interface is displayed by loading the default configuration table and the custom configuration table, and the customized installation rule file is invoked during the installation process, thereby realizing the interface and the installation process.

Abstract

An installation method and device for terminal software. The installation method for terminal software comprises: according to the type of an installation system, calling a graphic development library supported by the installation system, and configuring an operating environment of a unified interface (S110); loading a unified interface control resource configuration table, and displaying an interactive interface (S120); and performing software installation when receiving a software installation instruction (S130). The technical solution calls a graphic development library supported thereby according to the type of an installation system, configures an operating environment of a unified interface, and then loads a unified interface control resource configuration table before installation, thus realizing the installation interface consistency of software in various systems.

Description

终端软件的安装方法及装置  Terminal software installation method and device
技术领域 Technical field
本发明涉及软件安装领域, 尤其涉及一种可定制统一界面终端软件的安 装方法及装置。  The present invention relates to the field of software installation, and in particular, to a method and apparatus for installing a customizable unified interface terminal software.
背景技术 Background technique
随着通讯事业的迅速发展, 客户对终端软件的要求也在逐步提升。 对安 装软件过程也提出了许多新需求, 如安装过程中不美观、 需要在安装软件时 安装第三方软件、 软件语言显示要求等。  With the rapid development of the communication industry, customers' requirements for terminal software are gradually increasing. Many new requirements have also been placed on the installation of the software process, such as the unsatisfactory installation process, the need to install third-party software when installing the software, and the software language display requirements.
目前, 终端软件的发布是应用各个系统上的打包软件来实现的, 例如 Windows系统上使用的 Install Shield, MAC系统上使用的是 PackageMaker。 但是其存在的问题主要有: 首先, 使用这些打包软件发布的软件版本, 在不 同的系统上安装过程相差很大, 安装的流程也不一致, 一些功能表现也不一 致; 其次, 存在软件的安装界面也和软件的风格不一致; 最后, 安装过程界 面无法更改。  Currently, the release of terminal software is implemented by using packaged software on various systems, such as Install Shield used on Windows systems and PackageMaker on MAC systems. However, the main problems are as follows: First, using the software versions released by these packaged software, the installation process varies greatly on different systems, the installation process is also inconsistent, and some functions are also inconsistent; secondly, there is a software installation interface. Inconsistent with the style of the software; finally, the installation process interface cannot be changed.
发明内容 Summary of the invention
本发明的主要目的是提供一种终端软件的安装方法, 旨在实现跨平台安 装软件时的安装界面统一。  The main object of the present invention is to provide a method for installing terminal software, which aims to achieve uniformization of the installation interface when installing software across platforms.
本发明提供了一种终端软件的安装方法, 包括:  The present invention provides a method for installing terminal software, including:
根据安装系统的类型, 调用所述安装系统支持的图形开发库, 配置统一 界面的运行环境;  According to the type of the installation system, the graphic development library supported by the installation system is called, and the running environment of the unified interface is configured;
加载统一界面控件资源配置表, 并显示交互界面;  Loading a unified interface control resource configuration table, and displaying an interactive interface;
接收到软件安装指令时进行软件的安装。  Install the software when you receive the software installation instructions.
优选地, 所述根据安装系统的类型, 调用所述安装系统支持的图形开发 库, 配置统一界面的运行环境包括:  Preferably, the operating environment supported by the installation system is invoked according to the type of the installation system, and the running environment for configuring the unified interface includes:
读取安装文件, 并将其存放在临时目录中;  Read the installation file and store it in a temporary directory;
调用所述安装系统支持的图形开发库, 组装跨平台 GUI图形库开发界面 运行环境作为统一界面的运行环境。 Calling the graphics development library supported by the installation system, assembling a cross-platform GUI graphics library development interface The operating environment serves as the operating environment for a unified interface.
优选地, 所述加载统一界面控件资源配置表, 并显示交互界面包括: 加载默认配置表和自定义配置表;  Preferably, the loading a unified interface control resource configuration table, and displaying the interaction interface includes: loading a default configuration table and a custom configuration table;
读取默认配置表, 并从相应的自定义配置表中查找是否存在配置项; 若 存在则修改统一界面控制的信息; 否则加载统一界面控制和布局;  Read the default configuration table, and find out whether there is a configuration item from the corresponding custom configuration table; if it exists, modify the information of the unified interface control; otherwise, load the unified interface control and layout;
显示交互界面。  Display the interactive interface.
优选地, 所述接收到软件安装指令时进行软件的安装包括:  Preferably, the installing the software when the software installation instruction is received comprises:
接收到软件安装指令, 将安装内容进行解包处理, 并将固定目录文件存 放至安装目录中;  Receiving the software installation instruction, unpacking the installation content, and storing the fixed directory file in the installation directory;
获取预置的规则文件,并对其进行解析,根据解析结果控制软件的安装。 优选地, 还包括: 在软件安装过程中还调用封装好的安装系统接口进行 软件的安装。 本发明还提供了一种终端软件的安装装置, 包括:  Obtain the preset rule file, parse it, and control the software installation according to the analysis result. Preferably, the method further comprises: calling the packaged installation system interface to perform software installation during the software installation process. The invention also provides a device for installing terminal software, comprising:
运行环境配置模块, 设置为: 根据安装系统的类型, 调用所述安装系统 支持的图形开发库, 配置统一界面的运行环境;  The operating environment configuration module is set to: according to the type of the installation system, invoke the graphic development library supported by the installation system, and configure the running environment of the unified interface;
界面交互模块, 设置为: 加载统一界面控件资源配置表, 并显示交互界 面;  The interface interaction module is configured to: load a unified interface control resource configuration table, and display an interaction interface;
安装模块, 设置为: 接收到软件安装指令时进行软件的安装。  Install the module, set to: Install the software when the software installation instructions are received.
优选地, 所述运行环境配置模块包括:  Preferably, the operating environment configuration module includes:
文件读取单元, 设置为: 读取安装文件, 并将其存放在临时目录中; 调用单元, 设置为: 调用所述安装系统支持的图形开发库, 组装跨平台 GUI图形库开发界面运行环境作为统一界面的运行环境。  The file reading unit is set to: read the installation file and store it in the temporary directory; call the unit, set to: call the graphic development library supported by the installation system, assemble the cross-platform GUI graphics library development interface operating environment as The operating environment of the unified interface.
优选地, 所述界面交互模块包括:  Preferably, the interface interaction module includes:
配置表加载单元, 设置为: 加载默认配置表和自定义配置表; 配置表分析单元, 设置为: 读取默认配置表, 并从相应的自定义配置表 中查找是否存在配置项; 若存在则修改统一界面控制的信息; 否则加载统一 界面控制和布局;  The configuration table loading unit is set to: load the default configuration table and the custom configuration table; configure the table analysis unit, set to: read the default configuration table, and find out whether there is a configuration item from the corresponding custom configuration table; Modify the information of the unified interface control; otherwise, load the unified interface control and layout;
界面显示单元, 设置为: 根据配置表分析单元的配置表分析结果显示相 应的交互界面。 优选地, 所述安装模块包括: The interface display unit is set to: display the corresponding interactive interface according to the analysis result of the configuration table of the configuration table analysis unit. Preferably, the installation module comprises:
解包单元, 设置为: 接收到软件安装指令, 将安装内容进行解包处理, 并将固定目录文件存放至安装目录中;  The unpacking unit is set to: receive the software installation instruction, unpack the installation content, and store the fixed directory file in the installation directory;
控制单元, 设置为: 获取预置的规则文件, 并对其进行解析, 根据解析 结果控制软件的安装。  The control unit is set to: acquire the preset rule file, parse it, and control the installation of the software according to the analysis result.
优选地, 所述安装模块还包括:  Preferably, the installation module further includes:
接口调用单元, 设置为: 在软件安装过程中调用封装好的安装系统接口 进行软件的安装。 本发明实施例通过安装之前根据安装系统的类型调用自身所支持的图形 开发库, 配置统一界面的运行环境, 然后加载统一界面控件资源配置表, 从 而实现了在各个系统中, 软件的安装界面一致。 附图概述  The interface call unit is set to: Call the packaged installation system interface during software installation to install the software. The embodiment of the present invention configures the running environment of the unified interface according to the type of the installation system before installation, configures the running environment of the unified interface, and then loads the unified interface control resource configuration table, thereby realizing the consistent installation interface of the software in each system. . BRIEF abstract
图 1是本发明终端软件的安装方法一实施例的流程示意图;  1 is a schematic flow chart of an embodiment of a method for installing terminal software according to the present invention;
图 2是本发明终端软件的安装方法中运行环境配置的流程示意图; 图 3是本发明终端软件的安装方法中显示交互界面的流程示意图; 图 4是本发明终端软件的安装方法中进行软件安装的流程示意图; 图 5是本发明终端软件的安装装置一实施例的结构示意图;  2 is a schematic flowchart of a configuration of an operating environment in a method for installing a terminal software according to the present invention; FIG. 3 is a schematic flowchart showing an interactive interface in a method for installing a terminal software of the present invention; FIG. 4 is a software installation in a method for installing a terminal software of the present invention; FIG. 5 is a schematic structural diagram of an embodiment of a device for installing terminal software according to the present invention;
图 6是本发明终端软件的安装装置中运行环境配置模块的结构示意图; 图 7是本发明终端软件的安装装置中界面交互模块的结构示意图; 图 8是本发明终端软件的安装装置中安装模块的结构示意图。 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步 说明。 本发明的较佳实施方式  6 is a schematic structural diagram of a running environment configuration module in a device for installing terminal software according to the present invention; FIG. 7 is a schematic structural diagram of an interface interaction module in a device for installing terminal software of the present invention; FIG. 8 is a module for installing a terminal software of the present invention; Schematic diagram of the structure. The implementation, functional features, and advantages of the present invention will be further described with reference to the accompanying drawings. Preferred embodiment of the invention
以下结合说明书附图及具体实施例进一步说明本发明的技术方案。 应当 理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 参照图 1 ,提出本发明终端软件的安装方法一实施例。该终端软件的安装 方法包括以下步骤: The technical solutions of the present invention are further described below in conjunction with the drawings and specific embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Referring to Figure 1, an embodiment of a method of installing terminal software of the present invention is presented. The installation method of the terminal software includes the following steps:
步骤 S110、根据安装系统的类型,调用所述安装系统支持的图形开发库, 配置统一界面的运行环境;  Step S110, according to the type of the installation system, calling the graphic development library supported by the installation system, and configuring the running environment of the unified interface;
在软件安装开始, 可以检测软件安装的当前系统的类型, 若当前系统的 类型为 Windows, 则釆用 MFC来实现统一界面的运行环境的配置; 若当前系 统的类型为 MAC, 则釆用 Cocoa来实现统一界面的运行环境的配置。  At the beginning of the software installation, the current system type of the software installation can be detected. If the current system type is Windows, the MFC is used to implement the configuration of the unified interface operating environment; if the current system type is MAC, then Cocoa is used. The configuration of the operating environment that implements a unified interface.
步骤 S120、 加载统一界面控件资源配置表, 并显示交互界面;  Step S120, loading a unified interface control resource configuration table, and displaying an interactive interface;
通过使用统一界面控件资源配置表, 可以控制软件的安装界面。 一般软 件安装过程中的交互界面包括欢迎界面、 安装选择部分、 安装过程和安装结 束。 因此, 在软件安装过程中, 通过加载统一界面控件资源配置表, 即可实 现所有交互界面的统一显示。  The software's installation interface can be controlled by using the unified interface control resource configuration table. The interactive interface during general software installation includes the welcome screen, the installation selection section, the installation process, and the installation. Therefore, during the software installation process, the unified display of all interactive interfaces can be realized by loading the unified interface control resource configuration table.
步骤 S130、 接收到软件安装指令时, 进行软件的安装。  Step S130: When the software installation instruction is received, the software is installed.
接收到软件安装指令时, 则根据软件预先配置的安装程序进行软件的安 装。  When a software installation instruction is received, the software is installed according to the software pre-configured installation program.
本发明实施例通过安装之前根据安装系统的类型调用自身所支持的图形 开发库, 配置统一界面的运行环境, 然后加载统一界面控件资源配置表, 从 而实现了在各个系统中, 软件的安装界面一致。  The embodiment of the present invention configures the running environment of the unified interface according to the type of the installation system before installation, configures the running environment of the unified interface, and then loads the unified interface control resource configuration table, thereby realizing the consistent installation interface of the software in each system. .
参照图 2, 上述步骤 S110包括:  Referring to FIG. 2, the foregoing step S110 includes:
步骤 Sl l l、 读取安装文件, 并将其存放在临时目录中;  Step Sl l l, read the installation file, and store it in a temporary directory;
步骤 S112、 调用所述安装系统支持的图形开发库, 组装跨平台 GUI图形 库开发界面运行环境作为统一界面的运行环境。  Step S112: Calling the graphics development library supported by the installation system, and assembling the cross-platform GUI graphics library development interface operation environment as a unified interface operation environment.
在接收到用户端触发软件安装的执行请求时, 将读取安装文件, 将其解 压并存放在临时目录中。 例如 Windows系统的系统盘符下的 Temp文件夹, Mac系统 /tmp目录。 然后根据安装系统的类型, 调用其支持的相应图形开发 库, 组装跨平台 GUI图形库开发界面运行环境作为统一界面的运行环境。 应 当理解, 该软件安装程序中包括各种安装系统所支持的相应图形开发库。 例 如在制作该软件安装包时, 即分别配置 Windows系统、 Mac系统及其他系统 所支持的图形开发库。 在安装程序之前的运行环境配置时, 调用安装系统各 自支持的图形开发库, 来组建统一界面的运行环境。 该跨平台 GUI图形库开 发界面包括 wxPython、 Qt和 Web脚本所开发的界面, 本实施例中主要以 Qt开 发的界面作为跨平台 GUI图形库开发界面。 Upon receiving an execution request from the client-triggered software installation, the installation file is read, unpacked and stored in a temporary directory. For example, the Temp folder under the system drive of the Windows system, the Mac system / tmp directory. Then, according to the type of the installation system, the corresponding graphics development library supported by the system is called, and the running environment of the cross-platform GUI graphics library development interface is assembled as a unified interface. It should be understood that the software installation program includes corresponding graphics development libraries supported by various installation systems. For example, when creating the software installation package, the graphics development libraries supported by the Windows system, the Mac system, and other systems are separately configured. In the runtime environment configuration before the installation program, the graphics development library supported by the installation system is called to set up the running environment of the unified interface. The cross-platform GUI graphics library opens The interface includes interfaces developed by wxPython, Qt, and Web scripts. In this embodiment, the interface developed by Qt is mainly used as a cross-platform GUI graphics library development interface.
参照图 3 , 上述步骤 S120包括:  Referring to FIG. 3, the above step S120 includes:
步骤 S121、 加载默认配置表和自定义配置表;  Step S121: Load a default configuration table and a custom configuration table.
步骤 S122、 读取默认配置表, 并从相应的自定义配置表中查找是否存在 配置项;若存在则修改统一界面控制的信息;否则加载统一界面控制和布局; 步骤 S123、 显示交互界面。  Step S122: Read the default configuration table, and find out whether there is a configuration item from the corresponding custom configuration table; if yes, modify the information of the unified interface control; otherwise, load the unified interface control and layout; Step S123, display the interactive interface.
安装程序过程中都会有交互界面, 因此必须对界面进行控制。 而界面的 控制逻辑主要实现界面的显示及交互的流程。 本实施例中, 安装过程的控制 逻辑可分为四个部分: 欢迎界面、 安装选项、 安装过程和安装结束。 其中, 欢迎界面部分主要实现安装软件的一些信息, 如软件名称、 版本信息和安装 时的注意事项。 安装选项部分主要实现安装目录的选择、 快捷方式的创建信 息和一些用户可见的一些信息。 安装过程部分主要实现安装时信息显示, 如 进度信息、 安装阶段信息等。 安装结束部分实现软件的启动和软件使用的一 些说明信息。  There will be an interactive interface during the installation process, so the interface must be controlled. The control logic of the interface mainly implements the display and interaction process of the interface. In this embodiment, the control logic of the installation process can be divided into four parts: the welcome interface, the installation option, the installation process, and the installation end. Among them, the welcome interface part mainly implements some information about the installation software, such as software name, version information and precautions during installation. The installation options section mainly implements the selection of the installation directory, the creation of shortcuts, and some information that is visible to the user. The installation process mainly implements information display during installation, such as progress information and installation phase information. The installation end section provides some instructions for starting the software and using the software.
在安装程序过程中 ,根据控制逻辑分别获取上述四个部分相应的配置表, 以根据配置表中相应的配置显示交互界面。 该配置表包括默认配置表和自定 义配置表。默认配置表可釆用 XML的方式来设计,每个控件设计为一个节点。 每个节点的节点属性设计为控件的名称,子节点分别包括:控件的类别 class、 父类 parent、 子类 child、 位置 pos、 大小 size、 颜色 color、 风格 style、 图片和触 发事件等项。 默认配置表用于对界面元素的位置、 大小、 默认值和字体等进 行配置, 此表不允许使用者改动, 可以保证安装过程不会因为配置文件不正 确而造成安装的失败。  During the installation process, the corresponding configuration tables of the above four parts are respectively obtained according to the control logic, so as to display the interaction interface according to the corresponding configuration in the configuration table. The configuration table includes a default configuration table and a custom configuration table. The default configuration table can be designed in XML, and each control is designed as a node. The node properties of each node are designed as the names of the controls. The child nodes include: the class of the control class, the parent class parent, the child class child, the position pos, the size size, the color color, the style style, the picture, and the trigger event. The default configuration table is used to configure the location, size, default values, and fonts of the interface elements. This table does not allow user changes, and it can guarantee that the installation process will not fail due to incorrect configuration files.
自定义配置表可包括 [InstallProcess]、 [Interfaceltems]、 [Items Value]、 [ItemsColor] 、 [Installlnfo]几个部分。 每部分配置项釆用名称等于值的方式。 其中, [InstallProcess]实现安装过程的设置, 如安装过程中不需要欢迎部分, 可以设计为 WelcomePhase=False。 [Interfaceltems]实现控件的隐藏功能, 如不 需要欢迎界面的警告信息, 可以将警告信息设置为 False信息。 [ItemValue]实 现界面显示的字串的内容, 控件默认的值等信息。 [ItemColor]实现控件字体 显示。 [Installlnfo]实现安装的名称、 默认安装目录等设置。 自定义配置表, 用于使用者对界面元素进行自定义的定制。 界面元素的定制主要由更改界面 默认元素的默认值、 界面字体的显示颜色、 元素是否显示在界面上和每一小 步的安装过程是否存在等问题。 Custom configuration tables can include [InstallProcess], [Interfaceltems], [Items Value], [ItemsColor], [Installlnfo] sections. Each part of the configuration item uses a name equal to the value. Among them, [InstallProcess] implements the installation process settings, such as the welcome part in the installation process, you can design it as WelcomePhase=False. [Interfaceltems] implements the hidden function of the control. If the warning message of the welcome interface is not needed, the warning message can be set to False information. [ItemValue] implements the contents of the string displayed by the interface, the default value of the control, and other information. [ItemColor] implements control font display. [Installlnfo] implements the installation name, default installation directory, and other settings. Custom configuration table, Customized for user interface elements. The customization of the interface elements is mainly caused by changing the default value of the default elements of the interface, the display color of the interface font, whether the elements are displayed on the interface, and whether the installation process of each small step exists.
具体的界面显示过程包括: 加载默认配置表和自定义表, 根据两个表的 信息, 先读取默认配置表, 再从与默认配置表中控件所对应的自定义配置表 中检查是否有配置项, 如果有则修改控件的信息, 否则直接加载界面控件和 布局, 最后再显示交互界面。  The specific interface display process includes: loading the default configuration table and the custom table, according to the information of the two tables, first reading the default configuration table, and then checking whether there is a configuration from the custom configuration table corresponding to the control in the default configuration table. Item, if there is any, modify the information of the control, otherwise directly load the interface control and layout, and finally display the interactive interface.
参照图 4, 上述步骤 130包括:  Referring to FIG. 4, the above step 130 includes:
步骤 S131、 接收到软件安装指令, 将安装内容进行解包处理, 并将固定 目录文件存放至安装目录中;  Step S131, receiving a software installation instruction, unpacking the installation content, and storing the fixed directory file in an installation directory;
步骤 S132、 获取预置的规则文件, 并对其进行解析, 根据解析结果控制 软件的安装。  Step S132: Obtain a preset rule file, analyze it, and control the installation of the software according to the analysis result.
软件的安装主要分为三个步骤: 安装前检查、 安装和安装后功能。 其中 安装前检查主要任务是检查已安装的情况、 以前安装的版本是否清楚干净等 功能。 如果此检查步骤失败, 则后面的步骤不能进行。 检查完毕后, 进入安 装部分。 考虑到软件安装时处理的差异性, 例如安装后是否需要启动后台进 程检测设备的运行、 是否需要在安装结束加载设备所需要的驱动文件、 是否 需要写入注册表信息、 是否需要控制安装包的大小而一些文件进行共用或压 缩等, 因此安装文件到本地时可包括固定安装文件和自定义安装文件。 安装 时先把安装内容进行解压并安装到指定目录或默认目录, 然后获取预置的安 装规则, 并根据该安装规则控制软件的安装。  The installation of the software is mainly divided into three steps: pre-installation inspection, installation and post-installation functions. The main tasks of the pre-installation check are to check the installed status, whether the previously installed version is clear and clean. If this check step fails, the subsequent steps cannot be performed. After the inspection is completed, enter the installation section. Considering the differences in processing during software installation, such as whether you need to start the background process to detect the running of the device after installation, whether you need the driver files needed to load the device at the end of the installation, whether you need to write the registry information, and whether you need to control the installation package. Size and some files are shared or compressed, etc., so the installation files can be installed locally and can include fixed installation files and custom installation files. The installation first decompresses the installation content and installs it into the specified directory or default directory, then obtains the preset installation rules, and controls the installation of the software according to the installation rules.
预置的安装规则文件可以设置如下安装规则: 支持文件的创建, 拷贝、 删除; 支持注册表新建删除和修改功能; 支持启动后台进程和关闭; 支持设 备驱动的安装和加载等功能。 本发明实施例中, 安装规则文件主要包括包括 全局变量区域和函数区域。 全局变量区域, 主要是定义函数区域中会用到变 量, 以减少函数区域代码的长度, 增强易读性和维护性。 函数区域定义安装 过程中, 需要增加的操作。  The preset installation rules file can be set to the following installation rules: support file creation, copy, delete; support registry new delete and modify function; support to start background process and shutdown; support device driver installation and loading functions. In the embodiment of the present invention, the installation rule file mainly includes a global variable area and a function area. The global variable area is mainly used to define variables in the function area to reduce the length of the function area code and enhance legibility and maintainability. The function area defines the operations that need to be added during the installation process.
由于实现软件的跨平台安装, 因此在安装过程中需要考虑屏蔽系统差异 性调用, 因此在软件安装程序的开发中, 需要针对不同的安装系统, 对其系 统接口的调用进行封装, 以便在跨平台软件安装过程中可以实现不同安装系 统的接口调用。 主要封装功能有注册表相关操作、 文件目录的相关操作、 快 捷方式的创建、 进程的启动和结束功能、 权限提升功能。 注册表的操作主要 有创建、 删除、 增加和修改功能。 文件和目录的操作有创建目录、 删除文件 或目录、 拷贝文件或目录。 快捷方式的创建主要包括 windows的桌面快捷方 式、 快速启动栏、 开始菜单快捷方式组和 Mac系统上 Dock栏快捷方式、 桌面 快捷方式的创建接口。 进程的启动或结束功能, 主要是后台进程的启动、 驱 动的安装等系统接口的调用。 权限提升功能主要是指安装目录下对不同用户 给予的操作权限, 管理员还是所有人拥有对安装目录的操作权限等。 参照图 5 , 提出本发明终端软件的安装装置一实施例。 该实施例的终端 软件的安装装置包括: Due to the cross-platform installation of the software, the differential call of the shielded system needs to be considered during the installation process. Therefore, in the development of the software installer, the call of the system interface needs to be encapsulated for different installation systems, so as to be cross-platform. Different installation systems can be implemented during software installation The system interface is called. The main package functions include registry related operations, file directory related operations, shortcut creation, process start and end functions, and privilege escalation functions. The operations of the registry mainly include the functions of creating, deleting, adding and modifying. The operation of files and directories is to create a directory, delete a file or directory, copy a file, or a directory. The creation of shortcuts mainly includes windows desktop shortcuts, quick launch bar, start menu shortcut group and Dock bar shortcuts on Mac system, and desktop shortcut creation interfaces. The start or end function of the process is mainly the call of the system interface such as the startup of the background process and the installation of the driver. The privilege promotion function mainly refers to the operation authority given to different users in the installation directory, and the administrator or owner has the operation authority for the installation directory. Referring to Fig. 5, an embodiment of a mounting apparatus for terminal software of the present invention is proposed. The installation device of the terminal software of this embodiment includes:
运行环境配置模块 110 , 用于根据安装系统的类型, 调用所述安装系统 支持的图形开发库, 配置统一界面的运行环境;  The running environment configuration module 110 is configured to invoke a graphic development library supported by the installation system according to a type of the installation system, and configure an operating environment of the unified interface;
界面交互模块 120, 用于加载统一界面控件资源配置表, 并显示交互界 面;  The interface interaction module 120 is configured to load a unified interface control resource configuration table, and display an interaction interface;
安装模块 130 , 用于接收到软件安装指令时进行软件的安装。  The installation module 130 is configured to perform software installation when receiving a software installation instruction.
在软件安装开始, 运行环境配置模块 110可以检测软件安装的当前系统 的类型, 若当前系统的类型为 Windows, 则釆用 MFC来实现统一界面的运 行环境的配置; 若当前系统的类型为 MAC, 则釆用 Cocoa来实现统一界面 的运行环境的配置。 界面交互模块 120通过使用统一界面控件资源配置表, 可以控制软件的安装界面。 一般软件安装过程中的交互界面包括欢迎界面、 安装选择部分、 安装过程和安装结束。 因此, 在软件安装过程中, 通过加载 统一界面控件资源配置表,即可实现所有交互界面的统一显示。安装模块 130 接收到软件安装指令时, 则根据软件预先配置的安装程序进行软件的安装。  At the beginning of the software installation, the operating environment configuration module 110 can detect the current system type of the software installation. If the current system type is Windows, the MFC is used to implement the configuration of the unified interface operating environment; if the current system type is MAC, Then use Cocoa to implement the configuration of the unified interface operating environment. The interface interaction module 120 can control the software installation interface by using the unified interface control resource configuration table. The interactive interface during general software installation includes the welcome interface, the installation selection section, the installation process, and the installation end. Therefore, during the software installation process, the unified display of all interactive interfaces can be realized by loading the unified interface control resource configuration table. When the installation module 130 receives the software installation instructions, the software is installed according to the software pre-configured installation program.
本发明实施例通过安装之前根据安装系统的类型调用自身所支持的图形 开发库, 配置统一界面的运行环境, 然后加载统一界面控件资源配置表, 从 而实现了在各个系统中, 软件的安装界面一致。  The embodiment of the present invention configures the running environment of the unified interface according to the type of the installation system before installation, configures the running environment of the unified interface, and then loads the unified interface control resource configuration table, thereby realizing the consistent installation interface of the software in each system. .
参照图 6, 上述运行环境配置模块 110包括:  Referring to FIG. 6, the above operating environment configuration module 110 includes:
文件读取单元 111 , 用于读取安装文件, 并将其存放在临时目录中; 图形库调用单元 112, 用于调用所述安装系统支持的图形开发库, 组装 跨平台 GUI图形库开发界面运行环境作为统一界面的运行环境。 在接收到用户端触发软件安装的执行请求时,文件读取单元 111将读取安 装文件, 将其解压并存放在临时目录中。 例如 Windows系统的系统盘符下的 Temp文件夹, Mac系统 /tmp目录。 然后调用单元 112根据安装系统的类型, 调 用其支持的相应图形开发库, 组装跨平台 GUI图形库开发界面运行环境作为 统一界面的运行环境。 应当理解, 该软件安装程序中包括各种安装系统所支 持的相应图形开发库。 例如在制作该软件安装包时, 即分别配置 Windows系 统、 Mac系统及其他系统所支持的图形开发库。 在安装程序之前的运行环境 配置时,调用安装系统各自支持的图形开发库,来组建统一界面的运行环境。 该跨平台 GUI图形库开发界面包括 wxPython、 Qt和 Web脚本所开发的界面, 本实施例中主要以 Qt开发的界面作为跨平台 GUI图形库开发界面。 The file reading unit 111 is configured to read the installation file and store it in the temporary directory. The graphics library calling unit 112 is configured to invoke the graphic development library supported by the installation system, and assemble The cross-platform GUI graphics library development interface runtime environment serves as a unified interface runtime environment. Upon receiving the execution request of the client-side trigger software installation, the file reading unit 111 will read the installation file, decompress it, and store it in the temporary directory. For example, the Temp folder under the system drive of the Windows system, the Mac system / tmp directory. Then, the calling unit 112 calls the corresponding graphics development library supported by the calling system according to the type of the installation system, and assembles the cross-platform GUI graphics library development interface running environment as a unified interface running environment. It should be understood that the software installation program includes corresponding graphics development libraries supported by various installation systems. For example, when creating the software installation package, the graphics development libraries supported by the Windows system, the Mac system, and other systems are separately configured. In the runtime environment configuration before the installation program, call the graphics development library supported by the installation system to set up the running environment of the unified interface. The cross-platform GUI graphics library development interface includes interfaces developed by wxPython, Qt, and web scripts. In this embodiment, the interface developed by Qt is mainly used as a cross-platform GUI graphics library development interface.
参照图 7 , 上述界面交互模块 120包括:  Referring to FIG. 7, the interface interaction module 120 includes:
配置表加载单元 121 , 用于加载默认配置表和自定义配置表;  a configuration table loading unit 121, configured to load a default configuration table and a custom configuration table;
配置表分析单元 122,用于读取默认配置表,并从相应的自定义配置表中 查找是否存在配置项; 若存在则修改统一界面控制的信息; 否则加载统一界 面控制和布局;  The configuration table analyzing unit 122 is configured to read the default configuration table, and find out whether there is a configuration item from the corresponding custom configuration table; if yes, modify the information of the unified interface control; otherwise, load the unified interface control and layout;
界面显示单元 123 , 用于根据配置表分析单元的配置表分析结果显示相 应的交互界面。  The interface display unit 123 is configured to display a corresponding interaction interface according to the configuration table analysis result of the configuration table analysis unit.
安装程序过程中都会有交互界面, 因此必须对界面进行控制。 而界面的 控制逻辑主要实现界面的显示及交互的流程。 本实施例中, 安装过程的控制 逻辑可分为四个部分: 欢迎界面、 安装选项、 安装过程和安装结束。 该配置 表包括默认配置表和自定义配置表。 具体的界面显示过程包括: 通过配置表 加载单元 121加载默认配置表和自定义表, 配置表分析单元 122则根据两个 表的信息, 先读取默认配置表, 再从与默认配置表中控件所对应的自定义配 置表中检查是否有配置项, 如果有则修改控件的信息, 否则直接加载界面控 件和布局, 最后再通过界面显示单元 123显示交互界面。  There will be an interactive interface during the installation process, so the interface must be controlled. The control logic of the interface mainly implements the display and interaction process of the interface. In this embodiment, the control logic of the installation process can be divided into four parts: the welcome interface, the installation option, the installation process, and the installation end. The configuration table includes a default configuration table and a custom configuration table. The specific interface display process includes: loading the default configuration table and the custom table by the configuration table loading unit 121, and the configuration table analyzing unit 122 first reads the default configuration table according to the information of the two tables, and then controls from the default configuration table. The corresponding custom configuration table checks whether there is a configuration item, and if so, modifies the information of the control, otherwise directly loads the interface control and the layout, and finally displays the interactive interface through the interface display unit 123.
参照图 8, 上述安装模块 130包括:  Referring to Figure 8, the above installation module 130 includes:
解包单元 131 , 用于接收到软件安装指令, 将安装内容进行解包处理, 并 将固定目录文件存放至安装目录中;  The unpacking unit 131 is configured to receive the software installation instruction, unpack the installation content, and store the fixed directory file in the installation directory;
控制单元 132 , 用于获取预置的规则文件, 并对其进行解析, 根据解析 结果控制软件的安装。 The control unit 132 is configured to acquire a preset rule file, and parse the rule file according to the parsing The result is the installation of the control software.
软件的安装主要分为三个步骤: 安装前检查、 安装和安装后功能。 其中 安装前检查主要任务是检查已安装的情况、 以前安装的版本是否清楚干净等 功能。 如果此检查步骤失败, 则后面的步骤不能进行。 检查完毕后, 进入安 装部分。 考虑到软件安装时处理的差异性, 例如安装后是否需要启动后台进 程检测设备的运行、 是否需要在安装结束加载设备所需要的驱动文件、 是否 需要写入注册表信息、 是否需要控制安装包的大小而一些文件进行共用或压 缩等, 因此在软件程序中, 需要配置一些安装规则, 设计者可以自定义安装 过程中遵循的规则。 安装时先把安装内容进行解压并安装到指定目录或默认 目录, 然后获取预置的安装规则, 并根据该安装规则控制软件的安装。 安装 到本地的文件可包括固定安装文件和自定义安装文件。  The installation of the software is mainly divided into three steps: pre-installation inspection, installation and post-installation functions. The main tasks of the pre-installation check are to check the installed status, whether the previously installed version is clear and clean. If this check step fails, the subsequent steps cannot be performed. After the inspection is completed, enter the installation section. Considering the differences in processing during software installation, such as whether you need to start the background process to detect the running of the device after installation, whether you need the driver files needed to load the device at the end of the installation, whether you need to write the registry information, and whether you need to control the installation package. Size and some files are shared or compressed, so in the software program, some installation rules need to be configured, and the designer can customize the rules to be followed during the installation process. At the time of installation, the installation contents are decompressed and installed to the specified directory or the default directory, and then the preset installation rules are obtained, and the installation of the software is controlled according to the installation rules. Files installed locally can include fixed installation files and custom installation files.
上述安装模块 130还包括:  The above installation module 130 further includes:
接口调用单元 133 , 用于在软件安装过程中调用封装好的安装系统接口 进行软件的安装。  The interface calling unit 133 is configured to invoke the packaged installation system interface during software installation to install the software.
由于实现软件的跨平台安装, 因此在安装过程中需要考虑屏蔽系统差异 性调用, 因此在软件安装程序的开发中, 需要针对不同的安装系统, 对其系 统接口的调用进行封装, 以便在跨平台软件安装过程中可以实现不同安装系 统的接口调用。 主要封装功能有注册表相关操作、 文件目录的相关操作、 快 捷方式的创建、 进程的启动和结束功能、 权限提升功能。 注册表的操作主要 有创建、 删除、 增加和修改功能。 文件和目录的操作有创建目录、 删除文件 或目录、 拷贝文件或目录。 快捷方式的创建主要包括 windows的桌面快捷方 式、 快速启动栏、 开始菜单快捷方式组和 Mac系统上 Dock栏快捷方式、 桌面 快捷方式的创建接口。 进程的启动或结束功能, 主要是后台进程的启动、 驱 动的安装等系统接口的调用。 权限提升功能主要是指安装目录下对不同用户 给予的操作权限, 管理员还是所有人拥有对安装目录的操作权限等。 以上所述仅为本发明的优选实施例, 并非因此限制其专利范围, 凡是利 用本发明说明书及附图内容所作的等效结构或等效流程变换, 直接或间接运 用在其他相关的技术领域, 均同理包括在本发明的专利保护范围内。 工业实用性 Due to the cross-platform installation of the software, the differential call of the shielded system needs to be considered during the installation process. Therefore, in the development of the software installer, the call of the system interface needs to be encapsulated for different installation systems, so as to be cross-platform. Interface calls for different installation systems can be implemented during software installation. The main package functions include registry related operations, file directory related operations, shortcut creation, process start and end functions, and privilege escalation functions. The operations of the registry mainly include the functions of creating, deleting, adding and modifying. The operation of files and directories is to create a directory, delete a file or directory, copy a file, or a directory. The creation of shortcuts mainly includes windows desktop shortcuts, quick launch bar, start menu shortcut group and Dock bar shortcuts on Mac system, and desktop shortcut creation interfaces. The start or end function of the process is mainly the call of the system interface such as the startup of the background process and the installation of the driver. The privilege promotion function mainly refers to the operation authority given to different users in the installation directory, and the administrator or owner has the operation authority for the installation directory. The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the patents. The equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention. Industrial applicability
本发明实施例还通过加载默认配置表及自定义配置表进行界面显示, 以 及安装过程中调用自定义的安装规则文件, 从而实现了界面及安装过程的定 制。  In the embodiment of the present invention, the interface is displayed by loading the default configuration table and the custom configuration table, and the customized installation rule file is invoked during the installation process, thereby realizing the interface and the installation process.

Claims

权 利 要 求 书 claims
1、 一种终端软件的安装方法, 包括: 1. An installation method for terminal software, including:
根据安装系统的类型, 调用所述安装系统支持的图形开发库, 配置统一 界面的运行环境; According to the type of installation system, call the graphics development library supported by the installation system to configure the running environment of the unified interface;
加载统一界面控件资源配置表, 并显示交互界面; Load the unified interface control resource configuration table and display the interactive interface;
接收到软件安装指令时进行软件的安装。 Install the software when receiving the software installation instruction.
2、 根据权利要求 1所述的终端软件的安装方法, 其中, 所述根据安装系 统的类型, 调用所述安装系统支持的图形开发库, 配置统一界面的运行环境 包括: 2. The terminal software installation method according to claim 1, wherein the graphics development library supported by the installation system is called according to the type of the installation system, and the running environment of the unified interface is configured including:
读取安装文件, 并将其存放在临时目录中; Read the installation file and store it in the temporary directory;
调用所述安装系统支持的图形开发库, 组装跨平台 GUI图形库开发界面 运行环境作为统一界面的运行环境。 Call the graphics development library supported by the installation system to assemble a cross-platform GUI graphics library development interface running environment as a unified interface running environment.
3、 根据权利要求 2所述的终端软件的安装方法, 其中, 所述加载统一界 面控件资源配置表, 并显示交互界面包括: 3. The installation method of terminal software according to claim 2, wherein said loading the unified interface control resource configuration table and displaying the interactive interface includes:
加载默认配置表和自定义配置表; Load the default configuration table and custom configuration table;
读取默认配置表, 并从相应的自定义配置表中查找是否存在配置项; 若 存在则修改统一界面控制的信息; 否则加载统一界面控制和布局; Read the default configuration table and find out whether the configuration item exists from the corresponding custom configuration table; if it exists, modify the unified interface control information; otherwise, load the unified interface control and layout;
显示交互界面。 Display the interactive interface.
4、 根据权利要求 1-3任一项所述的终端软件的安装方法, 其中, 所述接 收到软件安装指令时进行软件的安装包括: 4. The installation method of terminal software according to any one of claims 1-3, wherein the installation of software when receiving a software installation instruction includes:
接收到软件安装指令, 将安装内容进行解包处理, 并将固定目录文件存 放至安装目录中; Receive the software installation instructions, unpack the installation content, and store the fixed directory files in the installation directory;
获取预置的规则文件,并对其进行解析,根据解析结果控制软件的安装。 Obtain the preset rule file, parse it, and control the installation of the software based on the parsing results.
5、 根据权利要求 4所述的终端软件的安装方法, 其中, 还包括: 在软件 安装过程中还调用封装好的安装系统接口进行软件的安装。 5. The terminal software installation method according to claim 4, further comprising: also calling the encapsulated installation system interface to install the software during the software installation process.
6、 一种终端软件的安装装置, 包括: 6. An installation device for terminal software, including:
运行环境配置模块, 设置为: 根据安装系统的类型, 调用所述安装系统 支持的图形开发库, 配置统一界面的运行环境; The operating environment configuration module is set to: according to the type of the installation system, call the graphics development library supported by the installation system to configure the operating environment of the unified interface;
界面交互模块, 设置为: 加载统一界面控件资源配置表, 并显示交互界 面; The interface interaction module is set to: load the unified interface control resource configuration table and display the interactive interface;
安装模块, 设置为: 接收到软件安装指令时进行软件的安装。 Installation module, set to: Install software when receiving software installation instructions.
7、根据权利要求 6所述的终端软件的安装装置, 其中, 所述运行环境配 置模块包括: 7. The terminal software installation device according to claim 6, wherein the operating environment configuration module includes:
文件读取单元, 设置为: 读取安装文件, 并将其存放在临时目录中; 调用单元, 设置为: 调用所述安装系统支持的图形开发库, 组装跨平台 GUI图形库开发界面运行环境作为统一界面的运行环境。 The file reading unit is set to: read the installation file and store it in a temporary directory; the calling unit is set to: call the graphics development library supported by the installation system, and assemble the cross-platform GUI graphics library development interface running environment as Unified interface operating environment.
8、根据权利要求 7所述的终端软件的安装装置, 其中, 所述界面交互模 块包括: 8. The terminal software installation device according to claim 7, wherein the interface interaction module includes:
配置表加载单元, 设置为: 加载默认配置表和自定义配置表; 配置表分析单元, 设置为: 读取默认配置表, 并从相应的自定义配置表 中查找是否存在配置项; 若存在则修改统一界面控制的信息; 否则加载统一 界面控制和布局; The configuration table loading unit is set to: load the default configuration table and custom configuration table; the configuration table analysis unit is set to: read the default configuration table and find out whether the configuration item exists from the corresponding custom configuration table; if it exists Modify the unified interface control information; otherwise load the unified interface control and layout;
界面显示单元, 设置为: 根据配置表分析单元的配置表分析结果显示相 应的交互界面。 The interface display unit is set to: display the corresponding interactive interface according to the configuration table analysis result of the configuration table analysis unit.
9、 根据权利要求 6-8任一项所述的终端软件的安装装置, 其中, 所述安 装模块包括: 9. The terminal software installation device according to any one of claims 6-8, wherein the installation module includes:
解包单元, 设置为: 接收到软件安装指令, 将安装内容进行解包处理, 并将固定目录文件存放至安装目录中; The unpacking unit is set to: receive the software installation instructions, unpack the installation content, and store the fixed directory files in the installation directory;
控制单元, 设置为: 获取预置的规则文件, 并对其进行解析, 根据解析 结果控制软件的安装。 The control unit is set to: obtain the preset rule file, parse it, and control the installation of the software based on the parsing results.
10、 根据权利要求 9所述的终端软件的安装装置, 其中, 所述安装模块 还包括: 10. The terminal software installation device according to claim 9, wherein the installation module further includes:
接口调用单元, 设置为: 在软件安装过程中调用封装好的安装系统接口 进行软件的安装。 The interface calling unit is set to: call the encapsulated installation system interface during the software installation process to install the software.
PCT/CN2013/082762 2012-12-03 2013-09-02 Installation method and device for terminal software WO2014086173A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210509098.4 2012-12-03
CN201210509098.4A CN103853567A (en) 2012-12-03 2012-12-03 Method and device for installing terminal software

Publications (1)

Publication Number Publication Date
WO2014086173A1 true WO2014086173A1 (en) 2014-06-12

Family

ID=50861265

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082762 WO2014086173A1 (en) 2012-12-03 2013-09-02 Installation method and device for terminal software

Country Status (2)

Country Link
CN (1) CN103853567A (en)
WO (1) WO2014086173A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404522A (en) * 2014-07-15 2016-03-16 阿里巴巴集团控股有限公司 Method for building intelligent terminal application program, device for building intelligent terminal application program and intelligent terminal
CN104699618B (en) * 2015-03-31 2017-04-26 北京奇虎科技有限公司 Method and device used for automatically testing high-privilege progress by designated user
CN105677543A (en) * 2015-12-25 2016-06-15 广州视睿电子科技有限公司 Program installation package installation display method and system
CN107368340A (en) * 2017-07-26 2017-11-21 郑州云海信息技术有限公司 A kind of software automatic installation method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221511A (en) * 2008-01-25 2008-07-16 中兴通讯股份有限公司 Automatic installation and upgrading method of terminal unit application software
CN101378393A (en) * 2007-08-31 2009-03-04 深圳富泰宏精密工业有限公司 System and method for customizing human-machine interface function group set
CN101593112A (en) * 2009-06-23 2009-12-02 中兴通讯股份有限公司 A kind of method and system of self-adaptively displaying terminal product complete software web pages
CN102200909A (en) * 2010-07-30 2011-09-28 深圳市融创天下科技发展有限公司 Mobile terminal uniform interface method and system
CN102541601A (en) * 2011-12-28 2012-07-04 深圳市万兴软件有限公司 Method and device for beautifying installation interface of software installation package

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1493989A (en) * 2002-10-31 2004-05-05 英业达股份有限公司 Guiding install method supporting multi operation system and its recording storage medium
US7594225B2 (en) * 2004-12-20 2009-09-22 Microsoft Corporation Integrated setup for generating customization XML
CN101256489A (en) * 2008-02-26 2008-09-03 中兴通讯股份有限公司 System and method for implementing AT command interaction with Apple computer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101378393A (en) * 2007-08-31 2009-03-04 深圳富泰宏精密工业有限公司 System and method for customizing human-machine interface function group set
CN101221511A (en) * 2008-01-25 2008-07-16 中兴通讯股份有限公司 Automatic installation and upgrading method of terminal unit application software
CN101593112A (en) * 2009-06-23 2009-12-02 中兴通讯股份有限公司 A kind of method and system of self-adaptively displaying terminal product complete software web pages
CN102200909A (en) * 2010-07-30 2011-09-28 深圳市融创天下科技发展有限公司 Mobile terminal uniform interface method and system
CN102541601A (en) * 2011-12-28 2012-07-04 深圳市万兴软件有限公司 Method and device for beautifying installation interface of software installation package

Also Published As

Publication number Publication date
CN103853567A (en) 2014-06-11

Similar Documents

Publication Publication Date Title
US10402239B2 (en) Method of hosting a first application in a second application
US8793584B2 (en) Customizable user interface wrappers for web applications
US10929111B2 (en) Pixel perfect real-time web application framework
US8418132B2 (en) Application description language
US10359902B2 (en) Task flow interface in a popup region
US7290208B2 (en) Executing a dialog using one or more XML components and one or more embedded scripts
US20080092057A1 (en) Framework for creation of user interfaces for electronic devices
US6865691B1 (en) System and method for identifying executable diagnostic routines using machine information and diagnostic information in a computer system
US8869052B2 (en) Context-dependent object types in an integrated development environment
US20130332917A1 (en) Out of Band Services Updates
US8584147B2 (en) Managed execution environment for software application interfacing
US20090217182A1 (en) Graphical user interface typing and mapping system
US11481197B1 (en) Distributed software development pipeline for coherent graphical user interface
WO2014086173A1 (en) Installation method and device for terminal software
CN111381920A (en) Display method and device of pop-up window assembly and electronic terminal
US20200110597A1 (en) System and method for authoring a software application
CN108153533B (en) Method and device for making installation program, and method and device for installing program
Smyth Android Studio Development Essentials: Android 6 Edition
Cinar Android quick APIs reference
Zhou et al. Windows Phone 7 programming for Android and iOS developers
Smyth Android Studio 3.0 Development Essentials-Android 8 Edition
Lange Eclipse rich ajax platform: Bringing rich client to the web
KR100375529B1 (en) skin system for Window applications
EP4270175A1 (en) Information processing device, information processing system, and user interface providing method
MacDonald The Application Model

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13860090

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13860090

Country of ref document: EP

Kind code of ref document: A1