Solved

Version Resource

Posted on 1997-04-25
2
159 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
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now