Unity Window installation package production

introduce

今天给大家介绍一下将Unity打包的**exe**程序制作成**安装包**。
因为公司它是一个做传统教育行业的公司,18年初才开始转型做线上教育产品,所以公司对其投入并不是特别大,所以我们当时才用**RAR的自解压包**的方式去做Window安装包,其他花钱的就没再考虑,直到这段时间发现了一篇文章介绍了SetUp Factory的工具,更加方便的创建window安装包,所以这里我介绍两种方式去制作window安装包。

Original link: https://blog.csdn.net/heikeguy/article/details/88364297

1. RAR self-extraction method

1. Find the executable program packaged by Unity

Here is the exe project packaged by our Unity.
Click MathTeacher.exe to run it directly.
Insert image description here

2. Create a self-extracting file

Insert image description here

Check to create a compressed file in self-extracting format
and enter the compressed file name.
Insert image description here

3. Configuration settings

General settings:

Here the compression format and compression method I usually use RAR and standard (according to personal needs)
update method. According to personal needs, you can choose to overwrite source files, skip existing files, etc. Operations can be set according to needs.

Insert image description here

advanced settings:

You can use automatic compression (the default is enough)
![Insert image description here](https://img-blog.csdnimg.cn/20190814221946472.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQyMTk0NjU3, size_16,color_FFFFFF,t_70
to set the password.
Insert image description here
Self-extraction options.
Insert image description here
Advanced ------->Add shortcut.
Mode ------->Installation mode settings (dialog startup and hiding).
Update--- ---->Update method and overlay method (decompression replacement, decompression update, coverage inquiry)
text and icon ------->Window title, window text and icon (pay attention to the format selection of the icon here. ico format)

File settings
Insert image description here
backup settings

Check
Insert image description here
the time settings
as needed (default is sufficient )
Insert image description here

Annotation settings

Key point:
You can write code here to perform all the above operations, which is convenient.
If you don’t want to configure it, you can refer to my following code.

Insert image description here

Path=c:\MathTeacher (installation path)
Title=MathTeacher (installation title)
Shortcut=D (which drive letter), MathTeacher.exe (source file of the shortcut), , , MathTeacher (shortcut name),

4. Finally click OK and wait for the compression to complete (the default generation location is the path when you right-click the selected file and add it to the compressed file)

2. Setup Factory tool

V 9.1 version
resource link: https://pan.baidu.com/s/1Yq3JQx7pQARRPvVVysFTfw
extraction code: q5ab

Install

  1. Click Next
    Insert image description here
  2. Check I agree and click Next
    Insert image description here
  3. For user information, fill
    in the Name and Company and write the Serial Number (registration code) as you like.
    The registration code is in the "Registration Code and Chinese Instructions" in the downloaded resource folder.
    Insert image description here
  4. After selecting the installation path
    , click Next and wait for completion.
    Insert image description here
    Insert image description here
    Insert image description here
  5. The installation is complete
    Insert image description here

Make Window installation package

1. Import the project.
Insert image description here
Insert image description here
According to the requirements here, because the minimum configuration of our company's project is the XP system, we use 32-bit
Insert image description here
Insert image description here

Insert image description here

Insert image description here
Select Simplified Chinese
Insert image description here
installation environment (you need to download the environment here)
Insert image description here
and the default is OK.
Insert image description here
Wait for all files to be loaded.
Insert image description here
Loading is complete.
Insert image description here

Related common configuration settings

Insert image description here
Insert image description here

Insert image description here

Insert image description here
Insert image description here

Insert image description here
Insert image description here

Package the installation package

The default is
Insert image description here
to output the
settings immediately. After the settings are completed, click Next
Insert image description here
and wait for the packaging to be completed
Insert image description here
. Note: Here is just a brief introduction to how to use common functions. Please study on your own if not mentioned.

Summarize

Comparing the two tools, RAR is a lightweight tool and more convenient, but the installation package in the self-extracting format may not be so professional compared to mature commercial projects. It is considered a lightweight tool, after all. RAR did not create this function separately.
Compared with SetupFactory, it may be the first choice for commercial projects, because it is relatively standardized and comes with a series of tools such as uninstaller and environment configuration. The most important thing is that it is free and is a relatively conscientious tool.

Guess you like

Origin blog.csdn.net/qq_42194657/article/details/135422768