NO

Author Topic: VERSIONINFO can only get three fields working !  (Read 6772 times)

EdPellesC99

  • Guest
VERSIONINFO can only get three fields working !
« on: September 06, 2011, 04:57:07 PM »

  Hi,

  Using the e.g. in Pelles C Help:
Code: [Select]
1 VERSIONINFO
FILEVERSION 2,50,0,0
PRODUCTVERSION 2,50,0,0
FILEOS VOS_DOS_WINDOWS32
FILETYPE VFT_APP
{
    BLOCK "StringFileInfo"
    {
        BLOCK "040904B0"  /* U.S. English, Unicode */
        {
            VALUE "CompanyName", "More Bucks Than Always\0"
            VALUE "FileDescription", "One really cool application\0"
            VALUE "FileVersion", "2.50\0"
            VALUE "LegalCopyright", "Copyright (c) More Bucks Than Always 2007\0"
            VALUE "ProductName", "Cool application for professionals\0"
            VALUE "ProductVersion", "2.50\0"
            VALUE "InternalName", "coolapp\0"
            VALUE "OriginalFilename", "coolapp.exe\0"
        }
        BLOCK "041D04B0"  /* Swedish, Unicode */
        {
            /* as above, in Swedish... */
        }
    }
    BLOCK "VarFileInfo"
    {
        VALUE "Translation", 0x409, 0x4B0  /* U.S. English, Unicode */
        VALUE "Translation", 0x41D, 0x4B0  /* Swedish, Unicode */
    }
}

  I only see three fields in my tooltip:

Description:
Company:
File Version:

  What is causing the other fields to be missing?

  I know there are registry entries for the tooltip on a particular filetype, but have no idea if this should be a factor in the Pelles C build (hope not, as the tooltip would be specific-device dependent).

I have looked at winver.h, and I am afraid it isn't helping *me*.

Tx,
Ed

CommonTater

  • Guest
Re: VERSIONINFO can only get three fields working !
« Reply #1 on: September 06, 2011, 05:08:14 PM »
It's a Windows thing... There's nothing wrong with your Version Info...  Right click the file and select Properties -> Details  ...

EdPellesC99

  • Guest
Re: VERSIONINFO can only get three fields working !
« Reply #2 on: September 07, 2011, 12:22:21 AM »
Tater,

  I don't even have a details tab in Properties !

Tx, Ed
P.S.
I have General, Version, Compatibility, and Summary !

CommonTater

  • Guest
Re: VERSIONINFO can only get three fields working !
« Reply #3 on: September 07, 2011, 12:41:37 AM »
On XP, you probably want the version tab...

Here's how it looks on Win7...

EdPellesC99

  • Guest
Re: VERSIONINFO can only get three fields working !
« Reply #4 on: September 07, 2011, 05:42:22 AM »
Tx Tater,

  Well I had been fooling around, and taken the versioninfo off, when I looked at the Version tab..... thinking that might be what you meant it was blank.... so I figured you DID mean details.

  Anyway OK, now I do see the info in the version tab.

In the block:

Code: [Select]
1 VERSIONINFO
FILEVERSION 3, 6, 2011, 110
PRODUCTVERSION 2,50,0,0
FILEOS VOS_DOS_WINDOWS32
FILETYPE VFT_APP
{
BLOCK "StringFileInfo"
{
BLOCK "040904B0"  /* U.S. English, Unicode */
{
VALUE "CompanyName", "Grossheim Software\0"
VALUE "FileDescription", "BkUp Utilities -Essential Collection\n                To G:\\2009\0"
VALUE "FileVersion", "1.0.0\0"
VALUE "LegalCopyright", "Copyright (c) More Bucks Than Always 2007\0"
VALUE "ProductName", "Cool application for professionals\0"
VALUE "ProductVersion", "2.50\0"
VALUE "InternalName", "coolapp\0"
VALUE "OriginalFilename", "coolapp.exe\0"
}

  Attached is a capture of the Version Tab Info I get, and a capture of the ToolTip I get.

  As You can see I got the strings for just four of the value names.

  On the subject of the ToolTip:
  If I were to comment out the valuenames "CompanyName" and "FileDescription", above, then the ToolTip shows no info beyond the ordinary.

  Now the Version tab *is* created by the above insert from Pelles C Help,
leaving in out of the .rc and of course there is no Version tab at all on the build.

  Wonder how I can add more VERSIONINFO to the ToolTip?

  Tx, Ed

CommonTater

  • Guest
Re: VERSIONINFO can only get three fields working !
« Reply #5 on: September 07, 2011, 02:55:05 PM »
I'm sure you've looked at this already... but here's the MSDN link.... http://msdn.microsoft.com/en-us/library/aa381058(v=vs.85).aspx

If you open your resource file in text mode ... right click in the project tree -> open as -> text... I believe it is perfectly legal to "make stuff up" so long as you follow the line format... for example you could try adding...
Code: [Select]
VALUE "Compiler", "Pelles C 6.5.0 rc 4";

If I'm not mistaken you should see it show up in the properties dialog for the program... but not in the tooltip.

This is information we are supplying to windows... How it uses the data  is not fully under our control. 

I don't believe you have any say in what's on the tooltip... 

(And quite frankly, if we did, it's likely they'd be used for advertising by now... Put your mouse on a desktop Icon and a half screen ad for Jolt Cola pops up.  Now THAT would be annoying!)



« Last Edit: September 07, 2011, 03:01:49 PM by CommonTater »

EdPellesC99

  • Guest
Re: VERSIONINFO can only get three fields working !
« Reply #6 on: September 07, 2011, 04:04:27 PM »
Yes,

  That would be the last straw !

Ok l will be checking out the link, digesting your info, and checking out .......Timo's other thread reply.

Tx Tater, Ed


CommonTater

  • Guest
Re: VERSIONINFO can only get three fields working !
« Reply #7 on: September 07, 2011, 06:48:44 PM »
Of course you could always cheat...

Code: [Select]
VALUE "FileDescription", "BkUp Utilities -Essential Collection\n\tCompiled in Pelles C\n\tUseful for all kinds of interesting stuff\n\tAnd not a little bit buggy or cantankerous!\n\tTo G:\\2009\0"

I believe you can go about 256 characters in each string without problems....


EdPellesC99

  • Guest
Re: VERSIONINFO can only get three fields working !
« Reply #8 on: September 07, 2011, 08:18:33 PM »
Cheating Works pretty well !  Nice WorkAround.

This Code, gave tooltip shown.

Notice at the end of description it "Guys" was cut to "G", apparently there is about a 124 character limit to the value of VALUENAME "FileDescription" .....including the quotes:
Code: [Select]

// // ~ •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •
// PellesC Help
1 VERSIONINFO
FILEVERSION 1, 0, 0, 2011

//PRODUCTVERSION 2,50,0,0
FILEOS VOS_DOS_WINDOWS32
FILETYPE VFT_APP
{
BLOCK "StringFileInfo"
{
BLOCK "040904B0"  /* U.S. English, Unicode */
{
VALUE "FileDescription", "BkUp Utilities - Essential Collection to G:\\2009\nProduct Category: BackUp Tools\nToolTip: Thanks to PellesC Forum Guys \0"
// FileDescription seems to be limited to 124 char including the quotes
VALUE "CompanyName", "Grossheim Software\0"
}
BLOCK "041D04B0"  /* Swedish, Unicode */
{
/* as above, in Swedish... */
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x409, 0x4B0  /* U.S. English, Unicode */
VALUE "Translation", 0x41D, 0x4B0  /* Swedish, Unicode */
}
}
// // ~ •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •


Thanks Tater, on the subject of Tooltip this seems to be the best solution to get the mostest in !