Win11PE Arm64 无法安装 HTA 组件

Lie Leslie 0 信誉分
2025-07-03T02:34:05.5966667+00:00

以Windows 11 24H22 arm64 版 2005年6月版 install.wim中的winre.wim进行自定义安装 ARM64 WinPE-HTA OC 组件,已经按照 https://learn.microsoft.com/zh-cn/windows-hardware/manufacture/desktop/add-hta-oc-for-winpe-arm64?view=windows-11 文档的指南按照顺序安装了 WinPE-HTA.cab、WinPE-HTA_zh-cn.cab、2024-09 累积更新KB5043080、2025-06累积更新KB5060829,所有都是arm64版本的;但是安装后仍然无法找到 \Windows\System32\mshta.exe 文件,手工复制mshta.exe文件到对应位置也无法正常运行,说明HTA OC 组件安装失败。请问如何才能正确安装?

Windows 商业版 | 面向 IT 专业人士的 Windows 客户端 | 设备和部署 | 安装 Windows 更新、功能或角色
0 个注释 无注释
{count} 票

1 个答案

排序依据: 非常有帮助
  1. Stephanie Luu0107 75 信誉分 独立顾问
    2025-07-07T14:40:32.7466667+00:00

    你好,Lie,

    感谢您分享详细信息。

    我建议您按照以下步骤操作,这些步骤可能有助于诊断和解决问题:

    1. 确保 WinPE-hta.cab 组件安装成功。查看日志,确保 CAB 文件已正确集成到您的 WinPE 映像中。
    2. 请检查 arm64\WinPE_OCs\WinPE-hta.cab 文件是否较小且似乎不包含任何二进制文件,这可能是因为 CAB 文件本身已损坏或缺少必要的组件。您可能需要重新下载 ADK 并尝试提取 CAB 文件以查看其包含的内容。
    3. 验证所有必备组件是否已成功安装,尤其是 WinPE-Scripting.cab。缺少此组件可能会导致 HTA 支持受损或无法正常工作。
    4. 仔细检查将 WinPE-HTA.cab 集成到 WinPE 映像中的方法。ARM64 架构的集成过程可能涉及不适用于 x86 或 x64 平台的不同过程或命令行参数。
    Mount WinPE image
    dism /Mount-Wim /WimFile:"winre.wim" /index:1 /MountDir:"mount"
    
    Add dependencies
    dism /Image:"mount" /Add-Package /PackagePath:"WinPE-Scripting.cab"
    
    Add HTA OC
    dism /Image:"mount" /Add-Package /PackagePath:"WinPE-HTA.cab"
    
    Apply cumulative updates
    dism /Image:"mount" /Add-Package /PackagePath:"KB5043080.cab"
    dism /Image:"mount" /Add-Package /PackagePath:"KB50xxxxxx.cab"
    
    Make to Commit changes
    dism /Unmount-Wim /MountDir:"mount" /Commit
    

    希望以上信息对您有所帮助。

    此致,

    ================================

    Hello Lie, 

    I appreciate your sharing details.

    I would recommend to following steps which may assist in diagnosing and resolving the issue:

    1. Make sure that the installation of the WinPE-hta.cab component was successful. Investigating the logs and ensure that the CAB file was properly integrated into your WinPE image.
    2. Please kindly check if the arm64\WinPE_OCs\WinPE-hta.cab file is small and doesn’t appear to contain any binaries, it’s possible that the CAB file itself is corrupted or missing the necessary components. You might want to download the ADK again and try extracting the CAB file to see what it contains.
    3. Verify that all prerequisite components have been successfully installed, particularly WinPE-Scripting.cab. The absence of this component may lead to impaired or non-functional HTA support.
    4. Carefully review the methodology used to integrate WinPE-HTA.cab into the WinPE image. The integration process for the ARM64 architecture may involve distinct procedures or command-line parameters not applicable to x86 or x64 platforms.
    Mount WinPE image
    dism /Mount-Wim /WimFile:"winre.wim" /index:1 /MountDir:"mount"
    
    Add dependencies
    dism /Image:"mount" /Add-Package /PackagePath:"WinPE-Scripting.cab"
    
    Add HTA OC
    dism /Image:"mount" /Add-Package /PackagePath:"WinPE-HTA.cab"
    
    Apply cumulative updates
    dism /Image:"mount" /Add-Package /PackagePath:"KB5043080.cab"
    dism /Image:"mount" /Add-Package /PackagePath:"KB50xxxxxx.cab"
    
    

    I hope the information provided proves helpful.

    Kind Regards,

    0 个注释 无注释

你的答案

提问者可以将答案标记为“已接受”,版主可以将答案标记为“已推荐”,这有助于用户了解答案是否解决了提问者的问题。