所需工具
Inno Setup 编译器(自行百度下载)
tomcat8.0解压版
JDK8.0解压版
mysql8.0.15解压版
Inno Setup打包文本:
其中xxx部分可以自定义配置,
安装部署的源文件路径为你的解压包所在的路径
软件图标为你的ioc图标所在位置
程序安装成功后执行以下服务脚本,这几个脚本后面会给出
快捷键,根据需要设置,我这里设置的是一个网页和tomcat的启动项
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "xxx平台"
#define MyAppVersion "1.0"
#define MyAppPublisher "xxx有限公司"
#define MyAppURL "https://blog.youkuaiyun.com/menofgod"
; 基本配置
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
; 单独标识,可以通过innosetup-QSP-5.6.1.exe 工具自动生成
AppId={
{F4210312-A665-49E6-A943-E3B01581A3AF}}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
; 默认安装路径
DefaultDirName=E:\onekey
DefaultGroupName={#MyAppName}
; 软件名称
OutputBaseFilename=隧道监控系统
; 软件图标
SetupIconFile=H:\javaWeb一键部署\Tunnel\favicon.ico
; 压缩方式
Compression=lzma
; yes 可以使文件更小
SolidCompression=yes
; 必需有管理员权限才能安装
PrivilegesRequired=admin
; 安装密码
;Password=itdragon
; 开启加密,可能还需要一个dll文件
;Encryption=yes
; 语言配置
[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
; 安装文件
[Files]
; 安装部署的源文件路径
Source: &#