Share via


Restoring the Original Binary Files (Windows CE 5.0)

There are several methods for restoring the original Windows CE binary files, depending on whether you performed a backup of the selected directories before modification as described in Creating a Backup of the Source Code Files.

To restore the original files if you made a backup copy

  1. Restore the original source code files by copying the backed up directories into the original locations.

  2. To use CeBackup to restore the original .lib files, from the Build OS menu in the IDE, choose Open Release Directory and then type the following command.

    cebackup restore

    This performs a restore of .lib files in %_WINCEROOT%\Public that CeBackup backed up.

    For more information, see CeBackup Tool.

  3. From the Build OS menu, verify that Copy Files to Release Directory After Build and Make Run-Time Image After Build are selected.

  4. From the Build OS menu, choose Build and Sysgen.

  5. Verify that your run-time image does not contain modified source code by testing functionality or viewing debug output.

When you restore the original source code files, you should also restore the original .lib files. This ensures that your source code and .lib files match when doing future debugging.

To restore the original files if you did not create a backup copy

  1. Delete the modified files from the directories they are in.

    To differentiate between modified and original files, use Windows File Explorer to sort by date. Modified files have a more recent date than original files.

  2. Run the Windows CE Setup Wizard.

  3. From the Program Maintenance dialog box, choose Repair.

    This action reinstalls the files you deleted.

  4. From the Build OS menu, verify that Copy Files to Release Directory After Build and Make Run-Time Image After Build are selected.

  5. From the Build OS menu, choose Build and Sysgen.

    This action rebuilds your run-time image with the original files. Your run-time image will no longer contain your modified files.

Alternatively, you can uninstall Windows CE and remove files that remain in %_WINCEROOT%\Public after the uninstall process. After deleting the remaining files, reinstall the product to restore all files to their original state.

See Also

Creating a Backup of the Source Code Files | Using Shared Source Code in an OS Design| CeBackup Tool

Last updated on Thursday, February 02, 2006

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.