Windows-Containers icon indicating copy to clipboard operation
Windows-Containers copied to clipboard

DISM Languages and International Servicing Command-Line Options not working with offline image inside container

Open bewster opened this issue 8 months ago • 12 comments

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

bewster avatar Mar 23 '25 22:03 bewster

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.

github-actions[bot] avatar Mar 23 '25 22:03 github-actions[bot]

Hi, can you provide more details on your system configuration like:

  • container image version
  • isolation mode
  • container runtime
  • host OS version

ntrappe-msft avatar Mar 31 '25 21:03 ntrappe-msft

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.

bewster avatar Mar 31 '25 21:03 bewster

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.

bewster avatar May 01 '25 14:05 bewster

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.

ntrappe-msft avatar May 13 '25 19:05 ntrappe-msft

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!

fjs4 avatar Jun 02 '25 16:06 fjs4

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.

bewster avatar Jun 08 '25 21:06 bewster

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.