

- Yakumo Alpha running Pocket PC 2002. (Factory default installation)
- Microsoft Active Sync. (On the CD or from Microsoft)
- Windows operating system. (On the host computer)
- USB cradle or cable. (Both included with the Alpha)
- WinZip on host computer for unpacking the distributions.
- Compact Flash card
- Multimedia card
- Installing when the host computer has a different operating system than Windows.
- Installing when the PDA has a different operating system than Pocket PC 2002.
- Installing using other sync program than Microsoft Active Sync.
- Installing using other interface than USB.
- tcltk-all-platforms: http://www.rainer-keuchel.de/wince/tcltk-all-platforms.tar.gz
- tcltk-wince-arm-hpc-wce300: http://www.rainer-keuchel.de/wince/tcltk-wince-arm-hpc-wce300.tar.gz
- celib.dll: http://www.rainer-keuchel.de/wince/celib-3.13-dll-bin-all-platforms.tar.gz
- wince-desktop-tools: http://www.rainer-keuchel.de/wince/wince-desktop-tools.tar.gz

c:\temp\desktop-dist c:\temp\tcltk-all-platforms c:\temp\tcltk-wince-arm-hpc-wce300 c:\temp\wince-arm-hpc-wce300plus more (for Yakumo Alpha) uninteresting wince* directories that got unpacked from celib-3.12-dll-bin-all-platforms.tar.gz

::- Basic System Configuration REM Make changes here for your system set basepath=\Storage Card\Program Files set wish=%basepath%\Tcl\bin\wish84d.exe set tclsh=%basepath%\Tcl\bin\tclsh84d.exe set libdir=%basepath%\Tcl\lib set bindir=%basepath%\Tcl\bin set tcllibdir=%libdir%\tcl8.4 set tklibdir=%libdir%\tk8.4 ::- TclTk file associations cereg -k "HKCR\.tk" -n "" -v "tclfile" cereg -k "HKCR\.tcl" -n "" -v "tclfile" cereg -k "HKCR\tclfile" -n "" -v "TclTk Script" cereg -k "HKCR\tclfile\DefaultIcon" -n "" -v "%wish%,0" cereg -k "HKCR\tclfile\Shell\Open\Command" -n "" -v """"%wish%""" ""%%1""" ::- Tcl file associations cereg -k "HKCR\.tsh" -n "" -v "tshfile" cereg -k "HKCR\tshfile" -n "" -v "Tcl Script" cereg -k "HKCR\tshfile\DefaultIcon" -n "" -v "%tclsh%,0" cereg -k "HKCR\tshfile\Shell\Open\Command" -n "" -v """"% tclsh%""" ""%%1""" ::- Environment Info cereg -k "HKLM\Environment" -n "TCL_LIBRARY" -v "%tcllibdir%" cereg -k "HKLM\Environment" -n "TK_LIBRARY" -v "%tklibdir%" REM Height of 10 is ok, 14 does almost full screen cereg -k "HKLM\Environment" -n "ROWS" -v "14" REM MAX Width for PPC is 29 Chars cereg -k "HKLM\Environment" -n "COLS" -v "29" REM Home cereg -k "HKLM\Environment" -n "HOME" -v "\\" REM Temp cereg -k "HKLM\Environment" -n "TEMP" -v "\Temp" cereg -k "HKLM\Environment" -n "TMP" -v "\Temp" cereg -k "HKLM\Environment" -n "TMPDIR" -v "\Temp" cereg -k "HKLM\Environment" -n "TEMPDIR" -v "\Temp" REM Path cereg -k "HKLM\Environment" -n "PATH" -v "%bindir%;" REM Username cereg -k "HKLM\Environment" -n "USER" -v "nobody" REM Debugging trace level (0 to 255) cereg -k "HKLM\Environment" -n "XCE_TRACE" -v "0" REM Debugging trace file output cereg -k "HKLM\Environment" -n "XCE_TRACE_FILE" -v "\xce_trace.txt"Here the author has chosen to install Tcl/Tk to
\Storage Card\Program Files\Tclwhich is on the PDA external storage card.Now is the time to decide on where tcltk will have its home in the Yakumo PDA. As MPJ has yet to suggest a directory structure I chose to use
\tcltkLater i discovered that I think I will suggest to use
\Tclinstead, simply because you can then reuse the wince_tcltk.bat file with simple editing.I chose to reuse the wince-reg2.bat file from the distribution, which I will explain in a moment. I will continue to use \tcltk for the rest of this tutorial.Now I create a directory as the base directory. Feel free to name it otherwise.
c:\temp\tcltkon the host pc and copy the _contents_ of the directories (not the directories themselves) of
c:\temp\tcltk-all-platforms c:\temp\tcltk-wince-arm-hpc-wce300to
c:\temp\tcltk

c:\temp\wince-arm-hpc-wce300\celib.dllto
c:\temp\tcltk\bin


c:\temp\tcltkdirectory and drop it into this window. If the Active Sync is connected it should now start copying the files down to the PDA. The copy process may take some minutes. Wait for it to finish.

c:\temp\tcltk\wince-reg2.batand replace the word "unix" with the word "tcltk" in the two first "set" lines.New wince-reg2.bat file:
@echo off set wish=\tcltk\bin\wish84d.exe set libdir=/tcltk/usr/lib cereg -k "HKLM\Environment" -n "TCL_LIBRARY" -v "%libdir%\tcl" cereg -k "HKLM\Environment" -n "TK_LIBRARY" -v "%libdir%\tk" cereg -k "HKCR\.tcl" -n "" -v "tclfile" cereg -k "HKCR\tclfile" -n "" -v "TclTk Script" cereg -k "HKCR\tclfile\DefaultIcon" -n "" -v "%wish%,0" cereg -k "HKCR\tclfile\Shell\open\command" -n "" -v ""%wish%" "%%1""On the host computer, copy the program
c:\temp\wince-desktop-tools\cereg.exeto
c:\temp\tcltk

Nice work!