I would like to be able to retrieve the Version resource of my VisualWorks
executable. Presently, we set our version number in some internal variable and display it to the user when he does a help about, and possibly put it into an error dump. This has a few problems, 1. Because the number is not in the Version resource it does not show appear in the file properties. 2. After the product passes QA we don't want to rebuild it just to change the version number, from an RCx. It seems to me the best way would be to set the version resource while building the product and retrieve in VW when needed. After it passes test we can use a resource editor to reversion it. But, I don't know how to retrieve it using VW. Does anyone know how to do this? Thanks. Terry =========================================================== Terry Raymond Crafted Smalltalk 80 Lazywood Ln. Tiverton, RI 02878 (401) 624-4517 [hidden email] <http://www.craftedsmalltalk.com> =========================================================== _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
I did submit the same request about three times in the past. Cincom
support even created an AR for this , but I am not sure what the status of it is at the moment. Terry Raymond wrote: > I would like to be able to retrieve the Version resource of my VisualWorks > executable. > > Presently, we set our version number in some internal variable and display > it to the user when he does a help about, and possibly put it into an error dump. > This has a few problems, > 1. Because the number is not in the Version resource it does not show > appear in the file properties. > 2. After the product passes QA we don't want to rebuild it just to > change the version number, from an RCx. > > It seems to me the best way would be to set the version resource while building > the product and retrieve in VW when needed. After it passes test we can use > a resource editor to reversion it. But, I don't know how to retrieve it using VW. > > Does anyone know how to do this? > > Thanks. > > Terry > > vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Terry Raymond
The AR #47418
Terry Raymond wrote: > I would like to be able to retrieve the Version resource of my VisualWorks > executable. > > Presently, we set our version number in some internal variable and display > it to the user when he does a help about, and possibly put it into an error dump. > This has a few problems, > 1. Because the number is not in the Version resource it does not show > appear in the file properties. > 2. After the product passes QA we don't want to rebuild it just to > change the version number, from an RCx. > > It seems to me the best way would be to set the version resource while building > the product and retrieve in VW when needed. After it passes test we can use > a resource editor to reversion it. But, I don't know how to retrieve it using VW. > > Does anyone know how to do this? > > Thanks. > > Terry > > =========================================================== > Terry Raymond > Crafted Smalltalk > 80 Lazywood Ln. > Tiverton, RI 02878 > (401) 624-4517 [hidden email] > <http://www.craftedsmalltalk.com> > =========================================================== > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > > vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Terry Raymond
To add version info to an executable (on windows), you need two tools,
ResHacker which is included in Packaging/win, and rc, it is described in WindowsPackaging,txt how to get it. I've attached two files, to properly include the version info you define in config.h, run: rc asap.rc ResHacker.exe -addoverwrite yourapp.exe, yourapp.exe, asap.res, versioninfo,1, (Obviously, modify rc name if you want, and edit config.h info to suit your app first). Then after app is built, but no longer in RC stages, you can repeat the above process to modify versioninfo (I think you can at least). How to get access to it from VW I can't help you with though, haven't had that need myself :/ Cheers, Henry On 12.11.2009 20:17, Terry Raymond wrote: > I would like to be able to retrieve the Version resource of my VisualWorks > executable. > > Presently, we set our version number in some internal variable and display > it to the user when he does a help about, and possibly put it into an error dump. > This has a few problems, > 1. Because the number is not in the Version resource it does not show > appear in the file properties. > 2. After the product passes QA we don't want to rebuild it just to > change the version number, from an RCx. > > It seems to me the best way would be to set the version resource while building > the product and retrieve in VW when needed. After it passes test we can use > a resource editor to reversion it. But, I don't know how to retrieve it using VW. > > Does anyone know how to do this? > > Thanks. > > Terry > > =========================================================== > Terry Raymond > Crafted Smalltalk > 80 Lazywood Ln. > Tiverton, RI 02878 > (401) 624-4517 [hidden email] > <http://www.craftedsmalltalk.com> > =========================================================== > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > > _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc versioninfo.rar (1006 bytes) Download Attachment |
If you need a more thorough examination of the versioninfo format, see:
http://msdn.microsoft.com/en-us/library/aa381058%28VS.85%29.aspx IIRC, the file I sent was just modified from an example .rc file till it was working as I expected :) Cheers, Henry On 12.11.2009 22:54, Henrik Sperre Johansen wrote: > To add version info to an executable (on windows), you need two tools, > ResHacker which is included in Packaging/win, and rc, it is described > in WindowsPackaging,txt how to get it. > > I've attached two files, to properly include the version info you > define in config.h, run: > > rc asap.rc > ResHacker.exe -addoverwrite yourapp.exe, yourapp.exe, asap.res, > versioninfo,1, > > (Obviously, modify rc name if you want, and edit config.h info to suit > your app first). > > Then after app is built, but no longer in RC stages, you can repeat > the above process to modify versioninfo (I think you can at least). > > How to get access to it from VW I can't help you with though, haven't > had that need myself :/ > > Cheers, > Henry > > On 12.11.2009 20:17, Terry Raymond wrote: >> I would like to be able to retrieve the Version resource of my >> VisualWorks >> executable. >> >> Presently, we set our version number in some internal variable and >> display >> it to the user when he does a help about, and possibly put it into an >> error dump. >> This has a few problems, >> 1. Because the number is not in the Version resource it does not show >> appear in the file properties. >> 2. After the product passes QA we don't want to rebuild it just to >> change the version number, from an RCx. >> >> It seems to me the best way would be to set the version resource >> while building >> the product and retrieve in VW when needed. After it passes test we >> can use >> a resource editor to reversion it. But, I don't know how to retrieve >> it using VW. >> >> Does anyone know how to do this? >> >> Thanks. >> >> Terry >> >> =========================================================== >> Terry Raymond >> Crafted Smalltalk >> 80 Lazywood Ln. >> Tiverton, RI 02878 >> (401) 624-4517 [hidden email] >> <http://www.craftedsmalltalk.com> >> =========================================================== >> >> >> _______________________________________________ >> vwnc mailing list >> [hidden email] >> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc >> >> > _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |