Inno Setup 编译器打包多个exe和msi作为组件安装包的代码

本文介绍了如何使用Inno Setup编译器将多个exe和msi文件打包成一个组件安装包,提供了详细的脚本代码示例。
摘要由CSDN通过智能技术生成

 Inno Setup 编译器打包多个exe和msi作为组件安装包的代码。效果如图:

效果图

 

脚本代码如下: 

//创建于2020/11/27  www.baihang.design

[Setup]
#define MyAppName "XXX"
#define MyAppVersion "1.0.0.1"
#define MyAppPublisher "xxxxxx"
#define MyAppURL "http://www.baihang.desig"
#define MyAppExeName "XXX.exe"
#define AppSupportURL "www.baihang.design"

//定义安装包信息
AppId={
  {47A165D0-6237-4B7D-915E-4C3779A70F93}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppVerName={#MyAppName} {#MyAppVersion}
LicenseFile={#file AddBackslash(SourcePath) + "soft\License.txt"}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
DefaultGroupName=RVIPlatform
DisableProgramGroupPage=yes
OutputBaseFilename=Install
OutputDir=C:\Users\lbwslzx\Desktop\Output
SetupIconFile=C:\Users\lbwslzx\Desktop\soft\installlogo.ico
//Uninstallable=yes
//UninstallDisplayName=卸载{#MyAppName}
//UninstallDisplayIcon=C:\Users\lbwslzx\Desktop\soft\uninstalllogo.ico
Compression=lzma     
SolidCompression=yes
PrivilegesRequired=userappdata
WizardStyle=modern
VersionInfoCopyright=Copyright (C) 2020-2021 深圳市罗博威视科技有限公司

//安装语言
[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"

//创建附加任务
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkable
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值