Regmerge And Copyfiles; Regmerge.dll; Copyfiles - Motorola MK2200-0N0SCKBWT0R - Micro Kiosk MK2200 Product Reference Manual

Mk22x0 series microkiosk for ce .net 4.2
Table of Contents

Advertisement

8 - 6
MK22X0 Series MicroKiosk for CE .NET 4.2 Product Reference Guide

RegMerge and CopyFiles

RegMerge and CopyFiles are two device drivers included in the Windows CE OS to assist developers in
configuring the MK22X0 following a cold boot.

RegMerge.dll

RegMerge.dll is a built-in driver that allows making registry edits to the Windows CE Registry. Regmerge.dll runs
very early in the boot process and looks for registry files (.reg files) in certain Flash File System folders during a
cold boot. It then merges the registry changes into the system registry located in RAM.
Since the registry is re-created on every cold boot from the default ROM image, the RegMerge driver is necessary
to make registry modifications persist between cold boots.
RegMerge looks in the root of two specific folders for .reg files in the following order:
\Platform
1.
\Application
2.
Regmerge continues to look for .reg files in these folders until all folders are checked. This allows folders later in
the list to override folders earlier in the list. This way, it is possible to override Registry changes made by the
Platform partition folders. Take care when using Regmerge to make Registry changes. The Device Configuration
Package (DCP) for the MK22X0 contains real examples of .reg files.
NOTE RegMerge only merges the .reg files during a cold boot. A warm boot skips the merge process.
Modifying registry values for drivers loaded before RegMerge is not recommended. However, these values may
require modification during software development. Since these early loading drivers read these keys before
RegMerge can change them, you must warm boot the MK22X0. The warm boot does not re-initialize the registry
and the early loading driver reads the new registry values. Note that loading a registry key that corresponds to a
built-in driver sets a flag in the regmerge.dll to execute an automatic warm boot.
Do not use RegMerge to merge the same registry value to two files in the same folder, as the results are not
predictable.

CopyFiles

Windows CE expects certain files to be in the Windows folder, residing in volatile storage. Windows CE maintains
the System Registry in volatile storage. CopyFiles copies files from one folder to another on a cold boot. Files can
be copied from a non-volatile partition (Application or Platform) to the Windows or other volatile partition during a
cold boot. During a cold boot CopyFiles looks for files with a .CPY extension in the root of the Platform, then
Application FFS partition. These files are text files containing the source and destination for the desired files to be
copied separated by ">". Following is the content of a sample .cpy file that copies ScanSamp2.exe from the
Applications\Samples
Example:
Content of ScanSamp2.cpy
\Application\ Samples\ScanSamp2.exe > \Windows\ScanSamp2.exe
folder to the
folder.
\Windows

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mk2200-0n0sfkbwt0rMk2250-0n0sfkbwtwrMk2290

Table of Contents