Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding version info to 16bit EXE

Status
Not open for further replies.

DGoulston

Technical User
Jun 17, 2002
21
GB
i have an EXE and i need to add version info to it.

searched everywhere and dont know where to start

regards
Darren

#####################################
---------Dal1983@hotmail.com---------
#####################################
I am here, but where is here when i am there and not here, but am i not always here? interesting........
 
Do you have the tools to rebuild either the exe or any of the libraries it uses?
 
yes we create the exe's

#####################################
---------Dal1983@hotmail.com---------
#####################################
I am here, but where is here when i am there and not here, but am i not always here? interesting........
 
that is 32bit exe versioning..

im talking about 16bit exe's

im talking about adding version information to an exe. it must be possible because there is software that can update the version data but just cant find any that add's it.

#####################################
---------Dal1983@hotmail.com---------
#####################################
I am here, but where is here when i am there and not here, but am i not always here? interesting........
 
You basically modify the .rc file and put that stuff in. It is the same info as in my MSC 3.1 manuals
 
Here is a copy of a MS .rc file dated 1994. It comes as standard with one of the packages I used to use. 32 bit windows was around then but the 16 bit versions were pretty strong still.
Code:
#include "windows.h"
#include "message.h"
#include "wbodbc.rc"

/*--------------------------------------------------------------*/
/* ODBCVER.RC							*/
/* NT resource -- replaces MSVC-generated script		*/
/*--------------------------------------------------------------*/

#include <winver.h>

/*--------------------------------------------------------------*/
/* the following values should be modified by the official      */
/* builder for each build                                       */
/*--------------------------------------------------------------*/

#ifndef VER_PRODUCTVERSION
#define VER_PRODUCTVERSION_STR      "6.0.0000\0"
#define VER_PRODUCTVERSION          6,00,0,0000
#endif

/*-----------------------------------------------*/
/* the following lines are specific to this file */
/*-----------------------------------------------*/

#define VER_FILEVERSION             6,00,0,0000
#define VER_FILEVERSION_STR         "6.0.0000\0"

/* default is nodebug */
#ifndef DEBUG
#define VER_DEBUG                   0
#else
#define VER_DEBUG                   VS_FF_DEBUG
#endif

/* default is privatebuild */
#ifndef OFFICIAL
#define VER_PRIVATEBUILD            VS_FF_PRIVATEBUILD
#else
#define VER_PRIVATEBUILD            0
#endif

/* default is prerelease */
#ifndef FINAL
#define VER_PRERELEASE              VS_FF_PRERELEASE
#else
#define VER_PRERELEASE              0
#endif

#define VER_FILEOS                  VOS__WINDOWS32
#define VER_FILEFLAGSMASK           VS_FFI_FILEFLAGSMASK
#define VER_FILEFLAGS               (VER_PRIVATEBUILD|VER_PRERELEASE|VER_DEBUG)
#define VER_LEGALTRADEMARKS1_STR     "Microsoft\256 is a registered trademark of Microsoft Corporation.\0"
#define VER_LEGALTRADEMARKS2_STR     "Windows\231 is a trademark of Microsoft Corporation.\0"
#define VER_FILETYPE                VFT_DLL
#define VER_FILESUBTYPE             VFT_UNKNOWN

VS_VERSION_INFO	VERSIONINFO
FILEVERSION 	VER_FILEVERSION
PRODUCTVERSION 	VER_PRODUCTVERSION
FILEFLAGSMASK 	VER_FILEFLAGSMASK
FILEFLAGS 	VER_FILEFLAGS
FILEOS 		VER_FILEOS
FILETYPE 	VER_FILETYPE
FILESUBTYPE 	VER_FILESUBTYPE

BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904E4"
        BEGIN
            VALUE "Comments", "Word Basic ODBC\0"
            VALUE "CompanyName", "Microsoft Corp.\0"
            VALUE "FileDescription", "WBODBC.DLL\0"
            VALUE "FileVersion", VER_FILEVERSION_STR
            VALUE "InternalName", "WBODBC.DLL\0"
            VALUE "LegalCopyright", "Copyright \251 1994\0"
            VALUE "LegalTrademarks1", VER_LEGALTRADEMARKS1_STR
            VALUE "LegalTrademarks2", VER_LEGALTRADEMARKS2_STR
            VALUE "OriginalFilename", "wbodbc.dll\0"
            VALUE "ProductName", "WBODBC\0"
            VALUE "ProductVersion", VER_PRODUCTVERSION_STR
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
	/* The following line should only be modified for localized versions.     */
	/* It consists of any number of WORD,WORD pairs, with each pair           */
	/* describing a language,codepage combination supported by the file.      */
	/*                                                                        */
	/* For example, a file might have values "0x409,1252" indicating that it  */
	/* supports English language (0x409) in the Windows ANSI codepage (1252). */
 
	VALUE "Translation", 0x409, 1252
    END
END
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top