有什么好的免费实用程序来创建带有嵌入式文件版本的自解压可执行文件? [英] What is a good free utility to create a self-extracting executable with an embedded file version?

查看:125
本文介绍了有什么好的免费实用程序来创建带有嵌入式文件版本的自解压可执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据

According to the answers to this question, I cannot embed a file version in my .msi file.

我提供给客户端的安装程序需要具有文件版本.

The installer that I give the client needs to have a file version.

因此,我要做的是创建一个自解压的可执行文件,其中包含msi文件和Visual Studio生成的setup.exe,然后将文件版本放到该自解压的可执行文件上.

So, what I want to do is create a self-extracting executable containing the msi file and the setup.exe generated by Visual Studio, and put the file version on this self-extracting executable instead.

因此,我需要一个实用程序来创建自解压可执行文件,该程序支持在其输出中嵌入文件版本.它还需要支持提取后自动运行文件,因此我可以自动启动真正的安装程序.如果可以编写脚本,那就太好了.

Therefore, I need a utility to create self-extracting executables which supports embedding a file version in its output. It also needs to support automatically running a file after extraction, so I can start the real installer automatically. It would be nice if it was scriptable.

我所能找到的只是,看起来不错,但我宁愿选择免费的替代品.

All I could find was this, which looks great, but I would much prefer a free alternative.

有人有什么建议吗?

为了澄清,我并不是真的想创建安装程序-我已经有一个VS安装项目.我只想要一个自解压程序(例如WinZip可以创建).因此,用户将鼠标悬停在Setup-Blorgbeard2008.exe上,看到的是版本:1.0.0.0".用户双击它,它以静默方式将setup.exe和setup.msi提取到一个临时文件夹中,然后运行setup.exe.然后,用户会看到正常的安装程序屏幕,并照常进行.

To clarify, I'm not really looking to create an installer - I already have a VS setup project. I just want a self-extractor (like WinZip can create). So, the user mouses over Setup-Blorgbeard2008.exe, sees "Version: 1.0.0.0". User doubleclicks it, it silently extracts setup.exe and setup.msi to a temp folder, then runs setup.exe. User then sees normal installer screen and proceeds as normal.

另一个是的,我现在不需要自解压器,因为我的其他问题现在已经回答了.这使得整个问题几乎无关紧要.能够仅分发一个文件而不是setup.exe和setup.msi仍然很高兴.

Another Yay, I don't need a self-extractor anymore, since my other question has now been answered. That makes this whole question pretty much irrelevant. It would still be nice to be able to distribute only one file, rather than setup.exe and setup.msi.

推荐答案

NSIS可以做到这一点.

NSIS can do this.

我们的构建环境的一部分是一个脚本,该脚本将版本信息输出到NSIS脚本来源的标头"文件中.您应该能够使用类似的方法来嵌入版本信息,并且当然可以让NSIS在提取后运行文件.

Part of our build environment is a script that outputs version information to a "header" file that our NSIS script sources. You should be able to use something similar to embed your version information and you can certainly get NSIS to run a file after extraction.

实际上,随着NSIS创建安装程序包,您可以大大简化您的方法.

In fact, as NSIS creates the installer package... you may be able to simplify your approach a great deal.

这篇关于有什么好的免费实用程序来创建带有嵌入式文件版本的自解压可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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