【发布时间】:2013-11-04 12:58:04
【问题描述】:
到目前为止,这是我的代码的 [Files] 部分:
[Files]
Source: "other_installer.exe"; DestDir: "{app}"
Source: "myprogram.exe"; DestDir: "{app}"
Source: "data.dat"; DestDir: "{app}"
Source: "otherdata.dat"; DestDir: "{app}"
我的程序依赖于另一个程序来运行。我已经在我的安装程序中包含了这个程序的安装程序(“other_installer.exe”)。我想做的是在复制完成后立即启动此安装程序,然后继续执行“myprogram.exe”和其他操作。
我在 Inno 设置帮助中搜索并找到了 BeforeInstall 的文档,但他们没有运行另一个应用程序的示例。我相信它应该是这样的:
[Files]
Source: "other_installer.exe"; DestDir: "{app}"
Source: "myprogram.exe"; DestDir: "{app}"; BeforeInstall: // RUN OTHER_INSTALLER.EXE //
Source: "data.dat"; DestDir: "{app}"
Source: "otherdata.dat"; DestDir: "{app}"
【问题讨论】: