From 81c46765b02af8c54db6292c90b238b3ae1c89cd Mon Sep 17 00:00:00 2001 From: daboynb <106079917+daboynb@users.noreply.github.com> Date: Tue, 9 Apr 2024 20:28:33 +0200 Subject: [PATCH] Update wue.c --- src/wue.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wue.c b/src/wue.c index 150b2ba8..70e8d520 100644 --- a/src/wue.c +++ b/src/wue.c @@ -777,6 +777,13 @@ BOOL ApplyWindowsCustomization(char drive_letter, int flags) DWORD dwDisp, dwVal = 1; assert(unattend_xml_path != NULL); + + static_sprintf(path, "%c:\\sources\\$OEM$\\$$\\Panther\\unattend.xml", drive_letter); + if (PathFileExistsA(path)) { + uprintf("'%s' already exists. Skipping copy operation.", path); + return TRUE; // File already exists, no need to copy + } + uprintf("Applying Windows customization:"); PrintStatus(0, MSG_326); if (flags & UNATTEND_WINDOWS_TO_GO) {