X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwin32_apply.c;h=395e69841820a08da85f4645be4c47cf5f544abe;hp=a96fbd4b2ad0a87db774e962067a85f32c29de2b;hb=44dfae76fad55a93caba52bcf5a591d8ceef766c;hpb=33e8240edea55d28cd9bafae542f4d571459a181 diff --git a/src/win32_apply.c b/src/win32_apply.c index a96fbd4b..395e6984 100644 --- a/src/win32_apply.c +++ b/src/win32_apply.c @@ -1648,8 +1648,24 @@ retry: goto retry; } } - winnt_error(status, L"Can't create directory \"%ls\"", - current_path(ctx)); + const wchar_t *path = current_path(ctx); + winnt_error(status, L"Can't create directory \"%ls\"", path); + + /* Check for known issue with WindowsApps directory. */ + if (status == STATUS_ACCESS_DENIED && + (wcsstr(path, L"\\WindowsApps\\") || + wcsstr(path, L"\\InfusedApps\\"))) { + ERROR( +"You seem to be trying to extract files to the WindowsApps directory.\n" +" Windows 8.1 and later use new file permissions in this directory that\n" +" cannot be overridden, even by backup/restore programs. To extract your\n" +" files anyway, you need to choose a different target directory, delete\n" +" the WindowsApps directory entirely, reformat the volume, do the\n" +" extraction from a non-broken operating system such as Windows 7 or\n" +" Linux, or wait for Microsoft to fix the design flaw in their operating\n" +" system. This is *not* a bug in wimlib. See this thread for more\n" +" information: https://wimlib.net/forums/viewtopic.php?f=1&t=261"); + } return WIMLIB_ERR_MKDIR; }