Compartilhar via


Update System Files by Using DUA

When you update system files by using a Device Update Agent (DUA) you must include additional commands with your Device Update Program.

Because Windows XP Embedded does not allow you to delete system files that are currently in use, you must rename the system file, copy over the new file, and then queue the old system file for deletion on next reboot.

The following device update script example shows how to update the ntdll.dll system file:

// Rename the target system file.
MOVEFILE,,,c:\windows\system32\ntdll.dll,,c:\windows\system32\ntdll_old.dll

// Move the new version into the system32 directory.
MOVEFILE,,,c:\duagent\new_ntdll.dll,,c:\windows\system32\ntdll.dll

// Reboot.
REBOOT,,DAREBOOTOPT_REBOOT

// Delete the old version after rebooting.
DELETEFILE,,,c:\windows\system32\ntdll_old.dll

For more information about device update scripting, see Device Update Script.

See Also

Device Update Agent | How to Configure DUA to Poll a Web Server | How to Configure DUA to Poll a Media Device

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.