使用第三方工具Inno Setup打包应用程序

Inno Setup

Inno Setup官方介绍

Inno Setup is a free installer for Windows programs. First introduced in 1997, Inno Setup today rivals and even surpasses many commercial installers in feature set and stability.

应用打包工具基本使用于所有window版本的系统。including: Windows 10, Windows 8.1, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008 R2, Windows Vista, Windows Server 2008, Windows XP, Windows Server 2003, and Windows 2000. (No service packs are required.)

差异

之前用VS官方的打包工具Microsoft Visual Studio 2015 Installer Projects后,发现无法生成主程序运行时的日志txt文件,安装后除了主程序输出之外都是dll库文件。没有找到方法使其将Release文件打包,因为转而使用Inno Setup

发布应用程序的方法

简单的操作方法

1.进入软件,新建一个Setup Script

Inno 1

2.提示操作,将VS生成的Release文件添加进来。先Browse主运行程序**.exe**,然后将Release文件中的其他文件通过Add file添加。

Inno 2

3.根据提示设置安装文件的Icon等信息

应用程序的桌面快捷方式Icon

应用程序的桌面快捷方式会继用原输出程序的图标,所以只需要在VS生成之前,将程序的ICON设置为需要的图标。