我使用IExpress从.bat文件创建了一个.exe文件,想要为这个.exe文件设置一个自定义图标。这是否可行?
谢谢
Create your IExpress package as normal.
Launch Resource Hacker, then open your IExpress-generated executable.
In the Action menu, choose Replace Icon …
Open the file that contains the icon you want to use, then click Replace.
Save the file in Resource Hacker. This will get you two files:
package.exe
package_original.exe
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.)
作为一种解决方法,您可以创建exe文件的快捷方式,然后为其设置自定义图标。