Installing an additional redistributable file with

2019-03-27 16:38发布

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?

标签: inno-setup
1条回答
不美不萌又怎样
2楼-- · 2019-03-27 16:54

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.

查看更多
登录 后发表回答