这是我的代码[文件]部分至今之前运行它:创新安装:安装其他安装程序,并继续我的安装
[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”和其他操作。
我已经使用Google搜索并在Inno Setup Help中找到了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}"
稍后可以存储错误和中断(并可能回滚)安装吗? – Septagram