Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Adding Version Information & Icons to app's exe file
Adding Version Information & Icons to app's exe file [message #38905] Sat, 26 January 2013 23:23 Go to next message
navi is currently offline  navi
Messages: 107
Registered: February 2012
Location: Sydney, Australia
Experienced Member
Hi All,

Just wanted to share something I found. Smile

Here is how to add a cool Icon & Version Information to your app EXE file. Unless you specify the path, leave the App.ico in your Package directory. Create a .rc file in the Package directory and add it to your package like any other file. Below is an example of what content can you put in .rc file.

the below example is not my own, its from here. For more example and information about Icon, VERSIONINFO, OS Code, Language Code.
RC files also supports a subset of the preprocessor directives, #defines, #include, #pragmas etc

5556 ICON "App.ico"

1 VERSIONINFO
FILEVERSION     1,0,0,0
PRODUCTVERSION  1,0,0,0
BEGIN
  BLOCK "StringFileInfo"
  BEGIN
    BLOCK "080904E4"
    BEGIN
      VALUE "CompanyName", "My Company Name"
      VALUE "FileDescription", "My excellent application"
      VALUE "FileVersion", "1.0"
      VALUE "InternalName", "my_app"
      VALUE "LegalCopyright", "My Name"
      VALUE "OriginalFilename", "my_app.exe"
      VALUE "ProductName", "My App"
      VALUE "ProductVersion", "1.0"
    END
  END

  BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0x809, 1252
  END
END




index.php?t=getfile&id=4036&private=0

[Updated on: Sat, 26 January 2013 23:30]

Report message to a moderator

Re: Adding Version Information & Icons to app's exe file [message #38908 is a reply to message #38905] Sun, 27 January 2013 03:08 Go to previous messageGo to next message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
You can create such a file with a resource editor like http://radasm.cherrytree.at/resed/
Re: Adding Version Information & Icons to app's exe file [message #51788 is a reply to message #38905] Thu, 30 May 2019 13:08 Go to previous messageGo to next message
Maginor is currently offline  Maginor
Messages: 44
Registered: May 2019
Member
Hi, this does not immediately work for me. Are there other steps I need to make for the IDE to process the .rc file?

Edit: I am not getting any error messages, the icon just simply does not show up on the exe. I am on Windows 7.

[Updated on: Thu, 30 May 2019 13:12]

Report message to a moderator

Re: Adding Version Information & Icons to app's exe file [message #51789 is a reply to message #38905] Thu, 30 May 2019 15:07 Go to previous messageGo to next message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hello Maginor,

Try to use :
5555 ICON DISCARDABLE "App.ico"

Instead of
5556 ICON "App.ico


Also make sure the *.ico is at your local path.
Re: Adding Version Information & Icons to app's exe file [message #51795 is a reply to message #51789] Fri, 31 May 2019 23:10 Go to previous message
Maginor is currently offline  Maginor
Messages: 44
Registered: May 2019
Member
Thank you for the reply!

It works if I compile with visual studio, but not with mingw.

Mingw does produce an .o file for the .rc file, but either it does not get linked in or it is incorrect.
Previous Topic: Is it possible ?
Next Topic: [Skylark][witz] How would you do this
Goto Forum:
  


Current Time: Sun Nov 10 20:47:58 CET 2024

Total time taken to generate the page: 0.02617 seconds