问题描述
我看到可执行文件会解压缩并随后运行压缩的setup.exe
:双击该文件将其解压缩,然后运行以前压缩的setup.exe
.
I've seen executables that extract themselves and run a compressed setup.exe
afterwards: a double click on the file uncompresses it and then runs the formerly compressed setup.exe
.
我该怎么做?我想使用WinRAR,在将压缩后的setup.exe
解压缩到临时文件夹后,如何制作一个运行该压缩后的自解压可执行文件?
How can I accomplish this? I would like to use WinRAR, how can I make a self-extracting executable that runs the compressed setup.exe
after unpacking it to a temporary folder?
推荐答案
新存档,设置为SFX模式.转到高级"选项卡,"SFX选项"按钮.
New Archive, set to SFX mode. Go to Advanced tab, SFX Options button.
常规"选项卡上的提取后运行"文本框.输入您的setup.exe,如果有,请输入相对路径.
General tab, "Run after extraction" textbox. Enter your setup.exe, with relative path if any.
然后转到模式"标签并将其设置为临时"模式:
Then go to Modes tab and set it to Temporary mode:
如果您将问题字段保留为空白,它不会提示用户,并且可以使用底部的单选按钮使其保持沉默.
It will not prompt the user if you leave the question fields blank, and you can make it silent with the radio buttons at the bottom.
这篇关于如何使用WinRAR制作自安装可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!