Exe file description

Hi,

Is there any way to change EXE file description ? Something like Windows API maybe ?
When you right click an exe file and display the properties, you will read its description.

Thanks
muis2002Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mnashadkaCommented:
To do this, you need to add Version information to your document.  If you're using Microsoft Visual C++, you can just do an "Add Resource" and select Version in the add resource dialog box.  The steps to do this are a little different depending upon which version of Visual C++ you have and which type of project you have.  Then you can put the description that you want to show up in the "FileDescription" section of the version.  Hope this helps.
0
muis2002Author Commented:
Yes, I know that. I made the exe my self. But my question is, is there any way to CHANGE it? Using external application I meant.
0
mnashadkaCommented:
It has to be built into the exe.  You can't change it externally.  If you made the exe yourself, why can't you add the resource and recompile it?
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

jkrCommented:
Win32 has 'UpdateResource()' that can be used to change any resource. You can also open the .exe file in Visual Studio, all you nedd to do is selcting "Resource" in the "Open as" combo box.
0
Jaime OlivaresSoftware ArchitectCommented:
Must be programaticaly?
If you just have to change some info about Version Resource, use Visual C++, open .exe file **as resource**, all resources of file will appear, including version resource, then you can change it and save again.
0
Jaime OlivaresSoftware ArchitectCommented:
If you want to update it programatically, read this article:
http://www.codeproject.com/samples/UpdateVersion.asp
0
muis2002Author Commented:
Thanks for the information. But I cant find any information about how to change the DESCRIPTION (not the file version).
0
Jaime OlivaresSoftware ArchitectCommented:
Description is an item of file version.
Follow the codeproject's sample
After GetFileVersionInfo, use VerQueryValue() to obtain '\VarFileInfo\Translation' value. Store translation in a structure like this:
      struct translate
      {
            WORD languageId;
            WORD characterSet;
      } Translation;
Now use VerQueryValue() again to obtain 'VarFileInfo\xxxx\FileDescription' where xxxx is translation ids.
Read more at GetDynamicInfo() in this sample code:
http://cvs.sourceforge.net/viewcvs.py/audioscrobbler/wa2plugin/VersionApp.cpp?rev=1.1&view=markup

MSDN info:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/versioninformation/versioninformationreference/versioninformationfunctions/verqueryvalue.asp

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.