iconsexeiexpress

IExpress - create exe with custom icon


With the help of IExpress I created an exe from a bat file and would like to set a custom icon for the exe. Is this possible?

Regards


Solution

  • Try Resource Hacker. It worked here with a test IExpress installer.


    Step-by-step instructions:

    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.)