I have a simple unmanaged c++ project in Visual Studio 2008, and would like to add a description text. Right now I just see the name of the executable in task managers description column (processes tab), but I would like to provide my own text there.
Asked
Active
Viewed 4,913 times
13
-
What versions of Windows call it a Description? On XP at least, it's the "Image name" and it is not configurable. – Joe Jun 18 '09 at 14:52
-
Sorry, as far as I know this column was introduced with Windows Vista. Have a look here: http://www.jason-saggers.com/wp-content/uploads/2008/03/lr540-vista-task-manager-lifeview.jpg – Jun 18 '09 at 14:56
1 Answers
14
You need to add a VERSIONINFO resource to your project, and set the "FileDescription" property to a string that you want to display.
VS_VERSION_INFO VERSIONINFO
FILEVERSION 4,0,0,0
PRODUCTVERSION 4,0,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "Comments", "\0"
VALUE "CompanyName", "Acme Tea Company\0"
VALUE "FileDescription", "Acme Automatic Tea Dispenser\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END

Aidan Ryan
- 11,389
- 13
- 54
- 86

John Dibling
- 99,718
- 31
- 186
- 324
-
For the both of you: Thank you very much!! That is exactly what I was looking for. – Jun 18 '09 at 15:25
-
1I'll just throw the MSDN link in here and delete mine, less confusion that way: http://msdn.microsoft.com/en-us/library/aa381058.aspx – bsruth Jun 18 '09 at 16:14