You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Jerker B�ck <in...@telia.com> on 2001/03/11 23:17:41 UTC

general/7388: Version info in apache.exe and Windows DLL

>Number:         7388
>Category:       general
>Synopsis:       Version info in apache.exe and Windows DLL
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Sun Mar 11 14:20:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     info.jelmar@telia.com
>Release:        2.014
>Organization:
apache
>Environment:
WinNT4 sp6 VC7++(beta1)
>Description:
Why not include version info in the windows versions of Apache. It's so easy and so useful. By right-clicking on a file the user know exactly which version of Apache he/she is running, if there is a mix, or just as info about the files. In Dependency Walker, one can see more info: dependent files, debug info, linker version etc. but it doesn't look good with these empty spaces in the Apache-files! 
>How-To-Repeat:
Start windows, right-click on apache executables.
>Fix:
Include a resource script in the apache executables projects. There is also the linker option "/VERSION: #.#". If there was a way to send files I could send you my scripts. I paste the libhttpd.DLL script below. 

"apcore.rc"
->

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winresrc.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Neutral resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
#ifdef _WIN32
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 2,0,14,0
 PRODUCTVERSION 2,0,0,0
 FILEFLAGSMASK 0x17L
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x40004L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "000004b0"
        BEGIN
            VALUE "Comments", "Apache HTTP Server Core libraries\0"
            VALUE "CompanyName", "The Apache Software Foundation\0"
            VALUE "FileDescription", "Apache HTTP Server Core\0"
            VALUE "FileVersion", "2, 0, 14, 0\0"
            VALUE "InternalName", "libhttpd\0"
            VALUE "LegalCopyright", "(c) 2000 The Apache Software Foundation\0"
            VALUE "LegalTrademarks", "http://www.apache.org/\0"
            VALUE "OriginalFilename", "libhttpd.dll\0"
            VALUE "ProductName", "Apache HTTP Server\0"
            VALUE "ProductVersion", "2, 0, 0, 0\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x0, 1200
    END
END

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE 
BEGIN
    "\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""winresrc.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED

#endif    // Neutral resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED


<- apcore.rc

>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]