We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
抱歉,我还没有亲自尝试过这个,但是因为我在捆绑一个atom-shell应用程序时想要这个,所以我发现它非常有趣https://github.com/atom/rcedit 出现在我第一次搜索其他答案中提到的 RCEDIT 实用程序时。它的命令之一是:
...所以假设这有效,这可能是我将使用的解决方案 - 我的 Windows 构建机器已经设置为获取使用
git
进行源代码并通过gyp
进行编译。更新:可以通过 https://github.com 获得预构建的可执行文件/atom/rcedit/releases/ 并且它在 Win7 上对我来说运行良好(来自 Git Bash/Msys shell,尽管如果这会有所不同,我会感到惊讶)。
Sorry, I haven't personally tried this one just yet, but becauseI am wanting this while bundling up an atom-shell app, I found it very interesting when https://github.com/atom/rcedit showed up in my first search for the RCEDIT utility mentioned in other answers.One of its commands is:
…so assuming this works, it is likely the solution I will use — my Windows build machine is already set up to fetch source using
git
and compile viagyp
.UPDATE: there's a pre-built executable available via https://github.com/atom/rcedit/releases/ and it works well for me on Win7 (from Git Bash/Msys shell although I'd be surprised if that makes a difference).
Resource Hacker 是一个免费工具,允许您修改可执行文件中的资源,并且它可以从命令行编写脚本。
Resource Hacker is a free tool that allows you to modify resources in executables, and it can be scripted from the command line.
就我而言,尝试使用带有 /A 或 /I 开关的 RCEdit.exe 添加图标会导致可执行文件被修剪。 我有一个 NSIS(NullSoft 安装程序系统) - 创建的安装程序最初为 13 MiB,但在运行 RCEdit 向其添加图标后,剩下的所有内容只有几千字节(接近图标的大小),但是是的,可执行文件显示了图标。
使用 Resource Hacker 添加图标对我有用。 它甚至不需要将图标设置为默认图标的选项,因为它是唯一的图标组资源。 我使用 103 作为资源名称,使用 1033 作为语言。
In my case, trying to add an icon using RCEdit.exe with either /A or /I switches resulted in a trimmed executable. I have a NSIS (NullSoft Installer System) - created setup that was originally 13 MiB, but after running RCEdit to add an icon to it, all of what remains of it is only a few kilobytes (close to the size of the icon), but yes the executable shows the icon.
Adding the icon using Resource Hacker worked for me. It doesn't even need an option to set the icon as default, being the only icon group resource. I used 103 as the name of the resource and 1033 as the language.
您是否尝试过 ResourceTuner 控制台?
Have you tried ResourceTuner Console?