• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Detecting W3 version?

Status
Not open for further replies.
Level 8
Joined
Sep 24, 2007
Messages
300
Hi

Somehow I need to detect the current W3 version from an external program because I would like to make some kind of "version switcher" but it would autopatch to 1.26a if it detected a lesser version.

Does anyone have a clue how would I detect the current version of a W3 install? Blizzard must have this information stored somewhere in order to trigger an autoupdate over bnet, unless it is hardcoded into the binary. In that case I am guessing the best way to do is to take a hash of the war3.exe and other binaries and compare them to 1.26a hash.
 
Level 8
Joined
Sep 24, 2007
Messages
300
The version is actually written in the file information of war3.exe (Properties->Details) so that's where I'll read it.

@patch.txt: If you install W3 from scratch there is no Patch.txt afaik.
 
Status
Not open for further replies.
Top