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 6688885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:27:19+00:00 2026-05-26T05:27:19+00:00

The information on the version Exe-file I receive by means of VerQueryValue . Is

  • 0

The information on the version Exe-file I receive by means of VerQueryValue. Is there an inverse function (WinApi or Delphi) which can register (establish or change) such information?
Here, for example, there is a program which is able to do so. How may it work (http://www.angusj.com/resourcehacker)?

  • 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. Editorial Team
    Editorial Team
    2026-05-26T05:27:19+00:00Added an answer on May 26, 2026 at 5:27 am

    The version information is stored via resources; to edit that you simply need to edit that resource. Here is a unit I found that can clone an existing file version information and attach it to another file. It’s very easy to do what you want starting from this code (it’s coded by a friend of mine and is available public):

    unit cloneinfo;
    
    interface
    
    uses Windows, SysUtils;
    
    type
     LANGANDCODEPAGE = record
      wLanguage: Word;
      wCodePage: Word;
     end;
    
    procedure clone(sFile,output:string);
    
    implementation
    
    procedure clone(sFile,output:string);
    var
      dwHandle, cbTranslate: cardinal;
      sizeVers: DWord;
      lpData, langData: Pointer;
      lpTranslate: ^LANGANDCODEPAGE;
      hRes : THandle;
    begin
     sizeVers := GetFileVersionInfoSize(PChar(sFile), dwHandle);
     If sizeVers = 0 then
     exit;
     GetMem(lpData, sizeVers);
     try
      ZeroMemory(lpData, sizeVers);
      GetFileVersionInfo (PChar(sFile), 0, sizeVers, lpData);
      If not VerQueryValue (lpData, '\VarFileInfo\Translation', langData, cbTranslate) then
      exit;
      hRes := BeginUpdateResource(pchar(output), FALSE);
      //For i := 0 to (cbTranslate div sizeof(LANGANDCODEPAGE)) do
      //begin
      lpTranslate := Pointer(Integer(langData) + sizeof(LANGANDCODEPAGE));
      UpdateResource(hRes, RT_VERSION, MAKEINTRESOURCE(VS_VERSION_INFO), lpTranslate^.wLanguage,lpData, sizeVers);
      //end;
      EndUpdateResource(hRes, FALSE);
     finally
      FreeMem(lpData);
     end;
    end;
    
    
    end.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can you get the version information from a .dll or .exe file in
Is there any tool which can inject into an .exe or .dll information like
Is there any information available for the next version ( 2011 ) of Delphi
I need to get the File version information from an exe file originally written
Does anyone know how to add full (n.n.n.n) Windows file version information to COM
I need to output some information regarding the java.exe verison to a text file.
I was wanting to create a small tool in Delphi which can update the
What steps are needed to compile Version Information inside a windows DLL from the
I am trying to get information on the version of Windows installed from WMI.
I am trying to use powershell to get the file version of a file.

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.