使用Inno Setup安装其他可再发行文件 [英] Installing an additional redistributable file with Inno Setup
问题描述
我正在使用Inno设置程序来安装我的工具以及一些dll.但是,我需要在安装过程中运行microsoft redistributable .exe.如何将其嵌入设置过程?
如果要在应用程序中安装其他可再发行组件,则可以使用带有dontcopy
标志的普通[Files]
条目将它们添加到设置中. /p>
然后您可以在PrepareToInstall
事件函数中使用ExtractTemporaryFile()
函数将其提取,并使用Exec()
运行它.
此方法还可以让您检查退出代码,并在需要时提示重新启动.
有各种 ISXKB Wiki上的相关文章.
I am using Inno setup to install my tool together with some dlls. However, I need to run a microsoft redistributable .exe during my setup. How can embed it into the setup process?
If you want to install additional redistributables with your application, you can add them to the setup using a normal [Files]
entry with the dontcopy
flag.
You can then extract this during the PrepareToInstall
event function using the ExtractTemporaryFile()
function and run it using Exec()
.
This method will also allow you to check the exit code and prompt to reboot if required.
There are various related articles on the ISXKB wiki.
这篇关于使用Inno Setup安装其他可再发行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!