Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: NK.BIN Version Number

54 views
Skip to first unread message

Helge Kruse

unread,
Feb 22, 2006, 2:25:17 AM2/22/06
to
We put a string close to the beginning of the binary file. With a signature
it can be looked up by custom program. That's not very strong, but it works.

/Helge


Paul G. Tobey [eMVP]

unread,
Feb 22, 2006, 11:00:01 AM2/22/06
to
I have a program which increments a version number in the file which is
displayed on the System control panel in the Copyrights tab. The program
runs when MakeImage is called for the OS.

Paul T.

"Helge Kruse" <Helge.Kru...@gmx.net> wrote in message
news:OuP9iE4...@TK2MSFTNGP14.phx.gbl...

Paul G. Tobey [eMVP]

unread,
Feb 23, 2006, 10:52:09 AM2/23/06
to
The file is copyrts.txt. The original is in
\public\common\wceshellfe\oak\files. I keep a shared copy of a modified
version of the file on the network here. The program that I have which
increments the version looks at which project is being built, finds the
corresponding copyrts.txt file on the network (there's a different one for
each project, of course), increments the version number, and copies the
changed file to the flat release directory before makeimg runs.

Paul T.

"gd.shukla" <gdsh...@discussions.microsoft.com> wrote in message
news:A8AABABB-E66A-48BC...@microsoft.com...
> Hi paul,
> thanks for ur reply.
> could u please tell me where that change is to be done or the path of the
> file.
> i can do the change manually. If it is not some classified information.
> Would u please care to explain.
>
> --
> GD Shukla

gd.shukla

unread,
Feb 24, 2006, 12:21:26 AM2/24/06
to
Hi Paul,
thanks again for ur reply.
I looked at the file, but all it contains is copyright text, as expected,
but i dont find any information here about the version number.
Right now, i am using init.c, function OEMInit() to output a serial message
containing version number.
Could there be a better way, please tell, coz this one seems like a
workaround.

Dean Ramsier

unread,
Feb 24, 2006, 10:10:41 AM2/24/06
to
You missed the point. The contents of that file are read by the shell, and
displayed in the copyright box. Just modify the file to add a version
number to it, and that number will be displayed. Modify the file in the
flat release directory as part of your build cycle, and it becomes
automatic.

--
Dean Ramsier - eMVP
BSQUARE Corporation


"gd.shukla" <gdsh...@discussions.microsoft.com> wrote in message

news:0A447CC3-996B-4E52...@microsoft.com...

gd.shukla

unread,
Feb 27, 2006, 4:07:00 AM2/27/06
to
got that
thanks a lot for ur help, guys.
--
GD Shukla

Dan McCarty

unread,
Mar 1, 2006, 12:29:52 PM3/1/06
to
Paul G. Tobey [eMVP] wrote:
> The file is copyrts.txt. The original is in
> \public\common\wceshellfe\oak\files. I keep a shared copy of a modified
> version of the file on the network here. The program that I have which
> increments the version looks at which project is being built, finds the
> corresponding copyrts.txt file on the network (there's a different one for
> each project, of course), increments the version number, and copies the
> changed file to the flat release directory before makeimg runs.

Excellent tip, thanks! I created a batch file to create copyrts.txt
and set the platform to run a "pre-make image" custom build step with
an action to run the batch file. It's pretty simple compared to yours,
but it puts the current date and time in the file, which is good enough
for us.

If anyone is interested, I posted the batch file below. (with a few
changes...to protect the innocent)

Thanks Paul,
Dan.

- - - copyrts.bat - - -
@ECHO OFF

ECHO Acme Project Zebulon > copyrts.txt
ECHO Copyright © 1897 - 1931 Acme Corp. >> copyrts.txt
ECHO. >> copyrts.txt
ECHO. | DATE | FIND /I "current" >> copyrts.txt
ECHO. | TIME | FIND /I "current" >> copyrts.txt
ECHO. >> copyrts.txt
ECHO -dpm >> copyrts.txt

ECHO OK

- - - creates a file that looks like this - - -
Acme Project Zebulon
Copyright © 1897 - 1931 Acme Corp.

The current date is: Wed 03/01/2006
The current time is: 11:18:47.54

-dpm

0 new messages