views:

54

answers:

3

i made an application in vb6 now i have given it a product version from project/properties but i noticed the win explorer has two tags for exe a product version and a file version. i want to edit the file version of my app's exe any idea how can i do that? file version should be x.x.x.x

A: 

From (distant) memory this can be set by looking at the project options dialog. You can place a * into the boxes if you want the version to auto-increment.

MrTelly
MrTelly, there is checkbox option AutoIncrement there, but i wanted to to change the file verision not the product version.
jaminator
+4  A: 

VB6 automatically sets the File version equal to the Product version.
You specify these through the project properties dialog, Make tab, Major Minor and Revision.

  • Product version always has three parts: Major.Minor.Revision
  • File version always has four parts: Major.Minor.0.Revision. Microsoft decided to put an extra zero between Minor and Revision.
MarkJ
gr8 answer Mark but what if you need file version to be 5.6.7.2 and product version to be 5.6.2 what vb does is 5.6.0.2
jaminator
@jaminator If you really, truly, must have those numbers then use resource hacker like [Dr TJ says](http://stackoverflow.com/questions/4021311/change-my-applicationss-exe-file-version-in-vb6/4022086#4022086). But is it really worth the hassle? These numbers are really intended so that install programs etc. can tell the difference between different versions of your program. You can use something else for your "branding" marketing version identifier for the users: *MegaApp 2010* or *MegaApp Moccaccino*
MarkJ
@Mark thanks for the answer, i am stuck here for 3 weeks now http://stackoverflow.com/questions/3967329/making-property-handler-for-my-application-to-add-custom-properties-to-a-file-for , nobody ssem to be able to help, canyou plz take a look. nobody i know has ever done it. will really appreciate it.
jaminator
+1  A: 

use resource hacker and do it so simple... ;)
Download from here: http://dl.kamyabonline.com/download/program/ResHack.exe
Password: www.kamyabonline.com

Dr TJ
+1 on resource hacker. I wrote a blog post about doing this very thing a while back.http://www.darinhiggins.com/?s=VB+and+resource+filesResource hacker is also available direct from Angus's sitehttp://www.angusj.com/resourcehacker/
drventure