CodingWonders / DISMTools

The connected place for Windows system administration
GNU General Public License v3.0
397 stars 18 forks source link

Error When Adding Language Features from UUP dump #142

Closed ReturningSock closed 2 months ago

ReturningSock commented 3 months ago

What is the bug about? Please describe the bug you're experiencing: Language features downloaded from UUP Dump can't be added successfully to a mounted image if using the names from UUP Dump. DISMTools.log DISMTools-7-16-2024 5-28-14 PM.log

How does it happen? Please provide the steps necessary to reproduce this bug: I downloaded a language pack and its language features from UUP dump and renamed them using the provided rename_script.cmd. Then, I convert the .esd ones into .cab using Abbodi's script. After that, I tried to add those packages to a mounted image, but only the language pack was added successfully. The rest resulted in error. However, if I changed their names using the method described on this forum, they were finally able to be added successfully.

Expected behavior I expect all of the packages to be added successfully without having to rename them (twice) first.

Screenshots With UUP dump names:

Screenshot 2024-07-16 172733 png2 Screenshot 2024-07-16 173121 png2

Renamed:

Screenshot 2024-07-16 182813 png2 Screenshot 2024-07-16 183048 png2

Screenshot 2024-07-16 183114

Additional context

ReturningSock commented 3 months ago

The error code is 800F081F as described in the attached files.

CodingWonders commented 3 months ago

Some developments of this issue:

The package fails to install with error code 0x800f081f because source files are missing:

Dism_XlAROuJN3q

This can even be seen in the operation logs you've sent:

2024-07-16 17:30:41, Info                  CBS    FOD: Missing payload: Language.Basic~~~es-ES~0.0.1.0
2024-07-16 17:30:41, Info                  CBS    Missing payload found on FOD execution [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
2024-07-16 17:30:41, Info                  CBS    Exec: Failed to retrieve FOD payload [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
2024-07-16 17:30:41, Info                  CBS    Failed to download and plan capabilities [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
2024-07-16 17:30:41, Info                  CBS    Failed to plan execution. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]
2024-07-16 17:30:41, Error                 CBS    Failed to process single phase execution. [HRESULT = 0x800f081f - CBS_E_SOURCE_MISSING]

Getting information of this package reveals that it is an On Demand Pack, which is typically associated with capabilities:

vzMAklhzRX

With this in mind, you would need to add the capability Language.Basic~~~es-ES~0.0.1.0, for which you need to use the Languages and Optional Features ISO as a source:

N6SkzknGok

You can learn more here and here

ReturningSock commented 3 months ago

So that's how it is. Is there no way to install it without using the ISO as a source like NTLite does?

CodingWonders commented 3 months ago

I'm doing more testing regarding this, as that was done using the original packages without renaming the basic package. I'll keep you posted

ReturningSock commented 3 months ago

Alright. And forgot to tell you: Thanks for making this really helpful app!

CodingWonders commented 3 months ago

Now I'm more perplexed. After renaming the package, it suddenly works. I'll check the logs for anything interesting.

And you're welcome!

CodingWonders commented 3 months ago

Well, would you look at that?

2024-07-16 15:29:01, Info                  DISM   DISM Package Manager: PID=3504 TID=15084 Encountered the option "packagepath" with value "C:\dev\DT-TestSuite\Packages\Spanish Language Pack\Microsoft-Windows-LanguageFeatures-Basic-es-es-Package~31bf3856ad364e35~amd64~~.cab" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine
2024-07-16 15:29:01, Info                  CBS    Lazy store initialization mode, fully initialize.
2024-07-16 15:29:01, Info                  CBS    Offline image is writable
2024-07-16 15:29:01, Info                  CBS    Loading offline registry hive: SOFTWARE, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/dtprojs/Win11-23H2/mount/Windows/System32/config/SOFTWARE' from path '\\?\C:\dtprojs\Win11-23H2\mount\Windows\System32\config\SOFTWARE'.
2024-07-16 15:29:02, Info                  CBS    Loading offline registry hive: SYSTEM, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/dtprojs/Win11-23H2/mount/Windows/System32/config/SYSTEM' from path '\\?\C:\dtprojs\Win11-23H2\mount\Windows\System32\config\SYSTEM'.
2024-07-16 15:29:02, Info                  CBS    Loading offline registry hive: SECURITY, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/dtprojs/Win11-23H2/mount/Windows/System32/config/SECURITY' from path '\\?\C:\dtprojs\Win11-23H2\mount\Windows\System32\config\SECURITY'.
2024-07-16 15:29:02, Info                  CBS    Loading offline registry hive: SAM, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/dtprojs/Win11-23H2/mount/Windows/System32/config/SAM' from path '\\?\C:\dtprojs\Win11-23H2\mount\Windows\System32\config\SAM'.
2024-07-16 15:29:02, Info                  CBS    Loading offline registry hive: COMPONENTS, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/dtprojs/Win11-23H2/mount/Windows/System32/config/COMPONENTS' from path '\\?\C:\dtprojs\Win11-23H2\mount\Windows\System32\config\COMPONENTS'.
2024-07-16 15:29:02, Info                  CBS    Loading offline registry hive: DRIVERS, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/dtprojs/Win11-23H2/mount/Windows/System32/config/DRIVERS' from path '\\?\C:\dtprojs\Win11-23H2\mount\Windows\System32\config\DRIVERS'.
2024-07-16 15:29:02, Info                  CBS    Loading offline registry hive: DEFAULT, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/dtprojs/Win11-23H2/mount/Windows/System32/config/DEFAULT' from path '\\?\C:\dtprojs\Win11-23H2\mount\Windows\System32\config\DEFAULT'.
2024-07-16 15:29:02, Info                  CBS    Loading offline registry hive: ntuser.dat, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/dtprojs/Win11-23H2/mount/Users/Default/ntuser.dat' from path '\\?\C:\dtprojs\Win11-23H2\mount\Users\Default\ntuser.dat'.
2024-07-16 15:29:02, Info                  CBS    Loading offline registry hive: schema.dat, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/dtprojs/Win11-23H2/mount/Windows/system32/smi/store/Machine/schema.dat' from path '\\?\C:\dtprojs\Win11-23H2\mount\Windows\system32\smi\store\Machine\schema.dat'.
2024-07-16 15:29:02, Info                  CSI    00000002 CSI Store 2233422485840 initialized
2024-07-16 15:29:02, Info                  CBS    Build: 22621.1.amd64fre.ni_release.220506-1250
2024-07-16 15:29:02, Info                  CBS    Session: 3504_87208296 initialized by client DISM Package Manager Provider, external staging directory: (null)
2024-07-16 15:29:02, Info                  DPX    Started DPX phase: Resume and Download Job
2024-07-16 15:29:02, Info                  DPX    Started DPX phase: Apply Deltas Provided In File
2024-07-16 15:29:02, Info                  DPX    Ended DPX phase: Apply Deltas Provided In File
2024-07-16 15:29:02, Info                  DPX    Started DPX phase: Apply Deltas Provided In File

Instead of complaining about a missing payload, it goes ahead with DPX (the same technology used for adding the bigger package)

So I think that what's happening is that we are "tricking" Windows into adding this package regularly. I'm not sure if this will work though, so I'll look at the forum thread in greater detail.

CodingWonders commented 3 months ago

Even with that hacky method, I still think that you need to go with the FODs to install the language features

ReturningSock commented 3 months ago

I see. That's a shame.

ReturningSock commented 3 months ago
Screenshot 2024-07-16 204743 png2

I guess I just have to download them in the end. I've put off downloading them because of my limited bandwidth.

EDIT: I think the Inbox Apps one is unnecessary because it can be installed without a source , so I can download only what I need from UUP dump and let DISM Tools do the job.

CodingWonders commented 3 months ago

Great! Once you have everything ready, come back with the results

CodingWonders commented 3 months ago

@ReturningSock, any progress with the FODs?