Win 11 Boot And Upgrade FiX KiT (v5.1f Released!!!)

Discussion in 'Windows 11' started by Enthousiast, Jun 28, 2021.

  1. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,668
    103,488
    450
    Yeah, forgot to add that to option 2 with updating to v3.8, wouldn't hurt to copy it in:) Will add it at the next tool update:)
     
  2. antonio8909

    antonio8909 MDL Guru

    Feb 16, 2014
    3,116
    1,517
    120
    Hello, I have one suggestion. Allowing the script to maintain the name of the ISO. For example if the ISO filename is 22000.1.210604-1628.CO_RELEASE_CLIENTPRO_OEMRET_X64FRE_ES-ES and I need to replace appraiserres.dll, the final ISO filename will be 22000.1.210604-1628.CO_RELEASE_CLIENTPRO_OEMRET_X64FRE_ES-ES instead of Win_11_22000.1_x64_es-ES_2021-08-20.

    Thank you!
     
  3. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,479
    1,474
    60
    #203 rpo, Aug 20, 2021
    Last edited: Aug 20, 2021
    Antonio, try this:
    Replace script statement 257 by :
    Code:
    for /f "delims=" %%i in ('dir /b Source_ISO\W11\*.iso') do (bin\cdimage.exe -bootdata:2#p0,e,b"Work\boot\etfsboot.com"#pEF,e,b"Work\efi\Microsoft\boot\efisys.bin" -o -m -u2 -udfver102 -lWin_%Winver%_%vermajor%_%warch%_%LabelLang% work "%%i")
    Edit : spaces are supported in the iso name
     
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,668
    103,488
    450
    @antonio8909 i did it this way to have a difference between the "original" source ISO and the "fixed" one, you are free to change the ISO filename to your liking.

    @rpo i will play with this and maybe set an option to do it either way:)
     
  5. antonio8909

    antonio8909 MDL Guru

    Feb 16, 2014
    3,116
    1,517
    120
    The original one remains at Win_11_Boot_And_Upgrade_FiX_KiT_v1.9/Source_ISO/Win11 while the fixed one goes to Win_11_Boot_And_Upgrade_FiX_KiT_v1.9 main folder so it can't be easily differentiated. :)

    Hello,

    I'd edit the statement as you said but it doesn't maintain the original filename.

    Thank you! :)
     
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,668
    103,488
    450
    With the original ISO filename, once the fixed ISO is copied to another folder, only the presence of appraiserres.dll.bak would give the fixed state away, but i will see what i can do:) Maybe add _Fixed to the filename.
     
  7. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,479
    1,474
    60
    #207 rpo, Aug 20, 2021
    Last edited: Aug 21, 2021
    @Enthousiast
    My proposal :

    Code:
    for /f "delims=" %%i in ('dir /b Source_ISO\W11\*.iso') do set "isoname=%%i"
    set "isoname=%isoname:~0,-4%_Reloaded.ISO"
    bin\cdimage.exe -bootdata:2#p0,e,b"Work\boot\etfsboot.com"#pEF,e,b"Work\efi\Microsoft\boot\efisys.bin" -o -m -u2 -udfver102 -lWin_%Winver%_%vermajor%_%warch%_%LabelLang% work "%isoname%"
    This adds _Reloaded to the filename.
     
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,668
    103,488
    450
    This is working:
    Code:
    
    ============================================================
    Win 11 Boot & Upgrade FiX KiT v2.0 TEST...
    ============================================================
    
    
    ================================================================================
    Select the desired FiX...
    ================================================================================
    
    [ 1 ] - Puts the Win 11 install.wim/esd in a Win 10 ISO (Provide a Win 10 ISO in the "Source_ISO\W10\" Folder)
    This method is usefull for clean installs from boot, using the standard W10 setup. A generic EI.CFG file will
    be copied to the sources folder.
    
    [ 2 ] - Integrate Diskpart & Apply Image script (v1.3.1), modify boot.wim to skip the SB, RAM and TPM 2.0 check
    and replace "appraiserres.dll" with one from a 1703 ISO
    
    This method enables you to:
    - Use the standard Win 11 setup for clean installs on devices without Secure Boot and TPM 2.0 and low amount of RAM.
    - Use the alternative Diskpart & Apply Image installation script for clean installs.
    - Circumvent "TPM 2.0 is required" error when (inplace) upgrading.
    
    ================================================================================
    
    * Type your option and press Enter: 2
    
    Extracting Source ISO...
    
    
    7-Zip 19.00 (x86) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
    
    Scanning the drive for archives:
    1 folder, 1 file, 5487515648 bytes (5234 MiB)
    
    Extracting archive: Source_ISO\W11\Windows11_InsiderPreview_Client_x64_en-us_22000.iso
    --
    Path = Source_ISO\W11\Windows11_InsiderPreview_Client_x64_en-us_22000.iso
    Type = Udf
    Physical Size = 5487515648
    Comment = CCCOMA_X64FRE_EN-US_DV9
    Cluster Size = 2048
    Created = 2021-08-11 02:00:00
    
    Everything is Ok
    
    Folders: 84
    Files: 933
    Size:       5481856839
    Compressed: 5487515648
    
    
    ============================================================
    Adding Murphy78 Diskpart and Apply Image Script 1.3.1 To Boot.wim...
    ============================================================
    
    Scanning "murphy78-DiskPart-Apply-v1.3.1\x64\"
    525 KiB scanned (5 files, 4 directories)
    Using LZX compression with 1 thread
    Archiving file data: 525 KiB of 525 KiB (100%) done
    
    ============================================================
    Modding Boot.wim to disable Secure Boot, RAM and TPM 2.0 check...
    ============================================================
    
    Extracting file data: 6144 KiB of 6144 KiB (100%) done
    Done extracting files.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    Scanning "TEMP\SYSTEM" (loading as WIM path: "\Windows\System32\config\SYSTEM")...
    6144 KiB scanned (1 files, 0 directories)
    Updating "\Windows\System32\config\SYSTEM" in WIM image
    Using LZX compression with 8 threads
    Archiving file data: 6144 KiB of 6144 KiB (100%) done
    
    ============================================================
    Optimizing boot.wim...
    ============================================================
    
    "WORK\Sources\boot.wim" original size: 432122 KiB
    Using LZX compression with 8 threads
    Archiving file data: 1045 MiB of 1045 MiB (100%) done
    "WORK\Sources\boot.wim" optimized size: 422794 KiB
    Space saved: 9327 KiB
    
    ============================================================
    Replacing the Win 11 appraiserres.dll with one from a 1703 (15063) ISO...
    (The original file will be renamed to appraiserres.dll.bak)
    ============================================================
    
            1 file(s) copied.
    
    =========================================================
    Creating x64 ISO...
    =========================================================
    
    
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 42 directories)
    Scanning source tree complete (934 files in 85 directories)
    
    Computing directory information complete
    
    Image file is 5480054784 bytes (before optimization)
    
    Writing 934 files in 85 directories to Windows11_InsiderPreview_Client_x64_en-us_22000.iso
    
    100% complete
    
    Storage optimization saved 4 files, 24576 bytes (0% of image)
    
    After optimization, image file is 5482125312 bytes
    Space saved because of embedding, sparseness or optimization = 24576
    
    Done.
    Press any key to continue . . .
    But adding _FiXED not yet, if possible at all (didn't invest much energy in it atm):
    Code:
    
    ============================================================
    Win 11 Boot & Upgrade FiX KiT v2.0 TEST...
    ============================================================
    
    
    ================================================================================
    Select the desired FiX...
    ================================================================================
    
    [ 1 ] - Puts the Win 11 install.wim/esd in a Win 10 ISO (Provide a Win 10 ISO in the "Source_ISO\W10\" Folder)
    This method is usefull for clean installs from boot, using the standard W10 setup. A generic EI.CFG file will
    be copied to the sources folder.
    
    [ 2 ] - Integrate Diskpart & Apply Image script (v1.3.1), modify boot.wim to skip the SB, RAM and TPM 2.0 check
    and replace "appraiserres.dll" with one from a 1703 ISO
    
    This method enables you to:
    - Use the standard Win 11 setup for clean installs on devices without Secure Boot and TPM 2.0 and low amount of RAM.
    - Use the alternative Diskpart & Apply Image installation script for clean installs.
    - Circumvent "TPM 2.0 is required" error when (inplace) upgrading.
    
    ================================================================================
    
    * Type your option and press Enter: 2
    
    Extracting Source ISO...
    
    
    7-Zip 19.00 (x86) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
    
    Scanning the drive for archives:
    1 folder, 1 file, 5487515648 bytes (5234 MiB)
    
    Extracting archive: Source_ISO\W11\Windows11_InsiderPreview_Client_x64_en-us_22000.iso
    --
    Path = Source_ISO\W11\Windows11_InsiderPreview_Client_x64_en-us_22000.iso
    Type = Udf
    Physical Size = 5487515648
    Comment = CCCOMA_X64FRE_EN-US_DV9
    Cluster Size = 2048
    Created = 2021-08-11 02:00:00
    
    Everything is Ok
    
    Folders: 84
    Files: 933
    Size:       5481856839
    Compressed: 5487515648
    
    
    ============================================================
    Adding Murphy78 Diskpart and Apply Image Script 1.3.1 To Boot.wim...
    ============================================================
    
    Scanning "murphy78-DiskPart-Apply-v1.3.1\x64\"
    525 KiB scanned (5 files, 4 directories)
    Using LZX compression with 1 thread
    Archiving file data: 525 KiB of 525 KiB (100%) done
    
    ============================================================
    Modding Boot.wim to disable Secure Boot, RAM and TPM 2.0 check...
    ============================================================
    
    Extracting file data: 6144 KiB of 6144 KiB (100%) done
    Done extracting files.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    Scanning "TEMP\SYSTEM" (loading as WIM path: "\Windows\System32\config\SYSTEM")...
    6144 KiB scanned (1 files, 0 directories)
    Updating "\Windows\System32\config\SYSTEM" in WIM image
    Using LZX compression with 8 threads
    Archiving file data: 6144 KiB of 6144 KiB (100%) done
    
    ============================================================
    Optimizing boot.wim...
    ============================================================
    
    "WORK\Sources\boot.wim" original size: 432122 KiB
    Using LZX compression with 8 threads
    Archiving file data: 1045 MiB of 1045 MiB (100%) done
    "WORK\Sources\boot.wim" optimized size: 422794 KiB
    Space saved: 9327 KiB
    
    ============================================================
    Replacing the Win 11 appraiserres.dll with one from a 1703 (15063) ISO...
    (The original file will be renamed to appraiserres.dll.bak)
    ============================================================
    
            1 file(s) copied.
    
    =========================================================
    Creating x64 ISO...
    =========================================================
    
    
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 42 directories)
    Scanning source tree complete (934 files in 85 directories)
    
    Computing directory information complete
    
    Image file is 5480054784 bytes (before optimization)
    
    Writing 934 files in 85 directories to Windows11_InsiderPreview_Client_x64_en-us_22000.iso_FiXED
    
    100% complete
    
    Storage optimization saved 4 files, 24576 bytes (0% of image)
    
    After optimization, image file is 5482125312 bytes
    Space saved because of embedding, sparseness or optimization = 24576
    
    Done.
    Press any key to continue . . .
    
     
  9. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,479
    1,474
    60
    Try this :
    Code:
    for /f "delims=" %%i in ('dir /b Source_ISO\W11\*.iso') do set "isoname=%%i"
    set "isoname=%isoname:~0,-4%_FIXED.ISO"
    bin\cdimage.exe -bootdata:2#p0,e,b"Work\boot\etfsboot.com"#pEF,e,b"Work\efi\Microsoft\boot\efisys.bin" -o -m -u2 -udfver102 -lWin_%Winver%_%vermajor%_%warch%_%LabelLang% work "%isoname%"
    3 statements instead of 1...
     
  10. stoppen

    stoppen MDL Member

    Jun 10, 2012
    103
    23
    10
    After 20+ attempts in all configs my system still fails. I have even gone as far as old school FDisk to format the C: drive.
    The only thing I can figure is that my MS login was flagged as not being supported.
    I have spent 7 hours trying to get the kits 1.8 and 1.9 to work. I end up with the same messages. Your PC does not meet the minimum requirements for Windows 11.
     
  11. stoppen

    stoppen MDL Member

    Jun 10, 2012
    103
    23
    10
    On my Last try. I have had flashing cursers in the upper left hand corner up until the dotted circle starts. I don't think that should happen.
    This last try has not even started the install process before it stops and let me know that my computer is non-compliant for Windows 11.
    This time I will reformat again and install Win 11 Pro from my full MS install disk that's 5years old. This is going to take awhile to see.
     
  12. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,419
    11,688
    240
    Have you tried just logging in as an offline account and not connecting your internet until after the OOBE phase is done and Windows is all set up? You can always link your MS account later.
     
  13. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,668
    103,488
    450
    Thanks, working:)
    Code:
    
    ============================================================
    Win 11 Boot & Upgrade FiX KiT v2.0 TEST...
    ============================================================
    
    
    ================================================================================
    Select the desired FiX...
    ================================================================================
    
    [ 1 ] - Puts the Win 11 install.wim/esd in a Win 10 ISO (Provide a Win 10 ISO in the "Source_ISO\W10\" Folder)
    This method is usefull for clean installs from boot, using the standard W10 setup. A generic EI.CFG file will
    be copied to the sources folder.
    
    [ 2 ] - Integrate Diskpart & Apply Image script (v1.3.1), modify boot.wim to skip the SB, RAM and TPM 2.0 check
    and replace "appraiserres.dll" with one from a 1703 ISO
    
    This method enables you to:
    - Use the standard Win 11 setup for clean installs on devices without Secure Boot and TPM 2.0 and low amount of RAM.
    - Use the alternative Diskpart & Apply Image installation script for clean installs.
    - Circumvent "TPM 2.0 is required" error when (inplace) upgrading.
    
    ================================================================================
    
    * Type your option and press Enter: 2
    
    Extracting Source ISO...
    
    
    7-Zip 19.00 (x86) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
    
    Scanning the drive for archives:
    1 folder, 1 file, 5487515648 bytes (5234 MiB)
    
    Extracting archive: Source_ISO\W11\Windows11_InsiderPreview_Client_x64_en-us_22000.iso
    --
    Path = Source_ISO\W11\Windows11_InsiderPreview_Client_x64_en-us_22000.iso
    Type = Udf
    Physical Size = 5487515648
    Comment = CCCOMA_X64FRE_EN-US_DV9
    Cluster Size = 2048
    Created = 2021-08-11 02:00:00
    
    Everything is Ok
    
    Folders: 84
    Files: 933
    Size:       5481856839
    Compressed: 5487515648
    
    
    ============================================================
    Adding Murphy78 Diskpart and Apply Image Script 1.3.1 To Boot.wim...
    ============================================================
    
    Scanning "murphy78-DiskPart-Apply-v1.3.1\x64\"
    525 KiB scanned (5 files, 4 directories)
    Using LZX compression with 1 thread
    Archiving file data: 525 KiB of 525 KiB (100%) done
    
    ============================================================
    Modding Boot.wim to disable Secure Boot, RAM and TPM 2.0 check...
    ============================================================
    
    Extracting file data: 6144 KiB of 6144 KiB (100%) done
    Done extracting files.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    The operation completed successfully.
    Scanning "TEMP\SYSTEM" (loading as WIM path: "\Windows\System32\config\SYSTEM")...
    6144 KiB scanned (1 files, 0 directories)
    Updating "\Windows\System32\config\SYSTEM" in WIM image
    Using LZX compression with 8 threads
    Archiving file data: 6144 KiB of 6144 KiB (100%) done
    
    ============================================================
    Optimizing boot.wim...
    ============================================================
    
    "WORK\Sources\boot.wim" original size: 432122 KiB
    Using LZX compression with 8 threads
    Archiving file data: 1045 MiB of 1045 MiB (100%) done
    "WORK\Sources\boot.wim" optimized size: 422794 KiB
    Space saved: 9327 KiB
    
    ============================================================
    Replacing the Win 11 appraiserres.dll with one from a 1703 (15063) ISO...
    (The original file will be renamed to appraiserres.dll.bak)
    ============================================================
    
            1 file(s) copied.
    
    =========================================================
    Creating x64 ISO...
    =========================================================
    
    
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 42 directories)
    Scanning source tree complete (934 files in 85 directories)
    
    Computing directory information complete
    
    Image file is 5480054784 bytes (before optimization)
    
    Writing 934 files in 85 directories to Windows11_InsiderPreview_Client_x64_en-us_22000_FIXED.ISO
    
    100% complete
    
    Storage optimization saved 4 files, 24576 bytes (0% of image)
    
    After optimization, image file is 5482125312 bytes
    Space saved because of embedding, sparseness or optimization = 24576
    
    Done.
    Press any key to continue . . .
     
  14. ianymaty

    ianymaty MDL Member

    Jan 31, 2010
    136
    97
    10
    Now, I know that I'm pushing the envelope but... take it as a suggestion.

    Can you adjust it to append the method used? Like ..._22000_FIXED_M#.ISO
     
  15. Mellipes

    Mellipes MDL Senior Member

    Jun 17, 2021
    359
    227
    10
    Must be getting old. I am the sort of person that really appreciates the work people like Enthousiast does. As such if they want to put individual quirks into programming I recon "go for it". And yes always suggest where their programming is failing, thats what they want to know.

    But asking for individual things like the way YOU WOULD LIKE IT, like naming files, well I wouldn't do it.
     
  16. antonio8909

    antonio8909 MDL Guru

    Feb 16, 2014
    3,116
    1,517
    120
    It was just a suggestion. Only that. A suggestion

    And of course, I appreciate all the work @Enthousiast does here at MDL!! :)
     
  17. stoppen

    stoppen MDL Member

    Jun 10, 2012
    103
    23
    10
    I tried that once but it was using the 1.7 version. I will try again after a couple of hours.
    Work was real rough on me today at work.
     
  18. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,668
    103,488
    450
    There are no other differences between 1.7 and 1.9 than inserting an updated diskpart & apply image script and the new mount-less method of modding the boot.wim registry.
     
  19. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,479
    1,474
    60
    @Enthousiast
    You can speed up the process for option 1. Replace :
    Code:
    bin\7z x -y -oWork\ Source_ISO\W10\ 
    echo ============================================================
    echo Deleting W10 install.wim^/esd
    echo ============================================================
    echo.
    If exist "WORK\Sources\install.*" del "WORK\Sources\install.*"
    by :
    Code:
    bin\7z x -y -oWork\ Source_ISO\W10\ -x!sources\install.*
    This avoids extracting the w10 install.esd or install.wim .
    Caveat : "setlocal EnableDelayedExpansion" must be removed; in fact it is not needed for the script.
     
  20. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,419
    11,688
    240
    It's not just the amount of effort he has put into contributing content on MDL. It is also the attention required to constantly keep up to date to post the content in a timely manner. I daresay @enthusiast is the person who does the most contributions on a regular basis on MDL because of his dedication. Everyone has their own little specialties. Some are far more specialized in the technical aspects and provide much needed support but on rarer occasions. People like Enth make MDL the place it is. I hope he knows how much we appreciate his efforts.