I have several questions related to versioning of NK.bin.

1. How do you set the build version that's displayed on the WindowCE
desktop when the system boots?

2. Is there an easy way to automatically set/update this when you execute
the build?

3. Is there an easy way to see this build version when looking at an NK.bin
file with viewbin or some other utility?

Thanks,

Wade

Re: How to set/view Build Version by K

K
Fri Jun 08 18:17:37 CDT 2007

This is a multi-part message in MIME format.

------=_NextPart_000_003B_01C7A9E8.87733650
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

Once you have a debug build (Non-retail build) of your explorer.exe it =
will show up the build number on desktop.
Take a look at =
$(_WINCEROOT)\public\shell\OAK\HPC\CESHELL\UI\desktopview.cpp you will =
find the following code

#ifndef SHIP_BUILD
WCHAR wszVersion[256];
OSVERSIONINFO VerInfo;
VerInfo.dwOSVersionInfoSize =3D sizeof(OSVERSIONINFO);

::GetVersionEx(&VerInfo);
::wsprintf(wszVersion, L"Windows Embedded CE v%d.%02d (Build %d on =
%s) ",
VerInfo.dwMajorVersion, VerInfo.dwMinorVersion, =
VerInfo.dwBuildNumber, TEXT(__DATE__));
if (m_hbmpDesktop && !fTileBackgroundImage)
{
rc.top =3D rcBlt.bottom + 5;
}
else
{
rc.top =3D rc.top + (rc.bottom - rc.top) / 2 - 8;
}
::DrawText(hdc, wszVersion, -1, &rc, DT_SINGLELINE | DT_CENTER | =
DT_TOP);
#endif

The build number is for the Windows System which is controlled by MSFT =
but not OEM. OEM should have their own build number control and show up =
mechnism if needed but its nothing about the build number for Windows =
CE.


"Wade Ledbetter" <WadeLedbetter@discussions.microsoft.com> wrote in =
message news:A5C479B7-1A9B-41C2-A17D-61F46E645717@microsoft.com...
>=20
> I have several questions related to versioning of NK.bin.
>=20
> 1. How do you set the build version that's displayed on the WindowCE=20
> desktop when the system boots? =20
>=20
> 2. Is there an easy way to automatically set/update this when you =
execute=20
> the build?
>=20
> 3. Is there an easy way to see this build version when looking at an =
NK.bin=20
> file with viewbin or some other utility?
>=20
> Thanks,
>=20
> Wade
------=_NextPart_000_003B_01C7A9E8.87733650
Content-Type: text/html;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.2900.3086" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Once you have a debug build (Non-retail =
build) of=20
your explorer.exe it will show up the build number on =
desktop.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Take a look at=20
$(_WINCEROOT)\public\shell\OAK\HPC\CESHELL\UI\desktopview.cpp you will =
find the=20
following code</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DTerminal size=3D2>&nbsp;&nbsp; #ifndef =
SHIP_BUILD<BR>&nbsp;&nbsp;=20
WCHAR wszVersion[256];<BR>&nbsp;&nbsp; OSVERSIONINFO =
VerInfo;<BR>&nbsp;&nbsp;=20
VerInfo.dwOSVersionInfoSize =3D sizeof(OSVERSIONINFO);</FONT></DIV>
<DIV><FONT face=3DTerminal size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DTerminal size=3D2>&nbsp;&nbsp;=20
::GetVersionEx(&amp;VerInfo);<BR>&nbsp;&nbsp; ::wsprintf(wszVersion, =
L"Windows=20
Embedded CE v%d.%02d (Build %d on %s)=20
",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
VerInfo.dwMajorVersion, VerInfo.dwMinorVersion, VerInfo.dwBuildNumber,=20
TEXT(__DATE__));<BR>&nbsp;&nbsp; if (m_hbmpDesktop &amp;&amp;=20
!fTileBackgroundImage)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp; =
rc.top =3D=20
rcBlt.bottom + 5;<BR>&nbsp;&nbsp; }<BR>&nbsp;&nbsp; else<BR>&nbsp;&nbsp; =

{<BR>&nbsp;&nbsp;&nbsp;&nbsp; rc.top =3D rc.top + (rc.bottom - rc.top) / =
2 -=20
8;<BR>&nbsp;&nbsp; }<BR>&nbsp;&nbsp; ::DrawText(hdc, wszVersion, -1, =
&amp;rc,=20
DT_SINGLELINE | DT_CENTER | DT_TOP);<BR>&nbsp;&nbsp; #endif</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The build number is for the Windows =
System which is=20
controlled by MSFT but not OEM. OEM should have their own build number =
control=20
and show up mechnism if needed but its noth