Solved

Product Version (PRODUCTVERSION) of Details Tab of File Property

Posted on 2010-09-08
3
509 Views
Last Modified: 2013-11-09
I am having problems with populating the "Product Version" line of the Details Tab of a file's property. For instance, if you Right Click on a file from within Windows Explorer, you'll see a list of file parameters.  I can populate every other one I need expect for "Product Version".

Attached is the code I'm using in the DLL's (the file I'm creating) resource *.RC file.

What am I doing wrong?

By the way, I have a screen shot of the Details Tab, but I don't know how to post it to this board since it is a BMP file (and it's asking for "Add from URL . . "

I'm using VS.NET 2008 Unmanged C++.

I  have successfully done this with other DLL's but can't for whatever reason do it with this one.
DLL.rc.txt
0
Comment
Question by:richelieu7778
  • 2
3 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 33629488
The problem seems to be

#define PROD_VER      1.0

which should actually look more like

#define PROD_VER      "1, 0, 0, 0"
0
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 33629530
BTW, the same applies to 'VNUM_STR' - a boilerplate version resource would look like
/////////////////////////////////////////////////////////////////////////////

//

// Version

//



VS_VERSION_INFO VERSIONINFO

 FILEVERSION 1,0,0,6

 PRODUCTVERSION 7,0,1,0

 FILEFLAGSMASK 0x17L

#ifdef _DEBUG

 FILEFLAGS 0x1L

#else

 FILEFLAGS 0x0L

#endif

 FILEOS 0x4L

 FILETYPE 0x2L

 FILESUBTYPE 0x0L

BEGIN

    BLOCK "StringFileInfo"

    BEGIN

        BLOCK "040904B0"

        BEGIN

            VALUE "FileDescription", "Sample"

            VALUE "FileVersion", "1, 0, 0, 1"

            VALUE "InternalName", "Sample"

            VALUE "LegalCopyright", "Copyright (C) 2010"

            VALUE "OriginalFilename", "Sample.dll"

            VALUE "ProductName", "Sample"

            VALUE "ProductVersion", "1, 0, 0, 0"

        END

    END

    BLOCK "VarFileInfo"

    BEGIN

        VALUE "Translation", 0x0409, 0x04B0

    END

END

Open in new window

0
 

Author Closing Comment

by:richelieu7778
ID: 33630284
I LOVE EXPERT'S EXCHANGE!!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now