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.
2. Create a self-extracting file
Check to create a compressed file in self-extracting format
and enter the compressed file name.
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.
advanced settings:
You can use automatic compression (the default is enough)
to set the password.
Self-extraction options.
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
backup settings
Check
the time settings
as needed (default is sufficient )
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.
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
- Click Next
- Check I agree and click Next
- 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.
- After selecting the installation path
, click Next and wait for completion.
- The installation is complete
Make Window installation package
1. Import the project.
According to the requirements here, because the minimum configuration of our company's project is the XP system, we use 32-bit
Select Simplified Chinese
installation environment (you need to download the environment here)
and the default is OK.
Wait for all files to be loaded.
Loading is complete.
Related common configuration settings
Package the installation package
The default is
to output the
settings immediately. After the settings are completed, click Next
and wait for the packaging to be completed
. 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.