?
Solved

Version Resource

Posted on 1997-04-25
2
Medium Priority
?
182 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 100 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

771 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