Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add meta data to Visual Studio C/C++ project

I made a simple program in Visual Studio and would like to distribute it. However, before I can do that, I would like to add metadata to the executable file (such as author, version, etc.) Is there any way to do this in a C or C++ project in Visual Studio 2017?

like image 905
Cpp plus 1 Avatar asked Dec 07 '25 02:12

Cpp plus 1


1 Answers

In the VS2008 Resource view, right-click on your project.

From the pop-up menu, select Add resource.

In the dialog, select Version

A Versioning resource is added to your project (program). Double-click on it and it will be shown in the editing pane. You can adapt the standard versioning elements.

If you right-click in the editor, you can add your own blocks.

If you compile your application, the version information will be added to the executable. Right-click the excutable, select Properties and then select the Detail tab to see your information.

Note: when testing, the executable was now flagged harmfull by F-Secure. I reported this false positive to F-Secure.

like image 60
Paul Ogilvie Avatar answered Dec 08 '25 15:12

Paul Ogilvie