DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Change Version Info Via Command Line Application  (Read 4,735 times)

tinjaw

  • I'm so glad breakbeat techno isn't an illegal drug
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Military Service Badge - US Army
    • Linux User
Change Version Info Via Command Line Application
« on: November 18, 2007, 02:16 PM »
I want to be able to change the version info in an EXE via a batch file. I will be using this with games I build using Torque Game Builder, but this could also be used for any application that has an unchanging master EXE but datafiles that change. For example levels in a FPS. Each time I change the datafiles and rebundle that game, I want to change the version number of the EXE so when somebody views the version info of the EXE , it corresponds to the version number of the game.

I have plenty of GUI based tools to do this, but I want to be able to do this in a script so I can automate the process.

This is for Windows applications.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Change Version Info Via Command Line Application
« Reply #1 on: November 18, 2007, 03:15 PM »
I've been meaning to build something similar myself, since it's too tedious manually changing "build number" in the resource.rc file (and no, Visual Studio doesn't do this automatically for native apps, grmbl).

Remind me in a few days :)
- carpe noctem

Original address: https://www.donationcoder.com/forum/index.php?topic=10876.0