When i click on second mouse button on my executable file i can then click on Properties, go to Details and then i see informations about vendor app description, version number. How can I put this kind of informations in my app?
Printable View
When i click on second mouse button on my executable file i can then click on Properties, go to Details and then i see informations about vendor app description, version number. How can I put this kind of informations in my app?
Probably through the manifest.
I read about manifest in general and i wonder is it necessary to create manifest file in order to deploy my app on Win 7/8/Vista when i want it to be installed in Program Files directory? When I use MinGW not VS?
And as an answer for my first question I found this: http://www.qtcentre.org/threads/3581...light=manifest for those who will be interested
The manifest is about running the application, not installing it.
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:
Code:
#include <windows.h> #define VER_FILEVERSION 2,1,3,924 #define VER_FILEVERSION_STR "2.1.3.924" #define VER_PRODUCTVERSION 2,1,3,924 #define VER_PRODUCTVERSION_STR "2.1.3" #define VER_COMPANYNAME_STR "Cool Company Pty Ltd" #define VER_FILEDESCRIPTION_STR "Cool Program" #define VER_INTERNALNAME_STR "Cool Program" #define VER_LEGALCOPYRIGHT_STR "Copyright 2012 Cool Company Pty Ltd" #define VER_LEGALTRADEMARKS1_STR "" #define VER_LEGALTRADEMARKS2_STR "" #define VER_ORIGINALFILENAME_STR "coolapp.exe" #define VER_PRODUCTNAME_STR "Cool Program" #ifndef DEBUG #define VER_DEBUG 0 #else #define VER_DEBUG VS_FF_PRIVATEBUILD|VS_FF_PRERELEASE|VS_FF_DEBUG #endif ID_ICON ICON DISCARDABLE "coolapp.ico" CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "coolapp.exe.manifest" VS_VERSION_INFO VERSIONINFO FILEVERSION VER_FILEVERSION PRODUCTVERSION VER_PRODUCTVERSION FILEFLAGSMASK VS_FFI_FILEFLAGSMASK FILEFLAGS ( VER_DEBUG ) FILEOS VOS__WINDOWS32 FILETYPE VFT_APP BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904E4" BEGIN VALUE "CompanyName", VER_COMPANYNAME_STR VALUE "FileDescription", VER_FILEDESCRIPTION_STR VALUE "FileVersion", VER_FILEVERSION_STR VALUE "InternalName", VER_INTERNALNAME_STR VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR VALUE "LegalTrademarks1", VER_LEGALTRADEMARKS1_STR VALUE "LegalTrademarks2", VER_LEGALTRADEMARKS2_STR VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR VALUE "ProductName", VER_PRODUCTNAME_STR VALUE "ProductVersion", VER_PRODUCTVERSION_STR END END BLOCK "VarFileInfo" BEGIN /* The following line should only be modified for localized versions. */ /* It consists of any number of WORD,WORD pairs, with each pair */ /* describing a language,codepage combination supported by the file. */ /* */ /* For example, a file might have values "0x409,1252" indicating that it */ /* supports English language (0x409) in the Windows ANSI codepage (1252). */ VALUE "Translation", 0x409, 1252 END END