Win32 Version Info Updater

Hi All,

I am trying to update the version info for a dll. I am trying to use the Win32 Version Info Updater command. I point to my resource file, but the property set and the properties to update don't allow me to select anything. What am I doing wrong? I've looked at the help but it isn't helpful.

Thanks.

Hi Mark

Are you pointing it to a .rc file which has a version info record?

One possibility is if your version info record is inside an ifdef, the parser does not handle this and it has no way of knowing about defines. Does the .rc file get updated at all?

Hi Vincent,
Thanks for replying. I'll attach my resource file. Maybe you can determine the problem from this?

Thanks,
Mark

 =======================

 

#ifdef

 

APSTUDIO_INVOKED#error this file is not editable by Microsoft Visual C++

#endif

 

//APSTUDIO_INVOKED

IDR_ESPRIT REGISTRY DISCARDABLE

"ComLib/Esprit.rgs"

IDR_COMAPPLICATION REGISTRY DISCARDABLE

"ComLib/ComApplication.rgs"

IDR_COMTOOLPATHITEM REGISTRY DISCARDABLE

"ComLib/ComOperations/ComToolPathItem.rgs"

IDR_COMVISUALATTRIBUTE REGISTRY DISCARDABLE

"ComLib/ComVisualAttribute.rgs"

1 TYPELIB

"Esprit.tlb"

/////////////////////////////////////////////////////////////////////////////

//

// Version

//

VS_VERSION_INFO VERSIONINFO

FILEVERSION 17,0,0000,0

PRODUCTVERSION 17,0,0000,0

FILEFLAGSMASK 0x3fL

#ifdef

FILEFLAGS 0x1L

_DEBUG

#else

FILEFLAGS 0x0L

#endif

FILEOS 0x4L

FILETYPE 0x1L

FILESUBTYPE 0x0L

BEGIN

BLOCK

"StringFileInfo"

BEGIN

BLOCK

"040904b0"

BEGIN

VALUE

"Comments", "\0"

VALUE

"CompanyName", "D.P. Technology Corp.\0"

VALUE

"FileDescription", "ESPRIT MFC Application\0"

VALUE

"FileVersion", "17,0,0000, 0\0"

VALUE

"InternalName", "ESPRIT\0"

VALUE

"LegalCopyright", "Copyright 1997-2009\0"

VALUE

"LegalTrademarks", "\0"

VALUE

"OriginalFilename", "ESPRIT.EXE\0"

VALUE

"PrivateBuild", "\0"

VALUE

"ProductName", "ESPRIT Application\0"

VALUE

"ProductVersion", "17, 0, 0000, 0\0"

VALUE

"SpecialBuild", "\0"

END

END

BLOCK

"VarFileInfo"

BEGIN

VALUE

END

END

==========

"Translation", 0x409, 1200

//

// ESPRIT.RC2 - resources Microsoft Visual C++ does not edit directly

//

Hi Mark

Looks like the html editor garbled the file… I reconstructed it and tested the updater and it worked fine. I just re-read your original post and I don’t think it has anything to do with the rc file itself, but rather the property set. On the propertyset define action, make sure the propertyset type is set to Win32 Version Info.

Thanks Vincent! That was what I was missing.