Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 185585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:29:46+00:00 2026-05-11T15:29:46+00:00

I was wanting to create a small tool in Delphi which can update the

  • 0

I was wanting to create a small tool in Delphi which can update the Delphi version information in another exe file. I know several existing utilities are out there for this but I need full programmatic control and would prefer no shelling out to the command line, etc.

After a web search I couldn’t find any Delphi source code examples of modifying version information in an exe, could anyone provide some code or direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:29:46+00:00Added an answer on May 11, 2026 at 3:29 pm

    I can’t give a complete answer, but I can get you started. There is an article at DelphiDabbler.com that fills in how to get to the version information out of a file. GetFileVersionInfo is the Windows API to do that. To set it, I believe UpdateResource is the Windows API function you’ll need to use. There is another article at CodeProject that covers this, using C, but it should give you a solid idea of what needs to be done.

    Good luck!

    Edit: I found some code on the Delphi newsgroups that might give you some more help:

    // Credit to Michael Winter for this code! Sz := GetLen; GetMem(Data, Sz); try   GetData(Data, Sz);   HFile := BeginUpdateResource(PChar(FileName), false);   if HFile = 0 then     RaiseLastWin32Error;   DoDiscard := true;   try     if not UpdateResource(HFile, RT_VERSION, PChar(1), 0, Data, Sz) then       RaiseLastWin32Error;     DoDiscard := false;   finally     if not EndUpdateResource(HFile, DoDiscard) then       RaiseLastWin32Error;   end; finally   FreeMem(Data); end; 

    It’s just a snippet, and will require some work on your part, but that’s the lion’s share of the work!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 97k
  • Answers 97k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Two options: Write some VB which declares a protected WithEvents… May 11, 2026 at 7:27 pm
  • Editorial Team
    Editorial Team added an answer The guys here at work use this book: Inside the… May 11, 2026 at 7:27 pm
  • Editorial Team
    Editorial Team added an answer A List Apart also, Smashing Magazine is pretty good. as… May 11, 2026 at 7:27 pm

Related Questions

Situation: Classic ASP application, using a custom Application Pool. Default settings. On some IIS7
I would like to create a visual effect when an item in a listbox
I'm working on a Cocoa Mac app where I need to display a window/view
I have an excel document represented as a byte[] and I'm wanting to send
I'm looking to create a generic confirmation box that can be used by multiple

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.