Share via


Restoring the Original Binary Files (Windows Embedded CE 6.0)

1/6/2010

There are several methods for restoring the original Windows Embedded 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 menu in the IDE, choose Open Release Directory in Build Window 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 menu, verify that Copy Files to Release Directory After Build and Make Run-Time Image After Build are selected.

  4. From the Build menu, choose Advanced Build Commands, and then 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 Embedded CE 6.0 Setup Wizard.

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

    This action reinstalls the files you deleted.

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

  5. From the Build menu, choose Advanced Build Commands, and then 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 Embedded 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

Concepts

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

Other Resources

CeBackup Tool