Inno Setup软件 打包多个安装包程序
作者:互联网
vc_redist.x64.exe 文件放在cod.exe 所在目录
[Files]
Source: “你要打包的软件目录\COD.exe”; DestDir: “{app}”; Flags: ignoreversion
Source: “你要打包的软件目录\vc_redist.x64.exe”; DestDir: “{app}”; Flags: ignoreversion
[Run]
Filename:“"{app\vc_redist.x64.exe”;Flags: nowait skipifsilent
#define MyAppName "我的程序"
#define MyAppVersion "1.5"
#define MyAppPublisher "我的公司"
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "COD.exe"
#define VCExeLibrary "vc_redist.x64.exe"
[Run]
;Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
Filename: "{app}\{#VCExeLibrary}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait skipifsilent
nowait
执行命令的时候,安装包进程不等待此命令执行完成
skipifsilent
如果当前是静默安装模式,那么跳过
postinstall
将会在安装完成界面创建一个可选按钮,让用户勾选或不勾选,当用户勾选时将会执行。默认选项是勾选
unchecked
配合 postinstall 将会修改默认值是不勾选,也就是点击完成不会执行命令
标签:exe,Setup,x64,vc,Flags,Inno,安装包,app,define 来源: https://blog.csdn.net/huangdenan/article/details/121659357