Advanced Installer打包程序

1.选择Visual studio Application,点击右下角Create Project
Advanced Installer打包程序
2.填写product Name以及manufacturer Name

3.选择安装文件类型,msi或者exe等

4.选择打包好的文件输出路径
Advanced Installer打包程序
5.选择工程所在路径,比如.sln
Advanced Installer打包程序
6.选择要导入的可执行文件的环境

7.选择你要打包的可执行文件,一个或多个
Advanced Installer打包程序

8.选择需要生成快捷方式的可执行文件
Advanced Installer打包程序
9.选择是否需要安装后自动安装的可执行文件
Advanced Installer打包程序
10.选择对话框样式

11.选择是否要添加licence,然后点击完成,就进入详细打包设置界面

12.按自己需要设置product details和Upgrade

13.选择Resource下的”File and Forders“,点击”Application Forder“,选择工具栏中”Add Files“按钮,进行添加文件(比如配置文件,第三方库等)
Advanced Installer打包程序

14.选择Package Definition下的Install Parameters,在Installation type选择“per-mechine if user is administrator ,per-user otherwise“,在“Run as administrator”前面打勾”(因为我这里需要以管理员身份运行),按自己的需求来选。
Advanced Installer打包程序

15.根据自己需要去设置别的属性

16.设置完成后,点击Builds,选择工具栏上的”build”按钮即可
Advanced Installer打包程序