Windows-Containers
Windows-Containers copied to clipboard
DISM Languages and International Servicing Command-Line Options not working with offline image inside container
I have been using the guidance in https://github.com/microsoft/Windows-Containers/issues/494 to update a WinPE image.
The Add-Package works to add features and updates.
I have tried to change the language but it returns an error.
Error: 87
ERROR: dism.exe has encountered an error.
In the dism.log are entries:
Error DISM DISM Intl Provider: PID=1112 TID=1572 - CDISMIntlManager::DisplayOfflineAPIError
Error DISM DISM Intl Provider: PID=1112 TID=1572 ERROR: API call failed with following error(s): 183. - CDISMIntlManager::DisplayAPIErrorMessage
Error DISM DISM Intl Provider: PID=1112 TID=1572
183 = Cannot create a file when that file already exists.
- CDISMIntlManager::DisplayAPIErrorMessage
Error DISM DISM Intl Provider: PID=1112 TID=1572
ERROR: dism.exe has encountered an error.
- CDISMIntlManager::DisplayOfflineAPIError
Thank you for creating an Issue. Please note that GitHub is not an official channel for Microsoft support requests. To create an official support request, please open a ticket here. Microsoft and the GitHub Community strive to provide a best effort in answering questions and supporting Issues on GitHub.
Hi, can you provide more details on your system configuration like:
- container image version
- isolation mode
- container runtime
- host OS version
container image version: mcr.microsoft.com/windows/servercore:ltsc2025, 10.0.26100.3476 isolation mode: whatever the default is container runtime: Docker Desktop 4.39.0 host OS version: Windows 11 Pro 24H2 (26100.3476)
Point me in the right direction if that information not what you are asking for.
This issue has been open for 30 days with no updates. no assignees, please provide an update or close this issue.
Nothing further to currently add. Just commenting to [hopefully] keep it open.
We haven't had the chance to look at this just yet given our large backlog. We'll let you know as soon as we have. Thanks.
If I understood correctly, using the recommendations in this link (https://github.com/microsoft/Windows-Containers/issues/494) allowed you to tweak a WinPE image from within a container, right? That is good to hear.
Can you provide the specific repro steps for what is failing for you now?
Thanks!
So I take one of the latest WinPE images, based on Windows 11 and extract it using:
dism /Apply-Image /ImageFile:winpe.wim /ApplyDir:c:\MOUNT_DIR /Index:1
I add the GB Language Pack:
dism /Add-Package /Image:c:\MOUNT_DIR /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-gb\lp.cab"
Then try and set the language:
dism /Set-AllIntl:en-GB /Image:c:\MOUNT_DIR
This results in the error message.
This issue has been open for 30 days with no updates. no assignees, please provide an update or close this issue.
This issue has been open for 30 days with no updates. no assignees, please provide an update or close this issue.
This issue has been open for 30 days with no updates. no assignees, please provide an update or close this issue.
This issue has been open for 30 days with no updates. no assignees, please provide an update or close this issue.
This issue has been open for 30 days with no updates. no assignees, please provide an update or close this issue.