StefanScherer / packer-windows

Windows Templates for Packer: Windows 11, Windows 10, Windows Server 2022, 2019, 2016, also with Docker
MIT License
1.29k stars 434 forks source link

Resolution for Issue #331: Successful Fix Implementation #333

Closed AlexKintis closed 7 months ago

AlexKintis commented 7 months ago

This is my fix of the #331 issue.

To address the issue encountered during the installation of Windows 11, a solution has been identified and successfully applied. The problem surfaced when attempting to boot into Windows 11 and proceed with the installation phase. A specific message was encountered that hindered the process:

# This PC can't run Windows 11

This PC doesn't meet the minimum system requirements to install this version of Windows. For more information, visit https://aka.ms/WindowsSysReq

To overcome this obstacle, a modification was made to the installation configuration. The boot_commands sections of the file windows_11.json, which is crucial for guiding the installation process, was relocated. Initially situated outside the scope of the primary installation instructions, it was moved directly into the Autounattend.xml file located within the answer_files/11 directory. This adjustment is clearly delineated in the provided diff documentation.

This change effectively resolved the issue, allowing for a smooth and error-free installation of Windows 11. By integrating the boot_commands directly into the Autounattend.xml file, the installation process is now streamlined, bypassing the previously encountered message and facilitating a successful installation.