Installation package customization method and device, equipment, medium and product

By obtaining a universal installation package and customizing functions, configurations and icon resources, the problems of long package output cycles and high cost in traditional customization methods are solved, achieving more efficient manufacturing and more flexible customization requirements.

CN119829122APending Publication Date: 2025-04-15MACROWING SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411992313.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

The traditional software installation package customization method requires providing customized versions to each OEM manufacturer, resulting in long package withdrawal cycles and high maintenance and update costs.

Method used

By obtaining a general installation package, it supports input parameters for function customization, modifying configuration files and icon resources, and forming a customized target installation package.

Benefits of technology

It reduces the manufacturing costs of the installation package provider, improves manufacturing efficiency, meets the personalized custom needs of the installation package publisher, shortens the package withdrawal cycle and reduces maintenance and update costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829122A_ABST
    Figure CN119829122A_ABST
Patent Text Reader

Abstract

The invention discloses an installation package customization method and device, equipment, a medium and a product, and the method comprises the steps: obtaining a universal installation package for target software, enabling an installation package program of the universal installation package to support input parameters, and setting export parameters and identification parameters in a configuration file of the universal installation package, icon resources in the universal installation package are arranged at fixed positions; in response to an acquisition operation of an input parameter, performing function customization on the installation package program to form an update installation package program; in response to an acquisition operation of configuration item parameter information, modifying the configuration file to form an updated configuration file; and in response to an icon configuration operation, carrying out icon customization on the universal installation package to form an updated icon resource, and obtaining a customized target installation package. According to the technical scheme, the manufacturing cost of the installation package provider is reduced, the manufacturing efficiency is improved, and meanwhile the personalized custom requirement of the installation package publisher is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an installation package customization method, device, equipment, medium and product. Background Art

[0002] During the software installation process, different Original Equipment Manufacturers (OEMs) often need to customize the software to meet their specific needs and brand requirements.

[0003] Traditional customization methods usually require providing customized versions of installation packages to each OEM manufacturer. This customization method has problems such as long package delivery cycle and high maintenance and update costs. Summary of the invention

[0004] The present invention provides an installation package customization method, device, equipment, medium and product, which reduce the manufacturing cost of the installation package provider, improve the manufacturing efficiency, and meet the personalized customization needs of the installation package publisher.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for customizing an installation package, comprising:

[0006] Obtaining a universal installation package for the target software, wherein the installation package program of the universal installation package supports input parameters, the configuration file of the universal installation package is provided with export parameters and identification parameters, and the icon resources in the universal installation package are set in a fixed position;

[0007] In response to the operation of obtaining the input parameters, the installation package program is functionally customized to form an updated installation package program;

[0008] In response to the operation of obtaining the configuration item parameter information, modifying the configuration file to form an updated configuration file;

[0009] In response to the icon configuration operation, the icon of the general installation package is customized to form an updated icon resource, and a customized target installation package is obtained.

[0010] In a second aspect, an embodiment of the present disclosure provides an installation package customization device, including:

[0011] An installation package acquisition module, used to acquire a universal installation package for the target software, wherein the installation package program of the universal installation package supports input parameters, the configuration file of the universal installation package is provided with export parameters and identification parameters, and the icon resources in the universal installation package are set in a fixed position;

[0012] A program customization module, configured to customize the functions of the installation package program in response to an operation of obtaining input parameters, so as to form an updated installation package program;

[0013] A configuration file customization module, used to modify the configuration file in response to the operation of obtaining configuration item parameter information to form an updated configuration file;

[0014] The icon resource customization module is used to customize the icon of the general installation package in response to the icon configuration operation, form updated icon resources, and obtain a customized target installation package.

[0015] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0016] at least one processor; and

[0017] a memory communicatively connected to at least one processor; wherein,

[0018] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute an installation package customization method provided in the above-mentioned first aspect embodiment.

[0019] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a processor to implement an installation package customization method provided in the embodiment of the first aspect above when executed.

[0020] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements an installation package customization method provided in the embodiment of the first aspect above.

[0021] An installation package customization method, device, equipment, medium and product according to an embodiment of the present invention include obtaining a universal installation package for a target software, wherein the installation package program of the universal installation package supports input parameters, the configuration file of the universal installation package is provided with export parameters and identification parameters, and the icon resources in the universal installation package are provided at a fixed position; in response to the operation of obtaining the input parameters, the function of the installation package program is customized to form an updated installation package program; in response to the operation of obtaining the configuration item parameter information, the configuration file is modified to form an updated configuration file; in response to the icon configuration operation, the icon of the universal installation package is customized to form an updated icon resource, and a customized target installation package is obtained. The above technical scheme provides a universal installation package and a customization method for the universal installation package, which reduces the manufacturing cost of the installation package provider and improves the manufacturing efficiency. The installation package publisher can customize the target installation package based on the functional configuration of the universal installation package to meet the personalized customization needs of the installation package publisher.

[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0024] Figure 1 is a flow chart of an installation package customization method provided in Embodiment 1 of the present invention;

[0025] Figure 2 is a flow chart of a method for customizing an installation package provided in Embodiment 2 of the present invention;

[0026] Figure 3 It is a structural schematic diagram of an installation package customization device provided in Embodiment 3 of the present invention;

[0027] Figure 4 It is a structural schematic diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second" and "target" 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 a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments 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.

[0030] Embodiment 1

[0031] Figure 1 It is a flowchart of an installation package customization method provided in Example 1 of the present invention. This embodiment is applicable to the situation of customizing a general installation package. The method can be executed by an installation package customization device, and the installation package customization device can be implemented in the form of hardware and / or software.

[0032] like Figure 1 As shown, the method includes:

[0033] S101, obtaining a universal installation package for the target software, wherein the installation package program of the universal installation package supports input parameters, export parameters and identification parameters are set in the configuration file of the universal installation package, and icon resources in the universal installation package are set in a fixed position.

[0034] In this embodiment, the target software can be understood as the software to be customized. The general installation package can be understood as the installation package of the target software, which is an installation package that can be customized and modified. The installation package program can be understood as a program used to support the operation of the software. The configuration file can be understood as a file that stores software configuration information, including multiple configuration items, each of which supports input or modification of corresponding configuration information. Icon resources are used to identify interface elements. The types of input parameters supported by the installation package program are integer, Boolean and string types, which support different types of function customization respectively, and the prefix of the variable name is consistent with the type. The input parameters include: network disk entry name (item_name), network disk entry prompt (item_authors), installation package language (lang), installation path (install_path; the path automatically appends the VDrive.vdb suffix), account database specified installation path (appdata_path), cache directory specified path (cache_path), specify shortcut name (lnk_name; including desktop shortcuts and start menu shortcuts), set the mount drive letter (mountv; value range AZ), whether to start automatically at boot (is_auto_run; true: yes; false: no) 、Whether to hide the mount drive letter (is_hide_mountv; true: hide; false: show), whether to pull up the login page after successful installation (is_load_run; true: yes; false: no), help command prompt command (cmd) dedicated (help), export OEM configuration file vdb_cmd dedicated (export_oem_vdb), export description file txt_cmd dedicated (export_oem_txt), import fixed resource directory - fixed directory structure (import_oem_zip), built-in network disk uniform resource locator (url (Uniform Resource Locator), whether to enable domain authentication (is_ad_auth; true: enabled; false: disabled), login page: remember username (i_auto_name; 0: unchecked; 1: checked; 2: hidden), login page: remember password (i_auto_passwd; 0: unchecked; 1: checked; 2: hidden), login page: automatic login (i_auto_login; 0: unchecked; 1: checked; 2: hidden), login page: window name (login_title; including mouse hover prompt in the lower right corner), hide open web page (is_hide_openweb; including toolbar and tray right-click menu; true: hidden; false: displayed), hide settings (is_hide_setting; true: hidden; false: displayed), hide help (is_hide_help; true: hidden;false: display), hide switching users (is_hide_switch_user; true: hide; false: display), hide exit (is_hide_quit; true: hide; false: display), hide opening the homepage of the network disk after login (is_hide_login_pop_windows; true: hide; false: display); hide enterprise library sharing (is_hide_share; true: hide; false: display); hide enterprise library outgoing (is_hide_outgoing; true: hide; false: display); support Windows multi-user login (is_mul_user; true: support; false: not support), display historical version information (history), version name in the window (ver_name), whether to install silently (is_silent_install; true: silent; false: non-silent). ;

[0035] Export parameters can be understood as parameters used to support exporting template files to local. Since the configuration file VDrive.vdb is an eXtensible Markup Language (xml) format file, this type has strict requirements on field names and structures. When the tag structure is inconsistent with the format required by the parser, customization may fail. Therefore, an export parameter (export_oem_vdb) is added to the configuration file command line to support exporting template files to local. The publisher only needs to modify the content and does not need to worry about the structure. Identification parameters can be understood as parameters used to confirm whether the configuration item to be modified is allowed to be customized. In the configuration file, each configuration item is synchronously added with the identification parameter "is_default" field. Through the content of this field, it can be identified whether the configuration item has been customized. At the same time, this field can also be used to implement restrictions on customized configuration items. When a configuration is customized content, users without customization permissions are prohibited from adjusting the function.

[0036] The configuration items in the configuration file can only support the control of switch items and string type display content. For the icon type display content, all icon contents are classified and organized to form a standard icon resource compression package, which is set in the installation directory and is specifically used to implement the update and replacement of icon resources.

[0037] Specifically, the compressed package publisher obtains the universal installation package provided by the compressed package provider. The universal installation package is an installation package that adjusts the resource structure to support the compressed package publisher to customize the required functions. The universal installation package organizes the icon resources in the program and adjusts the compilation mode so that the icon resources are no longer integrated into the compiled product in binary mode, but instead reads the fixed location resources under the installation directory to support replacement during installation; a VDrive.vdb configuration file is added to the installation file to save the customized item content, including customizable parameter items, such as software name, icon, automatic startup, and whether automatic login and other configuration items are enabled or not.

[0038] S102: In response to the operation of obtaining the input parameters, the installation package program is functionally customized to form an updated installation package program.

[0039] In this embodiment, the updated installation package program can be understood as an installation package program formed by customizing the original installation package program in the universal installation package.

[0040] Specifically, in response to the input operation of the installation package publisher, the Nullsoft Scriptable Install System (NSIS) is used to capture the input parameters entered or selected by the publisher, and the input parameters selected based on the input parameters or trigger items (true or false) are processed to form a personalized and customized update installation package program.

[0041] S103: In response to the operation of obtaining the configuration item parameter information, modify the configuration file to form an updated configuration file.

[0042] In this embodiment, the configuration item parameter information can be understood as the configuration information that needs to be customized and input for each configuration item. The updated configuration file can be understood as the configuration file formed by customizing the original configuration file in the general installation package.

[0043] Specifically, in response to the configuration item parameter information acquisition operation, the configuration information for each configuration item input by the publisher is obtained, and it is identified whether the input configuration information corresponds to a configuration item that is allowed to be customized. If not, the configuration information is filtered. If so, the configuration file is modified based on the configuration information, and after completing the modification and customization of each configuration item that is allowed to be customized, an updated configuration file is formed. The updated configuration file and the installation package program are located in the same directory, and the configuration file can be directly customized when the installation program is executed.

[0044] S104. In response to the icon configuration operation, the icon of the general installation package is customized to form an updated icon resource, and a customized target installation package is obtained.

[0045] In this embodiment, the icon configuration operation can be understood as an operation for updating resource icons, which is an operation of dragging the icon content to be updated into the corresponding folder of the specific icon resource compression package. Updating icon resources can be understood as the icon resources formed by updating and replacing the original icon resources in the general installation package.

[0046] Specifically, in response to the icon configuration operation, the icon resource file dragged by the publisher into the icon resource folder is obtained, and the original icon resource file in the folder is deleted. Among them, the icon resource folder is a folder after the fixed icon resource compression package used to represent the icon resource is decompressed. After completing the replacement of the icon resource file, the icon resource folder is recompressed to form an updated icon resource compression package to fully realize the replacement of the icon resource. The icon resource compression package and the installation package program are located in the same directory. When the installation program is executed, the customization of the icon resource can be directly completed.

[0047] The embodiment of the present invention provides a method for customizing an installation package, including obtaining a universal installation package for a target software, wherein the installation package program of the universal installation package supports input parameters, and the configuration file of the universal installation package is provided with export parameters and identification parameters, and the icon resources in the universal installation package are set at a fixed position; in response to the operation of obtaining the input parameters, the function of the installation package program is customized to form an updated installation package program; in response to the operation of obtaining the configuration item parameter information, the configuration file is modified to form an updated configuration file; in response to the icon configuration operation, the icon of the universal installation package is customized to form an updated icon resource, and the customized target installation package is obtained. The above technical scheme provides a universal installation package and a method for customizing the universal installation package, wherein the installation package program of the universal installation package supports input parameters, so that the publisher can implement the update customization of the installation package program based on the input parameters; the configuration file of the universal installation package is provided with export parameters to ensure the structural consistency when the software is decompressed; the configuration file is also provided with identification parameters to identify and monitor whether the modification and customization of the configuration file meets the permission requirements, so as to ensure the safety and smooth operation of the software; the icon resources in the universal installation package are set at a fixed position to realize fast and efficient icon resource updates. The structural design of this universal installation package reduces the manufacturing cost of the installation package provider and improves manufacturing efficiency. The installation package publisher can customize the target installation package based on the functional configuration of the universal installation package to meet the personalized customization needs of the installation package publisher.

[0048] Embodiment 2

[0049] Figure 2It is a flowchart of an installation package customization method provided in Embodiment 2 of the present invention. This embodiment is a further optimization of any of the above embodiments and can be applied to situations where a universal installation package is customized. The method can be executed by an installation package customization device, which can be implemented in the form of hardware and / or software.

[0050] like Figure 2 As shown, the method includes:

[0051] S201, obtaining a general installation package for the target software.

[0052] S202: In response to the operation of obtaining the input parameters, the input parameters are processed; or, in response to the operation of obtaining the input parameters, a dynamic link library is called to process the input parameters.

[0053] In this embodiment, in response to the input parameter acquisition operation, the acquired input parameters are processed by NSIS to form an update installation package program. It can be understood that the installation package program is packaged using NSIS, and NSIS natively supports processing input parameters, but the processing capability is limited. However, NSIS also provides the ability to call a third-party dynamic link library (DLL). After the input parameters are captured by NSIS, when the processing capability of NSIS is insufficient, the input parameters are passed to the DLL for processing to form an update installation package program.

[0054] S203, forming an update installation package program.

[0055] S204: Acquire configuration item parameter information, and identify whether the configuration item corresponding to the configuration item parameter information is a restricted customization configuration item.

[0056] In this embodiment, the configuration item parameter information may be understood as configuration information input for the configuration item.

[0057] Specifically, each configuration item in the original configuration file is set with an identification parameter, which defines whether the configuration item is allowed to be customized or whether customization is restricted. After obtaining the configuration item parameter information input by the publisher, the configuration items corresponding to these configuration item parameter information are determined, and then the identification parameters of these configuration items are determined to determine whether they correspond to restricted customization.

[0058] S205: If yes, filter the configuration item parameter information.

[0059] In this embodiment, if the identification parameter of the configuration item corresponding to the acquired configuration item parameter information indicates that the configuration item restricts customization, the configuration item parameter information of the configuration item is filtered out, and customization for the configuration item is not supported.

[0060] S206: If not, modify the configuration file based on the configuration item parameter information to form an updated configuration file.

[0061] In this embodiment, the identification parameter of the configuration item corresponding to the obtained configuration item parameter information represents the operation customization of the configuration item, and the corresponding configuration item is customized based on the configuration item parameter information, and then based on the corresponding configuration item parameter information allowed to be customized among all the obtained configuration item parameter information, the configuration file is fully customized to form an updated configuration file.

[0062] The update configuration file and the update installation package program are set in the same directory. When the installation program is executed, the installation program will automatically read the update configuration file and copy it to the installation directory. At this point, the installation of the customized installation package can be completed.

[0063] S207 . In response to the icon configuration operation, decompress the original icon resource compressed package to obtain an original icon resource folder.

[0064] In this embodiment, the original icon resource folder can be understood as a folder composed of default icon resources, and the original icon resource compressed package can be understood as a compressed package of the original icon resource folder.

[0065] Specifically, the icon configuration operation includes decompressing the original icon resource compressed package, updating and replacing the icon resource files in the original icon resource folder, and recompressing the updated icon resource folder. In response to the icon configuration operation, the original icon resource compressed package is first decompressed to obtain the original icon resource folder, which contains the default original icon resource, that is, the default resource icon corresponding to the file type.

[0066] S208: Replace the original icon resources in the original icon resource folder with the updated icon resources to form an updated icon resource folder, and compress the updated icon resource folder to form an updated icon resource compressed package.

[0067] In this embodiment, the original icon resource can be understood as a default icon corresponding to the file type. The updated icon resource can be understood as a customized personalized icon used to replace the original icon resource. The updated icon resource folder can be understood as a folder formed by the combination of updated icon resources. The updated icon resource compressed package can be understood as a compressed package of the updated icon resource folder.

[0068] Specifically, in response to the icon configuration operation, in the original icon resource folder, the customized personalized update icon resource replaces the original icon resource to complete the customization of the icon resource to form an updated icon resource folder, and then the updated icon resource folder is compressed to form an updated icon resource compression package.

[0069] The update icon resource compressed package and the update installation package program are set in the same directory. When the installation program is executed, the installation program will automatically read the update icon resource compressed package and copy it to the installation directory. At this point, the installation of the customized installation package can be completed.

[0070] S209: Obtain the customized target installation package.

[0071] An installation package customization method provided by an embodiment of the present invention includes obtaining a universal installation package for target software; in response to an input parameter acquisition operation, processing the input parameter; or, in response to the input parameter acquisition operation, calling a dynamic link library to process the input parameter; forming an update installation package program; obtaining configuration item parameter information, and identifying whether the configuration item corresponding to the configuration item parameter information is a restricted customization configuration item; if so, filtering the configuration item parameter information; if not, modifying the configuration file based on the configuration item parameter information to form an update configuration file; in response to an icon configuration operation, decompressing the original icon resource compressed package to obtain an original icon resource folder; replacing the original icon resource in the original icon resource folder with the updated icon resource to form an updated icon resource folder, and compressing the updated icon resource folder to form an updated icon resource compressed package; and obtaining a customized target installation package. The above technical solution provides a universal installation package and a customization method for the universal installation package. The installation package program of the universal installation package supports input parameters so that the publisher can update and customize the installation package program based on the input parameters; the configuration file of the universal installation package is provided with export parameters to ensure the structural consistency when the software is decompressed; the configuration file also sets identification parameters to identify and monitor whether the modification and customization of the configuration file meets the permission requirements, so as to ensure the safety and smooth operation of the software; the icon resources in the universal installation package are set in a fixed position to facilitate fast and efficient icon resource updates. The structural design of this universal installation package integrates parameterized configuration functions in the installation package. When the product is released, only one standardized package needs to be released. The OEM customization requirements of other projects can be realized by modifying the configuration file based on the standardized installation package. This allows project implementers and OEM manufacturers to modify the configuration file parameters to achieve customized installation according to the customer's customization requirements, greatly simplifying the customization process and having high flexibility. At the same time, in response to large-scale installation needs, it can also support secondary packaging based on the standardized package to generate a project customized package, greatly shortening the OEM customized package release cycle and reducing the cost of project package maintenance and updates. In addition, the installation package publisher can customize the target installation package based on the functional configuration of the universal installation package to meet the personalized customization needs of the installation package publisher.

[0072] As a first optional embodiment of this embodiment, the method further includes:

[0073] In response to the packaging operation for the installation package to be packaged, the decompression path of the installation package to be packaged, the running program, the update overlay mode and the installation package icon are determined to generate a packaged installation package.

[0074] In this embodiment, the installation package to be packaged can be understood as the installation package that is about to be packaged for the second time, which can be the original universal installation package or the customized target installation package. The packaging operation for the installation package to be packaged can be understood as the operation of performing the second packaging on the installation package. The packaged installation package can be understood as the installation package file formed after the installation package is customized, the decompression path is packaged, the program is run, and the overlay mode and the installation package icon are updated.

[0075] Specifically, the above customization method is an operation method in the scenario of a single user, while in the implementation process of the project, we often face the scenario of batch users. At this time, it is difficult to operate one by one. For this situation, the embodiment of the present invention supports secondary packaging of the general installation package and the modified target installation package, and exports an executable program as a customized installation package.

[0076] Specifically, in response to the encapsulation operation for the installation package to be encapsulated, the installation package program (original installation package program or updated installation package program), configuration file (original configuration file or updated configuration file) and icon resource compressed package (original icon resource compressed package or updated icon resource compressed package) of the installation package to be encapsulated are placed in the same directory, and added to the WinRAR compressed file after selection; in response to the triggering of the self-extraction option control, a self-extraction program is generated using WinRAR; in response to the triggering of the decompression path in the self-extraction option control, the decompression path (for example, the absolute path %temp%) of the installation package to be encapsulated is determined; in response to the selection of running the program after decompression in the self-extraction option control, the running program of the installation package to be encapsulated is determined; in response to the selection of the update mode (extract and replace files / extract and update files / only update existing files) and the selection of the overwrite mode (ask before overwriting / overwrite all files / skip existing files) in the self-extraction option control, the update and overwrite mode of the installation package to be encapsulated is determined; in response to the selection of the self-extraction file icon in the self-extraction option control, the installation package icon of the installation package to be encapsulated is determined. At this point, the secondary packaging customization is completed and a customized installation package for the project is generated.

[0077] Embodiment 3

[0078] Figure 3 Schematic diagram of the structure of an installation package customization device provided by Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:

[0079] An installation package acquisition module 31 is used to acquire a universal installation package for the target software, wherein the installation package program of the universal installation package supports input parameters, the configuration file of the universal installation package is provided with export parameters and identification parameters, and the icon resources in the universal installation package are set in a fixed position;

[0080] A program customization module 32, configured to customize the functions of the installation package program in response to the acquisition operation of the input parameters to form an updated installation package program;

[0081] The configuration file customization module 33 is used to modify the configuration file in response to the configuration item parameter information acquisition operation to form an updated configuration file;

[0082] The icon resource customization module 34 is used to customize the icon of the general installation package in response to the icon configuration operation, form updated icon resources, and obtain a customized target installation package.

[0083] The installation package customization device adopted in this technical solution reduces the manufacturing cost of the installation package provider, improves manufacturing efficiency, and at the same time meets the personalized customization needs of the installation package publisher.

[0084] Optionally, the program customization module 32 is specifically used for:

[0085] In response to the operation of obtaining the input parameters, the input parameters are processed; or, in response to the operation of obtaining the input parameters, a dynamic link library is called to process the input parameters;

[0086] An update installation package program is formed.

[0087] Optionally, the configuration file customization module 33 is specifically used for:

[0088] Acquire configuration item parameter information, and identify whether the configuration item corresponding to the configuration item parameter information is a restricted customization configuration item;

[0089] If yes, filter the configuration item parameter information;

[0090] If not, the configuration file is modified based on the configuration item parameter information to form an updated configuration file.

[0091] Optionally, the icon resource customization module 34 is specifically used for:

[0092] In response to the icon configuration operation, decompress the original icon resource compressed package to obtain the original icon resource folder;

[0093] The original icon resources in the original icon resource folder are replaced with updated icon resources to form an updated icon resource folder, and the updated icon resource folder is compressed to form an updated icon resource compressed package.

[0094] Optionally, the update installation package program, the configuration file and the update icon resource are set in the same-level directory.

[0095] Optionally, the device further comprises a secondary packaging module, which is used to:

[0096] In response to the packaging operation for the target installation package, the decompression path of the target installation package, the running program, the update overlay mode and the installation package icon are determined to generate a packaged installation package.

[0097] The installation package customization device provided in the embodiment of the present invention can execute the installation package customization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0098] Embodiment 4

[0099] Figure 4 : is a structural schematic diagram of an electronic device provided in Embodiment 4 of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0100] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0101] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0102] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 41 executes the various methods and processes described above, such as the installation package customization method.

[0103] In some embodiments, the installation package customization method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the installation package customization method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to execute the installation package customization method in any other appropriate manner (e.g., by means of firmware).

[0104] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0105] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0106] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0107] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0108] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0109] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0110] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0111] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for customizing an installation package, characterized in that: include: Obtain a universal installation package for the target software, wherein the installation package program of the universal installation package supports input parameters, the configuration file of the universal installation package is provided with export parameters and identification parameters, and the icon resources in the universal installation package are set in a fixed position; In response to the operation of obtaining the input parameters, the installation package program is functionally customized to form an updated installation package program; In response to the operation of obtaining the configuration item parameter information, modifying the configuration file to form an updated configuration file; In response to the icon configuration operation, the icon of the general installation package is customized to form an updated icon resource, and a customized target installation package is obtained.

2. The method according to claim 1, characterized in that The step of customizing the functions of the installation package program in response to the operation of obtaining the input parameters to form an updated installation package program includes: In response to the operation of obtaining the input parameters, the input parameters are processed; or, in response to the operation of obtaining the input parameters, a dynamic link library is called to process the input parameters; An update installation package program is formed.

3. The method according to claim 1, characterized in that: The step of modifying the configuration file to form an updated configuration file in response to the operation of obtaining the configuration item parameter information includes: Acquire configuration item parameter information, and identify whether the configuration item corresponding to the configuration item parameter information is a restricted customization configuration item; If yes, filter the configuration item parameter information; If not, the configuration file is modified based on the configuration item parameter information to form an updated configuration file.

4. The method according to claim 1, characterized in that In response to the icon configuration operation, the icon of the general installation package is customized to form an updated icon resource, including: In response to the icon configuration operation, decompress the original icon resource compressed package to obtain the original icon resource folder; The original icon resources in the original icon resource folder are replaced with updated icon resources to form an updated icon resource folder, and the updated icon resource folder is compressed to form an updated icon resource compressed package.

5. The method according to claim 1, characterized in that: The update installation package program, the configuration file and the update icon resource are set in the same-level directory.

6. The method according to claim 1, characterized in that Also includes: In response to the packaging operation for the installation package to be packaged, the decompression path, running program, update overlay mode and installation package icon of the installation package to be packaged are determined to generate a packaged installation package.

7. An installation package customization device, characterized in that: include: An installation package acquisition module, used to acquire a universal installation package for the target software, wherein the installation package program of the universal installation package supports input parameters, the configuration file of the universal installation package is provided with export parameters and identification parameters, and the icon resources in the universal installation package are set in a fixed position; A program customization module, configured to customize the functions of the installation package program in response to an operation of obtaining input parameters, so as to form an updated installation package program; A configuration file customization module, used to modify the configuration file in response to the operation of obtaining configuration item parameter information to form an updated configuration file; The icon resource customization module is used to customize the icon of the general installation package in response to the icon configuration operation, form updated icon resources, and obtain a customized target installation package.

8. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute an installation package customization method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement an installation package customization method according to any one of claims 1 to 6 when executed.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements an installation package customization method according to any one of claims 1-6.