Solved

Version Resource

Posted on 1997-04-25
2
179 Views
Last Modified: 2010-04-04
How do I make Delphi2 EXE's with Microsoft Version information ?

I used my C compiler's resource studio to create a RES file with version info.  I then added {$R VER.RES} to my DPR file.  When viewing the properties of my EXE from the windows explorer there is no version tab (hate that!).
0
Comment
Question by:mlanza
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
buemoh earned 50 total points
ID: 1335727
Dear mlanza,

I think, there might be two reasons, why you'ven't got any version information.

1. Your version.res should like look this:
--------------------------------------------------------------
1 VERSIONINFO
FILEVERSION 3, 10, 0, 61
PRODUCTVERSION 3, 10, 0, 61
FILEOS VOS_DOS_WINDOWS32
FILETYPE VFT_APP
{
 BLOCK "StringFileInfo"
 {
  BLOCK "040904E4"
  {
   VALUE "CompanyName", "Your company\000\000"
   VALUE "FileDescription", "Description about the file\000"
   VALUE "FileVersion", "1.00\000\000"
   VALUE "InternalName", "Internal application name\000"
   VALUE "LegalCopyright", "Copyright © your company 1997\000\000"
   VALUE "OriginalFilename", "EXE-filename\000"
  }

 }

 BLOCK "VarFileInfo"
 {
  VALUE "Translation", 0x409, 1252
 }

}


2. Your projcet should like look this:
-------------------------------------------------------
program Project1;

uses
  Forms,
  Unit1 in 'Unit1.pas' {Form1};

{$R *.RES}
{$R VERSION.RES}

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.


Be carefuly, but you should compile the VERSION.RC file with the BRCC32.EXE program found in the \Delphi 2.0\bin directory.

On my Windows95 Windows Explorer now the version information is shown.

Hope, that are the ways you needed.

Bye

Hartwig

-----------------------------------------------------------
///\\\ Hartwig MOTAL ///\\\  e-mail: moh@bue.magwien.gv.at
 Weinberggasse 60/9/7, A-1190  Vienna/Austria/Europe

0
 

Expert Comment

by:lkovac
ID: 1335728
Use BRCC32.EXE to compile your resource.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

749 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