Solved

Version Resource

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

813 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

14 Experts available now in Live!

Get 1:1 Help Now