IExpress - 使用自定义图标创建exe文件

3

我使用IExpress从.bat文件创建了一个.exe文件,想要为这个.exe文件设置一个自定义图标。这是否可行?

谢谢

2个回答

8
尝试使用资源编辑器。它在这里测试了一个IExpress安装程序并成功运行。
逐步说明:
  1. Create your IExpress package as normal.

  2. Launch Resource Hacker, then open your IExpress-generated executable.

  3. In the Action menu, choose Replace Icon …

  4. Open the file that contains the icon you want to use, then click Replace.

  5. Save the file in Resource Hacker. This will get you two files:

    • Your new file: package.exe
    • Your original file: package_original.exe
  6. If the icon for package.exe looks wrong on your computer, this is expected behaviour due to the old icon being cached by Explorer. To clear the icon cache, you can execute:

    ie4uinit.exe -show
    

    (This will only be a problem on the computer that you used to edit the file; other computers should show the correct icon straight away.)


旧的讨论,但是你能详细说明如何做到这一点吗? - Mark Deven
1
当然,我添加了步骤。同时发现了一个有趣的问题,即资源管理器图标缓存阻止了更改的立即显示。我录制了一段YouTube视频,以便帮助您理解。 - fission
1
非常感谢您对此事的跟进,而且没有表现出轻蔑。打破了所有堆栈交换的模式,太棒了!谢谢! - Mark Deven
1
没问题 - 说实话,这本来就是我应该写的。非常感谢您的反馈! - fission

0

作为一种解决方法,您可以创建exe文件的快捷方式,然后为其设置自定义图标。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接