The program information you see on the Properties tab in Windows comes from the Windows resource file built into the application. You use the VERSIONINFO block and its associated string blocks. Something like coolapp.rc:
Qt Code:
  1. #include <windows.h>
  2.  
  3. #define VER_FILEVERSION 2,1,3,924
  4. #define VER_FILEVERSION_STR "2.1.3.924"
  5. #define VER_PRODUCTVERSION 2,1,3,924
  6. #define VER_PRODUCTVERSION_STR "2.1.3"
  7.  
  8. #define VER_COMPANYNAME_STR "Cool Company Pty Ltd"
  9. #define VER_FILEDESCRIPTION_STR "Cool Program"
  10. #define VER_INTERNALNAME_STR "Cool Program"
  11. #define VER_LEGALCOPYRIGHT_STR "Copyright 2012 Cool Company Pty Ltd"
  12. #define VER_LEGALTRADEMARKS1_STR ""
  13. #define VER_LEGALTRADEMARKS2_STR ""
  14. #define VER_ORIGINALFILENAME_STR "coolapp.exe"
  15. #define VER_PRODUCTNAME_STR "Cool Program"
  16.  
  17. #ifndef DEBUG
  18. #define VER_DEBUG 0
  19. #else
  20. #define VER_DEBUG VS_FF_PRIVATEBUILD|VS_FF_PRERELEASE|VS_FF_DEBUG
  21. #endif
  22.  
  23.  
  24. ID_ICON ICON DISCARDABLE "coolapp.ico"
  25. CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "coolapp.exe.manifest"
  26.  
  27. VS_VERSION_INFO VERSIONINFO
  28. FILEVERSION VER_FILEVERSION
  29. PRODUCTVERSION VER_PRODUCTVERSION
  30. FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
  31.  
  32. FILEFLAGS ( VER_DEBUG )
  33. FILEOS VOS__WINDOWS32
  34. FILETYPE VFT_APP
  35. BEGIN
  36. BLOCK "StringFileInfo"
  37. BEGIN
  38. BLOCK "040904E4"
  39. BEGIN
  40. VALUE "CompanyName", VER_COMPANYNAME_STR
  41. VALUE "FileDescription", VER_FILEDESCRIPTION_STR
  42. VALUE "FileVersion", VER_FILEVERSION_STR
  43. VALUE "InternalName", VER_INTERNALNAME_STR
  44. VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
  45. VALUE "LegalTrademarks1", VER_LEGALTRADEMARKS1_STR
  46. VALUE "LegalTrademarks2", VER_LEGALTRADEMARKS2_STR
  47. VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
  48. VALUE "ProductName", VER_PRODUCTNAME_STR
  49. VALUE "ProductVersion", VER_PRODUCTVERSION_STR
  50. END
  51. END
  52.  
  53. BLOCK "VarFileInfo"
  54. BEGIN
  55. /* The following line should only be modified for localized versions. */
  56. /* It consists of any number of WORD,WORD pairs, with each pair */
  57. /* describing a language,codepage combination supported by the file. */
  58. /* */
  59. /* For example, a file might have values "0x409,1252" indicating that it */
  60. /* supports English language (0x409) in the Windows ANSI codepage (1252). */
  61.  
  62. VALUE "Translation", 0x409, 1252
  63.  
  64. END
  65. END
To copy to clipboard, switch view to plain text mode