Custom Win11 Pro 25H2 ISO fails to install unless old setup is used


DC_ECL

New member
Local time
12:47 AM
Posts
1
OS
Windows 11 Pro
At first, I thought there was an issue with the autounattend.xml or unattend.xml - but removing both files from the ISO build resulted in the install still failing. So, on a hunch, I tried switching to the old version of setup (obviously without the autounattend.xml or unattend.xml) - and the install worked flawlessly.

The same issue is occurring in a VM or on a physical PC (both an older Dell that meets Win11 requirements and a newer Lenovo which also needs requirements were tested).

Testing shows that the install reaches around 10% on the "Installing Windows - your PC may reboot several times" screen and then the "Windows 11 failed to install" popup appears. There are no further details given.

I either need to fix the issue that is causing it to need the old version of setup - though I have no idea what that issue might be - or I need to figure out how to force the old setup through autounattend.xml as we are going to be reimaging all of our public access computers within the next couple of weeks and the thought of having to run setup manually is giving me a serious headache. Going back to a working 24H2 autounattend ISO then having to manually update to 25H2 is equally undesirable. We have around 30 PCs to image within a matter of days.

The install.wim is built according to the tutorial on the Win10 forums for creating an ISO from an existing PC, just like every install.wim that I have built since for the past 7 or so years. And, as mentioned above, it works perfectly if the old setup is selected during a standard manual install but never with the "new" setup.

My build PC is also running Win11 Pro 25H2 and I uninstalled my existing then reinstalled the most current version of the Windows Deploying and Imaging Environment.

Suggestions?
 
Windows Build/Version
Win11 25H2

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo
The newer ("Modern") Setup client for 24H2/25H2 tends to fail on some specific conditions:
- Didn't assign a Recovery partition (old Setup doesn't require one)​
- When using a sysprepped image, which includes a Windows.old folder (just remove it), or some type of custom change that annoys new Setup. A sysprepped image that always worked before may mysteriously break under 24H2/25H2 without explanation.​

If you can't figure out what new Setup is annoyed over, you can easily force legacy Setup to run by updating your boot.wim.

Mount the boot.wim (for example, from D:\path\folder), and apply a reg change.
Code:
DISM /Mount-Wim /wimfile:D:\path\folder\boot.wim /index:2 /mountdir:C:\Mount
reg load HKLM\TEMP C:\Mount\Windows\System32\config\SYSTEM
reg add HKLM\TEMP\Setup /v "CmdLine" /t REG_SZ /d "X:\\sources\\setup.exe" /f
reg unload HKLM\TEMP
DISM /Unmount-Wim /mountdir:C:\Mount /commit

MS has never acknowledged why a change was made in 24H2, nor provided any docs on what to do differently. New Setup is required because Windows is treating every clean install as an "upgrade", in so far as to create an empty Windows.old to make Setup think it's doing an in-place upgrade.
 

My Computer

System One

  • OS
    Windows 7
@DC_ECL, I have run into the same issue that you did in the past. In my case at least, this was always the result of not having updfated EVERYTHING. In other words, your image should be updating Win RE, Win PE, and the install.wim. The Safe OS and Setup dynamic updates should also be included.

If you need more details, please let me know.
 

My Computers

System One System Two

  • OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • Operating System
    Win11 Pro 25H2 (RTM+)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
The newer ("Modern") Setup client for 24H2/25H2 tends to fail on some specific conditions:
- Didn't assign a Recovery partition (old Setup doesn't require one)​
- When using a sysprepped image, which includes a Windows.old folder (just remove it), or some type of custom change that annoys new Setup. A sysprepped image that always worked before may mysteriously break under 24H2/25H2 without explanation.​

If you can't figure out what new Setup is annoyed over, you can easily force legacy Setup to run by updating your boot.wim.

Mount the boot.wim (for example, from D:\path\folder), and apply a reg change.
Code:
DISM /Mount-Wim /wimfile:D:\path\folder\boot.wim /index:2 /mountdir:C:\Mount
reg load HKLM\TEMP C:\Mount\Windows\System32\config\SYSTEM
reg add HKLM\TEMP\Setup /v "CmdLine" /t REG_SZ /d "X:\\sources\\setup.exe" /f
reg unload HKLM\TEMP
DISM /Unmount-Wim /mountdir:C:\Mount /commit

MS has never acknowledged why a change was made in 24H2, nor provided any docs on what to do differently. New Setup is required because Windows is treating every clean install as an "upgrade", in so far as to create an empty Windows.old to make Setup think it's doing an in-place upgrade.

Registered just to show my thanks to this amazing response. I've been pulling my hair out all day trying to resolve this issue in so many different ways and this is what finally done it for me. I shall name my first born garlin to show thanks. I am now curious what about my WIM was causing the new setup client to fail but for now I'll settle on the old setup working
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
or I need to figure out how to force the old setup

one way is to put winpeshl.ini in boot.wim image 2 \windows\system32

winpeshl.ini

Code:
[LaunchApp]

AppPath=X:\sources\setup.exe

mounting not needed. Last time I looked, installation media boot.wim is not read-only, so winpeshl.ini can be dragged in using 7-zip gui in a couple of seconds
 

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450

Latest Support Threads

Back
Top Bottom