[TOOL] XP2ESD - Create modern Windows XP installer v1.6.2

Discussion in 'Windows XP / Older OS' started by George King, Jan 8, 2021.

  1. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,919
    150

    By native I (and MS) mean an OS that can boot from vhd(x) by design, (as opposite as booting inside a VM).

    By "native" I mean anything that mimic this feature on OSes that don't support that feature by themself like XP/Vista and also Linux.

    Speaking of XP boots w/o any problem using Grub4Dos + SVbus/firadisk/Winvblock and the NT5 bootloader.

    It BSOD because on first boot it needs to know not just about the virtual SVbus controller but also the real HDD controller.

    So you can either install XP on a real partition to have the HW detected properly, then install SVbus, then copy the partition on the VHD.

    Or you can use directly the VHD booting with HIrens boot CD then mount the VHD using IMdisk, then fix XP using the FIX_HDD.cmd script.

    The above is valid using MBR both on VHD and the real HDD and is valid also for Vista and the unsupported SKUs of Win7 (only ultimate/enterprise/and thinPC have the native boot support).
     
  2. TheFighterJetDude

    TheFighterJetDude MDL Novice

    Apr 21, 2020
    1
    0
    0
    On my 12900k, and ASUS Z690 Prime-A, when I try Windows XP or Server 2003 32 bit, I get through the first part fine, but after rebooting, my USB stops working, and I get a DRIVER_IRQL_NOT_LESS_OR_EQUAL bsod.
     
  3. diderius6

    diderius6 MDL Junior Member

    Mar 8, 2020
    67
    23
    0
    Make a try with a real CD-Rom in an Sata-CDRom device.
     
  4. Chuterix

    Chuterix MDL Senior Member

    Apr 18, 2022
    275
    124
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. canibeyourwaifu

    canibeyourwaifu MDL Novice

    Feb 27, 2018
    11
    1
    0
    Will give that a go currently trying to build an iso, im not sure if thats the problem though windows 7 install worked okay also
     
  6. canibeyourwaifu

    canibeyourwaifu MDL Novice

    Feb 27, 2018
    11
    1
    0
    The setup keeps getting stuck on the Installing into virtualbox step. I opened the virtualbox screen and can see its doing stuff but it seems extremely slow i watched the install and it took like 5 hours i have left it over night and its just stuck on the desktop not doing anything, Is this due to only using one core? how can i make the script use more cores i saw its not configurable in the config file. I'm using a surface pro 7 so the hardware is powerful enough to run a winxp vm properly but maybe because its a mobile chip a single core is not enough
     
  7. jiafei2427

    jiafei2427 MDL Member

    Nov 26, 2020
    207
    55
    10
  8. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,451
    60
    Hope I will finally rebuild my main machine this week to continue on development on more powerful set-up.

    Btw I spend more time than I expected on ViStar journey. New release is close, with W11 support and more features.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. UsefulAGKHelper

    UsefulAGKHelper MDL Senior Member

    Aug 28, 2021
    384
    237
    10
    @George King With this fix, GUI boot is disabled only if executed from XP2ESD setup so the NOGUIBOOT function won't be used in Standard Setup.
    For Legacy mode:
    Code:
    if /i "%SetupType%" == "XP2ESD" (
            bcdedit /store "%TARGET%\boot\bcd" /set {default} quietboot on >nul
            )
    For UEFI mode:
    Code:
    if /i "%SetupType%" == "XP2ESD" (
            bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} quietboot on >nul
            )
    For searching all possible boot options (Legacy Mode):
    Code:
    if not exist "%%I:\Windows\servicing" (
             bcdedit /store "%TARGET%\boot\bcd" /set {!GUID!} quietboot on
             )
    For searching all possible boot options (UEFI Mode):
    Code:
    if not exist "%%I:\Windows\servicing" (
             bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {!GUID!} quietboot on
             )
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,451
    60
    Hi everyone!

    New testing looks good after longer pause. During upcoming weeks I'm going to do my best to release it, so you can enjoy new things too :)

    Code:
    
                                                                                      Started on 03/26/2023 at 23:05:13.98
                                                                                          Auto-Sysprep progress: 1 / 8
    
       [1] Extracting cs_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73965.iso
            Windows XP Professional Volume License (cs-CZ) SP3 v5.1.2600.5512 x86
       [2] Integrating UpdatePack
       [3] Adding Auto-Sysprep
       [4] Building ISO
       [5] Installing into VirtualBox
       [6] Extracting VHD
            Windows XP Professional Volume License (cs-CZ) SP3 v5.1.2600.7728 x86
       [7] Capturing image
       [8] Exporting image
                                                                                      Started on 03/26/2023 at 23:24:21.42
                                                                                          Auto-Sysprep progress: 2 / 8
    
       [1] Extracting cs_win_srv_2003_enterprise_with_sp2_vl.iso
            Windows Server 2003 Enterprise Volume License (cs-CZ) SP2 v5.2.3790.3959 x86
       [2] Integrating UpdatePack
       [3] Adding Auto-Sysprep
       [4] Building ISO
       [5] Installing into VirtualBox
       [6] Extracting VHD
            Windows Server 2003 Enterprise Volume License (cs-CZ) SP2 v5.2.3790.6947 x86
       [7] Capturing image
       [8] Exporting image
    
       [9] Creating Windows XP Professional 2003
                                                                                      Started on 03/26/2023 at 23:42:55.71
                                                                                          Auto-Sysprep progress: 3 / 8
    
       [1] Extracting cs_win_srv_2003_r2_enterprise_with_sp2_vl.iso
            Windows Server 2003 R2 Enterprise Volume License (cs-CZ) SP2 v5.2.3790.3959 x86
       [2] Integrating UpdatePack
       [3] Adding Auto-Sysprep
       [4] Building ISO
       [5] Installing into VirtualBox
       [6] Extracting VHD
            Windows Server 2003 R2 Enterprise Volume License (cs-CZ) SP2 v5.2.3790.6947 x86
       [7] Capturing image
       [8] Exporting image
                                                                                      Started on 03/27/2023 at  0:01:27.77
                                                                                          Auto-Sysprep progress: 4 / 8
    
       [1] Extracting en_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73974.iso
            Windows XP Professional Volume License (en-US) SP3 v5.1.2600.5512 x86
       [2] Integrating UpdatePack
       [3] Adding Auto-Sysprep
       [4] Building ISO
       [5] Installing into VirtualBox
       [6] Extracting VHD
            Windows XP Professional Volume License (en-US) SP3 v5.1.2600.7728 x86
       [7] Capturing image
       [8] Exporting image
                                                                                      Started on 03/27/2023 at  0:20:16.30
                                                                                          Auto-Sysprep progress: 5 / 8
    
       [1] Extracting en_winxp_pro_x64_with_sp2_VOL_20070218_crmpx_x13-41611.iso
            Windows XP Professional Volume License (en-US) SP2 v5.2.3790.3959 x64
       [2] Integrating UpdatePack
       [3] Adding Auto-Sysprep
       [4] Building ISO
       [5] Installing into VirtualBox
       [6] Extracting VHD
            Windows XP Professional Volume License (en-US) SP2 v5.2.3790.6947 x64
       [7] Capturing image
       [8] Exporting image
                                                                                      Started on 03/27/2023 at  0:47:36.26
                                                                                          Auto-Sysprep progress: 6 / 8
    
       [1] Extracting en_win_srv_2003_enterprise_with_sp2_vl.iso
            Windows Server 2003 Enterprise Volume License (en-US) SP2 v5.2.3790.3959 x86
       [2] Integrating UpdatePack
       [3] Adding Auto-Sysprep
       [4] Building ISO
       [5] Installing into VirtualBox
       [6] Extracting VHD
            Windows Server 2003 Enterprise Volume License (en-US) SP2 v5.2.3790.6947 x86
       [7] Capturing image
       [8] Exporting image
    
       [9] Creating Windows XP Professional 2003
                                                                                      Started on 03/27/2023 at  1:07:44.83
                                                                                          Auto-Sysprep progress: 7 / 8
    
       [1] Extracting en_win_srv_2003_r2_enterprise_with_sp2_vl.iso
            Windows Server 2003 R2 Enterprise Volume License (en-US) SP2 v5.2.3790.3959 x86
       [2] Integrating UpdatePack
       [3] Adding Auto-Sysprep
       [4] Building ISO
       [5] Installing into VirtualBox
       [6] Extracting VHD
            Windows Server 2003 R2 Enterprise Volume License (en-US) SP2 v5.2.3790.6947 x86
       [7] Capturing image
       [8] Exporting image
                                                                                      Started on 03/27/2023 at  1:27:49.93
                                                                                          Auto-Sysprep progress: 8 / 8
    
       [1] Extracting en_win_srv_2003_r2_enterprise_x64_with_sp2_vl.iso
            Windows Server 2003 R2 Enterprise Volume License (en-US) SP2 v5.2.3790.3959 x64
       [2] Integrating UpdatePack
       [3] Adding Auto-Sysprep
       [4] Building ISO
       [5] Installing into VirtualBox
       [6] Extracting VHD
            Windows Server 2003 R2 Enterprise Volume License (en-US) SP2 v5.2.3790.6947 x64
       [7] Capturing image
       [8] Exporting image
    
    
                                                                                      Started on 03/27/2023 at  1:55:20.09
     Windows XP Modern Installer
    
       [1] Extracting
            en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso
            Win10_21H2_English_x64.iso
       [2] Building setup structure
            Building bootloader
            Adding DriverPacks support
            Adding Setup folder
            Adding Unattended configurations
       [3] Upgrading setup engine
            Integrating setup drivers
            Integrating setup language packs
                  Integrating cs-CZ
            Integrating setup engine language packs
                  Integrating cs-CZ
       [4] Patching setup design
       [5] Modifying setup launch
       [6] Cleaning boot.wim
       [7] Compressing boot.wim
    
    "D:\XP2ESD-main\_output\sources\boot.wim" original size: 159823 KiB
    Using LZX compression with 16 threads
    Archiving file data: 511 MiB of 511 MiB (100%) done
    Calculating integrity table for WIM: 153 MiB of 153 MiB (100%) done
    "D:\XP2ESD-main\_output\sources\boot.wim" optimized size: 157279 KiB
    Space saved: 2544 KiB
    
       [8] Updating install.wim
            1. Windows XP Professional Volume License (cs-CZ) x86
                 License files check
                 Applying winlogon patch
                 Applying RunOnceEx icon patch
                 Applying RunOnceEx dialog patch
                 Adding patched ACPI.sys
                     Repacking sp3.cab
            2. Windows Server 2003 Enterprise Volume License (cs-CZ) x86
                 License files check
                 Applying winlogon patch
                 Applying RunOnceEx icon patch
                 Applying RunOnceEx dialog patch
                 Adding patched ACPI.sys
                     Repacking sp2.cab
            3. Windows XP Professional 2003 Volume License (cs-CZ) x86
                 License files check
                 Applying winlogon patch
                 Applying RunOnceEx icon patch
                 Applying RunOnceEx dialog patch
                 Adding patched ACPI.sys
                     Repacking sp2.cab
            4. Windows Server 2003 R2 Enterprise Volume License (cs-CZ) x86
                 License files check
                 Applying winlogon patch
                 Applying RunOnceEx icon patch
                 Applying RunOnceEx dialog patch
                 Adding patched ACPI.sys
                     Repacking sp2.cab
            5. Windows XP Professional Volume License (en-US) x86
                 License files check
                 Applying winlogon patch
                 Applying RunOnceEx icon patch
                 Applying RunOnceEx dialog patch
                 Adding patched ACPI.sys
                     Repacking sp3.cab
            6. Windows XP Professional Volume License (en-US) x64
                 License files check
                 Applying RunOnceEx icon patch
                 Applying RunOnceEx dialog patch
                 Adding patched ACPI.sys
                     Repacking sp2.cab
            7. Windows Server 2003 Enterprise Volume License (en-US) x86
                 License files check
                 Applying winlogon patch
                 Applying RunOnceEx icon patch
                 Applying RunOnceEx dialog patch
                 Adding patched ACPI.sys
                     Repacking sp2.cab
            8. Windows XP Professional 2003 Volume License (en-US) x86
                 License files check
                 Applying winlogon patch
                 Applying RunOnceEx icon patch
                 Applying RunOnceEx dialog patch
                 Adding patched ACPI.sys
                     Repacking sp2.cab
            9. Windows Server 2003 R2 Enterprise Volume License (en-US) x86
                 License files check
                 Applying winlogon patch
                 Applying RunOnceEx icon patch
                 Applying RunOnceEx dialog patch
                 Adding patched ACPI.sys
                     Repacking sp2.cab
            10. Windows Server 2003 R2 Enterprise Volume License (en-US) x64
                 License files check
                 Applying RunOnceEx icon patch
                 Applying RunOnceEx dialog patch
                 Adding patched ACPI.sys
                     Repacking sp2.cab
    
       [9] Adding system images from Base and Engine install.wim files
    
            Exporting Windows 7.wim
    
    Using LZMS compression with 16 threads
    Archiving file data: 5867 MiB of 5867 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 213 MiB of 213 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 161 MiB of 161 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 143 MiB of 143 MiB (100%) done
    
            Exporting Windows 10.wim
    
    Using LZMS compression with 16 threads
    Archiving file data: 8448 MiB of 8448 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 230 MiB of 230 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 159 MiB of 159 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 393 MiB of 393 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 256 MiB of 256 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 150 MiB of 150 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 144 MiB of 144 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 139 MiB of 139 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 133 MiB of 133 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 139 MiB of 139 MiB (100%) done
    Using LZMS compression with 16 threads
    Archiving file data: 133 MiB of 133 MiB (100%) done
    
       [10] Compressing ESD
    
            Windows XP.esd
    
    Using LZMS compression with 16 threads
    Archiving file data: 7955 MiB of 7955 MiB (100%) done
    
            Windows 7.esd
    
    Using LZMS compression with 16 threads
    Archiving file data: 6386 MiB of 6386 MiB (100%) done
    
            Windows 10.esd
    
    Using LZMS compression with 16 threads
    Archiving file data: 10 GiB of 10 GiB (100%) done
    
    
       [11] Building bootable 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 83 directories)
    Scanning source tree complete (990 files in 135 directories)
    
    Computing directory information complete
    
    Image file is 17080811520 bytes (before optimization)
    
    Writing 990 files in 135 directories to D:\XP2ESD-main\WinXP_AIO_ESD.iso
    
    100% complete
    
    Storage optimization saved 191 files, 29184000 bytes (1% of image)
    
    After optimization, image file is 17054300160 bytes
    Space saved because of embedding, sparseness or optimization = 29184000
    
    Done.
                                                                                     Finished on 03/27/2023 at  2:34:05.00
    
     Process finished, press any key to exit...
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Alexandros C. Couloumbis

    May 19, 2018
    127
    35
    10
    any help pointing to a directory and/or specific packages that need to be removed to accomplish the above task would be greatly appreciated
     
  12. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,451
    60
    Why you would like to kill these new features?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Alexandros C. Couloumbis

    May 19, 2018
    127
    35
    10
    in order to use rufus to create an XP Windows to Go (bootable through USB).
     
  14. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,451
    60
    XP2ESD ISO is suitable only for Rufus to support USB boot to perform installation.

    To create XP To Go, I'm not in. Too much issues to solve, no interests on my side.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,451
    60
    For what should we do this? What are benefits?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,451
    60
    It's expected, do not use Integral ISO as source. If you would like use it as source, then disable nLite touch and run it in standalone session.
    However, it's useless to use this ISO if you think drivers will be already installed, they won't ever be as this is by design as XP doesn't support real sysprep like Vista and newer.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,451
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. mickey66092

    mickey66092 MDL Novice

    Aug 24, 2018
    24
    8
    0
    #2340 mickey66092, Mar 27, 2023
    Last edited: Mar 27, 2023
    So far in my experience windows xp crashes when it boots up after the first install phase if you install it on a usb device and higher versions of windows has probably the same issue. So installing to usb is not possible. (Yet)