none
Keeping Reg Data when changing/upgrading my image on the target RRS feed

  • Question

  • I need help to understand the relation between the image (nk.bin) and the registry (Hive).

    I have running application in Win CE 5.0 image.

    The application store data in registry \HKEY_LOCAL_MACHINE\MyApp\Key1

    All worgs fine, I start the system work,turn off start again, evrything works fine.

    Now my problem.

    I added new touch screen drive to the image.

    I boot and work from Compact Flash.

    I replace the new nk.bin (copy it to the CF)

    Now When I start the system the \HKEY_LOCAL_MACHINE\MyApp\Key1 not exists.

    As I know the new registry values/data are in files on the Compact Flash:

     

    \Disk\Documents and Settings

    \Disk\Documents and Settings\default.mky

    \Disk\Documents and Settings\system.hv

    \Disk\Documents and Settings\default

    \Disk\Documents and Settings\default\user.hv

     

    It looks like the new nk.bin overwrites those files.

    What can I do to keep the data when I update/upgrade my image(nk.bin)

     

    Thanks,

    David.

    Monday, September 5, 2011 11:24 AM

Answers

  • When you use hive registry and start a new nk.bin image the Kernel will verify the registry stored in your persistent storage location. If that registry was created by a different Kernel image it will remove the registry and apply the registry included in that image.

    You can either try to backup the registry to a different location with RegCopyFile and restore it with RegRestoreFile or you include the registry keys into the image registry. Changes to these registry keys will be overwritten on the target when you update your windows CE image registry.

    Best regards,

    Mike

    • Proposed as answer by Bruce EitmanModerator Tuesday, September 6, 2011 12:18 PM
    • Marked as answer by Duvidw Tuesday, September 6, 2011 12:30 PM
    Tuesday, September 6, 2011 8:30 AM