.exe 文件大小是否会影响其图标的显示?
我有一大堆文件,正在尝试将其打包到单个自解压可执行文件中,并且到目前为止已经能够使用 Installshield 10.5 和 Winzip Self-Extractor 4.0 来完成此操作,但是我无法显示图标最终的 .exe 文件(现在,显示 Windows 默认的白色窗口/蓝色标题图标)
我尝试使用 NSIS、Installshield、Winzip 自解压器中内置的实用程序,甚至在最终的 .exe 文件上使用 Reshacker 和 eXe 来更改图标。 根据每个解决方案,图标文件确实嵌入到.exe中,但它们拒绝在资源管理器中显示。
所以,我认为这个问题可能与 .exe 文件大小(1.39 GB)有关,在扫描文件中是否有 .ico 时,它无法解析整个文件并放弃。
我使用 Winzip 自解压程序创建了一个较小的 .exe (10 MB) 对此进行了测试,实际上,图标出现了,按预期工作。
但是,这并没有解决我的问题,我现在陷入困境。 尽管操作系统有问题,但可能有一种方法可以让该图标显示出来,但我还没有找到。 如果有人可以提供任何见解或为我指出正确的方向,我将不胜感激。
我已经对此进行了测试: Windows XP 家庭版,2002,SP2 Windows XP 专业版、2002、SP3
I have a large cluster of files that I'm trying to pack into a single self-extracting executable and have so far been able to accomplish this with both Installshield 10.5 and Winzip Self-Extractor 4.0, however I cannot get the icon to appear for the final .exe file (right now, windows default white window/blue title icon is being shown)
I tried using the utilities built into NSIS, Installshield, Winzip Self-Extractor and even used Reshacker and eXe on the final .exe file to change the icon. According to each solution, the icon files are indeed embedded in the .exe, but they refuse to show in explorer.
So, I figured this problem may be related to the large file size of the .exe (1.39 GB), prehaps in scanning the file for .ico's it could not parse the whole file and gives up.
I tested this using Winzip Self-Extractor to create a smaller .exe (10 MB) and indeed, the icon shows up, working as intended.
However, this does not solve my problem, and I'm stuck at this point. There might be a way to get that icon to show up despite the operating system's trouble but I have not found it yet. If anyone can provide any insight or point me in the right direction, I would appreciate it.
I have tested this on:
Windows XP Home, 2002, SP2
Windows XP Pro, 2002, SP3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,大型 .exe 不会显示其图标。
您将所有内容打包到一个 .exe 中是否有原因? 考虑安装程序的其他选项,例如将文件存储在文件夹中并让安装程序从该文件夹复制文件(使用 NSIS - CopyFiles 命令)。
Yes, large .exe's will not show their icon.
Is there a reason you're packing everything into a single .exe? Consider other options for your installer, like storing the files in a folder and having the installer copy files from that folder (with NSIS - the CopyFiles command).
程序图标取自程序资源,这些资源可能因安装程序有效负载而变得臃肿。
也许某些资源编辑应用程序或打包器设置可以将图标移向文件开头以简化资源管理器的工作。
Program icons are taken from program resources, which may be bloated by installer payload.
Maybe some resource editing application or packer settings could move icon towards file start to ease Explorer's work.