如何将安装包包含到innosetup pack程序中? [英] How to include an install pack into an innosetup pack program?

查看:61
本文介绍了如何将安装包包含到innosetup pack程序中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用innosetup来打包我的程序,同时,我需要安装一个exe格式的第三方文件。如何组合它们所以我只需要安装一次而不是单独安装dll和我的程序?



我尝试过的方法:



innosetup的文件太少了。

I use innosetup to pack my program,in the mean time,i need install a exe format third-part file. How to combine them so I just need once installation instead of installing the dll and my program individually?

What I have tried:

The documents of innosetup is too few.

推荐答案

这些都出现在 Inno设置帮助 [ ^ ]。另请参阅 Inno安装知识库 [ ^ ]和 Inno设置常见问题解答 [< a href =http://www.jrsoftware.org/isfaq.phptarget =_ blanktitle =New Window> ^ ]。



使用 [文件]部分 [ ^ ]并将临时目录指定为目的地:

It is all present in the documentation at Inno Setup Help[^]. See also the Inno Setup Knowledge Base[^] and the Inno Setup FAQ[^].

Add the 3rd party executable to the archive using the [Files] section[^] and specify the temporary directory as destination:
[Files]
Source: "3rdparty.exe"; DestDir: "{tmp}"



要安装第三方可执行文件,请在 [运行]部分 [ ^ ]:


To install the 3rdparty executable execute it in the [Run] section[^]:

[Run]
Filename: "{tmp}\3rdparty.exe"





请参阅提供的链接,了解其他参数,例如传递参数(例如DLL的目的地)。



如果必须在目标目录中执行第三方可执行文件,请将上述示例中的 {tmp} 路径更改为您的应用程序路径 { app} 并在安装后将其删除:



See the provided links for additional parameters like passing arguments (e.g. the destination for the DLL).

If the 3rd party executable must be executed in the destination directory, change the {tmp} path in the above examples to your app path {app} and delete it after installation:

[Files]
Source: "3rdparty.exe"; DestDir: "{app}"; Flags: deleteafterinstall
[Run]
Filename: "{app}\3rdparty.exe"


这篇关于如何将安装包包含到innosetup pack程序中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆