Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Changing the icon of a self extracting exe

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #19369 |

    I have made a short program that zip a few files into a self extracting exe-file. This works fine! However, I would like the exe to have a my own icon, i e I want to replace the default green zip icon.

    How do I do this?

    Imported from legacy forums. Posted by AndreasElin (had 2131 views)

    User (Old forums)
    Member
    Post count: 23064

    Hello Andreas.

    Simply set the Icon property of your XceedSfxPrefix instance (“sfx” in this example), like this:

    sfx.Icon = new System.Drawing.Icon( @”d:\foo.ico” );

    The icon file must only contain a 32×32 with 16 colors image.

    Imported from legacy forums. Posted by Martin (had 3020 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.