CN111435303B - Method and terminal for generating 3D installation package - Google Patents

Method and terminal for generating 3D installation package Download PDF

Info

Publication number
CN111435303B
CN111435303B CN201910034649.8A CN201910034649A CN111435303B CN 111435303 B CN111435303 B CN 111435303B CN 201910034649 A CN201910034649 A CN 201910034649A CN 111435303 B CN111435303 B CN 111435303B
Authority
CN
China
Prior art keywords
installation
unity
packaging
program
project
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910034649.8A
Other languages
Chinese (zh)
Other versions
CN111435303A (en
Inventor
刘德建
周少毅
林琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Tianyi Network Technology Co ltd
Original Assignee
Fujian Tianyi Network Technology Co ltd
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 Fujian Tianyi Network Technology Co ltd filed Critical Fujian Tianyi Network Technology Co ltd
Priority to CN201910034649.8A priority Critical patent/CN111435303B/en
Publication of CN111435303A publication Critical patent/CN111435303A/en
Application granted granted Critical
Publication of CN111435303B publication Critical patent/CN111435303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

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

Abstract

The invention discloses a method and a terminal for generating a 3D installation package, wherein a preset API is imported in a created packaging project, a product to be packaged is packaged into an installation program by using the packaging project, a 3D installation scene and an installation interface are manufactured through a Unity engine, communication is established with the preset API through the Unity engine by adopting inter-process communication, the installation program is started and installed, a corresponding Unity project is generated, the Unity project is issued as an executable file in the form of the 3D installation package, the 3D installation package with high compression and stability can be generated at low cost and high efficiency, the development process of the 3D installation package is efficiently realized, the working efficiency is improved, the situation can be known in time through communication in the development process of the 3D installation package, and the operation of a user is facilitated.

Description

Method and terminal for generating 3D installation package
Technical Field
The invention relates to the technical field of product packaging, in particular to a method and a terminal for generating a 3D installation package.
Background
At present, products packaged by a 3D installation package are not basically used in the market, if the 3D installation package is manufactured by the prior art, a Unity 3D engine is usually used for direct development, the package aspect can be realized by means of ZIP and other libraries, and in terms of common functions, such as functions of reading and writing a registry, creating a shortcut, updating on line and the like, the functions need to be automatically developed, and the compatibility problem of different versions of a Windows system needs to be solved after the functions are complete. At this time, developing a 3D installation package requires a lot of development time and effort, and is extremely prone to compatibility problems.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the method and the terminal for generating the 3D installation package can effectively realize the development process of the 3D installation package and improve the working efficiency.
In order to solve the technical problems, the invention adopts a technical scheme that:
a method of generating a 3D installation package, comprising the steps of:
s1, creating a packaging project, wherein a preset API is imported in the packaging project, and packaging a product to be packaged into an installation program by using the packaging project;
s2, manufacturing a 3D installation scene and an installation interface through a Unity engine, establishing communication with the preset API through the Unity engine by adopting inter-process communication, starting and installing the installation program, and generating a corresponding Unity project;
and S3, publishing the Unity engineering as an executable file in the form of a 3D installation package.
In order to solve the technical problems, the invention adopts another technical scheme that:
a terminal for generating a 3D installation package comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
s1, creating a packaging project, wherein a preset API is imported in the packaging project, and packaging a product to be packaged into an installation program by using the packaging project;
s2, manufacturing a 3D installation scene and an installation interface through a Unity engine, establishing communication with the preset API through the Unity engine by adopting inter-process communication, starting and installing the installation program, and generating a corresponding Unity project;
and S3, publishing the Unity engineering as an executable file in the form of a 3D installation package.
The invention has the beneficial effects that: the method comprises the steps of importing a preset API in a created packaging project, packaging a product to be packaged into an installation program by using the packaging project, manufacturing a 3D installation scene and an installation interface by using a Unity engine, establishing communication with the preset API by using the Unity engine through interprocess communication, starting and installing the installation program to generate a corresponding Unity project, and issuing the Unity project into an executable file in the form of a 3D installation package, so that a high-compression and stable 3D installation package can be generated at low cost and high efficiency, the development process of the 3D installation package is efficiently realized, the working efficiency is improved, the situation can be known in time through communication in the development process of the 3D installation package, and the operation of a user is facilitated.
Drawings
FIG. 1 is a flow chart of steps of a method of generating a 3D installation package according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal for generating a 3D installation package according to an embodiment of the present invention;
description of the reference numerals:
1. a terminal for generating a 3D installation package; 2. A memory; 3. A processor.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
The key concept of the invention is that a preset API is imported in the created packaging engineering, and communication is established with the preset API by adopting inter-process communication through a Unity engine.
Referring to fig. 1, a method for generating a 3D installation package includes the steps of:
s1, creating a packaging project, wherein a preset API is imported in the packaging project, and packaging a product to be packaged into an installation program by using the packaging project;
s2, manufacturing a 3D installation scene and an installation interface through a Unity engine, establishing communication with the preset API through the Unity engine by adopting inter-process communication, starting and installing the installation program, and generating a corresponding Unity project;
and S3, publishing the Unity engineering as an executable file in the form of a 3D installation package.
From the above description, the beneficial effects of the invention are as follows: the method comprises the steps of importing a preset API in a created packaging project, packaging a product to be packaged into an installation program by using the packaging project, manufacturing a 3D installation scene and an installation interface by using a Unity engine, establishing communication with the preset API by using the Unity engine through interprocess communication, starting and installing the installation program to generate a corresponding Unity project, and issuing the Unity project into an executable file in the form of a 3D installation package, so that a high-compression and stable 3D installation package can be generated at low cost and high efficiency, the development process of the 3D installation package is efficiently realized, the working efficiency is improved, the situation can be known in time through communication in the development process of the 3D installation package, and the operation of a user is facilitated.
Further, the preset API includes a user32.dll API of the Windows system.
As can be seen from the above description, the preset API includes a user32.dll API of the Windows system, which can provide corresponding APIs for various operations of generating the 3D installation package later, so as to facilitate communication with the Unity engine, and improve convenience.
Further, in step S2, the establishing communication with the preset API by the Unity engine through inter-process communication, and the starting and installing the installation program includes:
starting the installation program in a command line mode through a Unity engine, and transmitting a silent installation command line parameter and an installation path parameter to the installation program to realize the installation of the installation program;
and receiving and displaying the installation progress sent by the preset API through the Unity in the installation process of the installation program.
According to the description, the installation of the installation program is controlled by the Unity engine, so that a user can flexibly change parameters such as an installation path of the program, the operation of the user is facilitated, and meanwhile, the installation progress can be timely displayed for the user to check through the communication between the Unity engine and the API, and the convenience is improved.
Further, the step S3 includes:
and publishing the Unity engineering into an executable file in the form of a 3D installation package and a data folder, and packaging the data folder into the executable file in the form of the 3D installation package by adopting a packaging tool.
As can be seen from the above description, the data folder is packaged into the executable file in the form of the 3D installation package by using the packaging tool, so that the data can be compressed as much as possible, and the occupied space of the generated 3D installation package is greatly reduced.
Further, the step S3 further includes:
and removing the window of the executable file by adopting the preset API, and filtering the solid background of the executable file by utilizing a loader.
According to the description, the window of the executable file can be conveniently removed through the preset API, and the solid background of the executable file can be conveniently filtered through the loader with the Unity.
Referring to fig. 2, a terminal for generating a 3D installation package includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
s1, creating a packaging project, wherein a preset API is imported in the packaging project, and packaging a product to be packaged into an installation program by using the packaging project;
s2, manufacturing a 3D installation scene and an installation interface through a Unity engine, establishing communication with the preset API through the Unity engine by adopting inter-process communication, starting and installing the installation program, and generating a corresponding Unity project;
and S3, publishing the Unity engineering as an executable file in the form of a 3D installation package.
From the above description, the beneficial effects of the invention are as follows: the method comprises the steps of importing a preset API in a created packaging project, packaging a product to be packaged into an installation program by using the packaging project, manufacturing a 3D installation scene and an installation interface by using a Unity engine, establishing communication with the preset API by using the Unity engine through interprocess communication, starting and installing the installation program to generate a corresponding Unity project, and issuing the Unity project into an executable file in the form of a 3D installation package, so that a high-compression and stable 3D installation package can be generated at low cost and high efficiency, the development process of the 3D installation package is efficiently realized, the working efficiency is improved, the situation can be known in time through communication in the development process of the 3D installation package, and the operation of a user is facilitated.
Further, the preset API includes a user32.dll API of the Windows system.
As can be seen from the above description, the preset API includes a user32.dll API of the Windows system, which can provide corresponding APIs for various operations of generating the 3D installation package later, so as to facilitate communication with the Unity engine, and improve convenience.
Further, in step S2, the establishing communication with the preset API by the Unity engine through inter-process communication, and the starting and installing the installation program includes:
starting the installation program in a command line mode through a Unity engine, and transmitting a silent installation command line parameter and an installation path parameter to the installation program to realize the installation of the installation program;
and receiving and displaying the installation progress sent by the preset API through the Unity in the installation process of the installation program.
According to the description, the installation of the installation program is controlled by the Unity engine, so that a user can flexibly change the installation path and other related parameters of the program, the operation of the user is facilitated, and meanwhile, the installation progress can be timely displayed for the user to check through the communication between the Unity engine and the API, and the convenience is improved.
Further, the step S3 includes:
and publishing the Unity engineering into an executable file in the form of a 3D installation package and a data folder, and packaging the data folder into the executable file in the form of the 3D installation package by adopting a packaging tool.
As can be seen from the above description, the data folder is packaged into the executable file in the form of the 3D installation package by using the packaging tool, so that the data can be compressed as much as possible, and the occupied space of the generated 3D installation package is greatly reduced.
Further, the step S3 further includes:
and removing the window of the executable file by adopting the preset API, and filtering the solid background of the executable file by utilizing a loader.
According to the description, the window of the executable file can be conveniently removed through the preset API, and the solid background of the executable file can be conveniently filtered through the loader with the Unity.
Example 1
Referring to fig. 1, a method for generating a 3D installation package includes the steps of:
s1, creating a packaging project, wherein a preset API is imported in the packaging project, and packaging a product to be packaged into an installation program by using the packaging project;
wherein, the preset API comprises an API of User32.Dll of the Windows system;
specifically, a packing project is newly built by using Inno Setup software, and a SendMessage, which is an API of User32.Dll of the Windows system, is imported in the packing project, wherein the SendMessage method is used for communicating with Unity, and related codes are as follows: function SendMessageWin (Wnd: HWnd; msg: inter; wParam: inter; IParam: longint): longint; the external '[email protected] stdcall' uses Inno Setup installation package software to package the product to be packaged into an exe installation program;
s2, manufacturing a 3D installation scene and an installation interface through a Unity engine, establishing communication with the preset API through the Unity engine by adopting inter-process communication, starting and installing the installation program, and generating a corresponding Unity project;
specifically, the Unity engine is used for manufacturing a gorgeous 3D installation scene and an installation interface;
starting the exe installation program in a command line mode through a Unity engine, and transmitting a silent installation command line parameter and an installation path parameter to the exe installation program, wherein the exe installation program executes a corresponding installation flow according to the parameters and the installation path transmitted by the Unity engine to realize the installation of the exe installation program, and receives and displays the installation progress sent by a SendMessage method in the preset API through Unity in the installation process of the exe installation program;
wherein the silence installation-related command lines include "/verivent", "/sp-", "/norestart", "/noncel", "/supplersgboxes", "/forceclose applications", "/c", and the like;
and S3, publishing the Unity engineering as an executable file in the form of a 3D installation package.
Specifically, the Unity engineering is issued into an exe executable file in the form of a 3D installation package and a data folder, and a packaging tool is adopted to package the data folder into the exe executable file in the form of the 3D installation package;
specifically, the installation package generally only comprises one exe executable file, so that the data folder is packaged into the exe executable file in the form of the 3D installation package by utilizing a package tool such as WinRAR, and the occupied space of the 3D installation package is reduced;
removing windows of the executable file by adopting the preset API, and filtering a solid background of the executable file by utilizing a loader;
specifically, since the Unity engineering is released and then is provided with a window, the window needs to be removed and the background is transparent, at this time, the window is removed by using a setlayerwindows attribute (IntPtr hwnd, uint crKey, byte bAlpha, int dwflag) method in the preset API, and the solid background is filtered by using a loader of Unity.
Example two
Referring to fig. 2, a terminal 1 for generating a 3D installation package includes a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3, wherein the processor 3 implements the steps of the first embodiment when executing the computer program.
In summary, according to the method and terminal for generating the 3D installation package provided by the invention, the preset API is imported into the created packaging project, the preset API comprises the user32.dll API of the Windows system, the packaging project is used for packaging the product to be packaged into the installation program, the 3D installation scene and the installation interface are manufactured through the Unity engine, the Unity engine is used for establishing communication with the preset API through process-to-process communication, the installation program is started and installed, the corresponding Unity project is generated, the installation progress sent by the preset API is received and displayed through Unity in the installation process of the installation program, the Unity project is issued as the executable file in the form of the 3D installation package, the corresponding API can be provided for various operations for generating the 3D installation package, the communication with the Unity engine is facilitated, the 3D installation package with high compression and stability is generated with low cost and high efficiency, the development process of the 3D installation package is efficiently realized, the work efficiency is improved, the development process of the 3D installation package can be realized through the Unity in the installation process, the development process of the 3D installation package, the convenience is provided for users, the convenience and the operation.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.

Claims (2)

1. A method of generating a 3D installation package, comprising the steps of:
s1, creating a packaging project, wherein a preset API is imported in the packaging project, and packaging a product to be packaged into an installation program by using the packaging project; specifically, an API SendMessage method of user32.dll of the Windows system is imported in the packaging engineering, and the SendMessage method is used for communicating with the Unity;
s2, manufacturing a 3D installation scene and an installation interface through a Unity engine, establishing communication with the preset API through the Unity engine by adopting inter-process communication, starting and installing the installation program, and generating a corresponding Unity project;
in the step S2, the establishing communication with the preset API by the Unity engine through inter-process communication, and the starting and installing the installation program includes:
starting the installation program in a command line mode through a Unity engine, and transmitting a silent installation command line parameter and an installation path parameter to the installation program to realize the installation of the installation program;
receiving and displaying the installation progress sent by the preset API through Unity in the installation process of the installation program;
s3, publishing the Unity engineering as an executable file in the form of a 3D installation package;
the step S3 includes:
issuing the Unity engineering into an executable file in the form of a 3D installation package and a data folder, and packaging the data folder into the executable file in the form of the 3D installation package by adopting a packaging tool;
the step S3 further includes:
and removing the window of the executable file by adopting the preset API, and filtering the solid background of the executable file by utilizing a loader.
2. A terminal for generating a 3D installation package, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the following steps when executing the computer program:
s1, creating a packaging project, wherein a preset API is imported in the packaging project, and packaging a product to be packaged into an installation program by using the packaging project; specifically, an API SendMessage method of user32.dll of the Windows system is imported in the packaging engineering, and the SendMessage method is used for communicating with the Unity;
s2, manufacturing a 3D installation scene and an installation interface through a Unity engine, establishing communication with the preset API through the Unity engine by adopting inter-process communication, starting and installing the installation program, and generating a corresponding Unity project;
in the step S2, the establishing communication with the preset API by the Unity engine through inter-process communication, and the starting and installing the installation program includes:
starting the installation program in a command line mode through a Unity engine, and transmitting a silent installation command line parameter and an installation path parameter to the installation program to realize the installation of the installation program;
receiving and displaying the installation progress sent by the preset API through Unity in the installation process of the installation program;
s3, publishing the Unity engineering as an executable file in the form of a 3D installation package;
the step S3 includes:
issuing the Unity engineering into an executable file in the form of a 3D installation package and a data folder, and packaging the data folder into the executable file in the form of the 3D installation package by adopting a packaging tool;
the step S3 further includes:
and removing the window of the executable file by adopting the preset API, and filtering the solid background of the executable file by utilizing a loader.
CN201910034649.8A 2019-01-15 2019-01-15 Method and terminal for generating 3D installation package Active CN111435303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910034649.8A CN111435303B (en) 2019-01-15 2019-01-15 Method and terminal for generating 3D installation package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910034649.8A CN111435303B (en) 2019-01-15 2019-01-15 Method and terminal for generating 3D installation package

Publications (2)

Publication Number Publication Date
CN111435303A CN111435303A (en) 2020-07-21
CN111435303B true CN111435303B (en) 2023-05-23

Family

ID=71580687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910034649.8A Active CN111435303B (en) 2019-01-15 2019-01-15 Method and terminal for generating 3D installation package

Country Status (1)

Country Link
CN (1) CN111435303B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7802243B1 (en) * 2006-04-20 2010-09-21 Open Invention Network Llc System and method for server customization
CN106295370A (en) * 2016-08-19 2017-01-04 北京奇虎科技有限公司 A kind of method and apparatus of the dynamic link library (DLL) file reinforcing installation kit
CN106293753A (en) * 2016-08-16 2017-01-04 网易(杭州)网络有限公司 The development approach of editing machine and device, edit methods and editing machine
CN108897562A (en) * 2018-06-27 2018-11-27 腾讯科技(深圳)有限公司 Installation kit update method, device, medium and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7802243B1 (en) * 2006-04-20 2010-09-21 Open Invention Network Llc System and method for server customization
CN106293753A (en) * 2016-08-16 2017-01-04 网易(杭州)网络有限公司 The development approach of editing machine and device, edit methods and editing machine
CN106295370A (en) * 2016-08-19 2017-01-04 北京奇虎科技有限公司 A kind of method and apparatus of the dynamic link library (DLL) file reinforcing installation kit
CN108897562A (en) * 2018-06-27 2018-11-27 腾讯科技(深圳)有限公司 Installation kit update method, device, medium and equipment

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
"Inno setup 简单打包教程";C-h-h;《https://blog.csdn.net/chh19941125/article/details/47777785》;20150819;第1-6页 *
"innosetup的静默安装与卸载";军神关云长;《https://blog.csdn.net/qqwangfan/article/details/70159147》;20170413;第1页 *
"Unity3d发布EXE安装程序";塞北狼烟;《https://blog.csdn.net/qq_28775437/article/details/79541671》;20180313;第1-4页 *
"unity3d进程通信利用WM_COPYDARE和HOOK";流波上的舞;《https://www.cnblogs.com/sbCat/p/5257521.html》;20160309;第1-5页 *
月光水岸;"用User32.dll把UNITY程序的窗口透明化";《https://blog.sina.com.cn/s/blog_c0e6ab9b0102wn2s.html》;20160920;第1-4页 *

Also Published As

Publication number Publication date
CN111435303A (en) 2020-07-21

Similar Documents

Publication Publication Date Title
WO2016155388A1 (en) Method and device for installing and running application
US6064382A (en) Object oriented apparatus and method for providing a graphical user interface for host-based software applications
RU2601198C2 (en) Runtime system
KR20020035567A (en) Object property meta model emulator for legacy data structures
KR20040096577A (en) Component model for real time system control
WO2022148390A1 (en) Methods for deploying, updating and calling smart contract in blockchain
WO2019090994A1 (en) Script testing automated execution method, apparatus, equipment and storage medium
CN103729184A (en) Software component combining and constructing method
EP3008604A1 (en) Unified extensible firmware interface (uefi) driver and protocol
KR20130017337A (en) Hybrid app development platform architecture and test method of the same, and computer-readable recording medium with program for the same
CN111209001A (en) Method, system, equipment and medium for batch generation of APKs of android channels
WO2019034066A1 (en) Page update method and apparatus
WO2018184359A1 (en) Application simulation method for payment terminal, mobile terminal and readable storage medium
CN103761107A (en) Software package customizing device and method
CN103150198A (en) Display method of configuration software
CN111435303B (en) Method and terminal for generating 3D installation package
CN107133055A (en) A kind of method that customized development is realized based on ClassLoader
CN112835615A (en) Plug-in processing method and device for software development kit and electronic equipment
CN103530165B (en) A kind of java solution that is applied to Internet of Things industry
CN109298852B (en) Method for simplifying virtual reality application program development and readable storage medium
CN109634611B (en) Mobile terminal three-dimensional model ply file analysis and display method based on OpenGL
CN108681491B (en) File decoupling method and system
CN104133706A (en) Firmware modifying method and device
CN112882690A (en) Application development method and device
TWI447647B (en) Terminal device for executing android applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant