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

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

  1. Gyppie

    Gyppie MDL Novice

    Aug 16, 2009
    44
    9
    0
    I was using Win 10 LTSB ISO. When I switched the ISO to Win 10 20H2, it worked perfectly.
     
  2. George King

    George King MDL Addicted

    Aug 5, 2009
    654
    521
    30
    Great will test it with LTSB too. Maybe its possible to detect installer version parent to remove different size of "Reserved system partition"

    EDIT: Added note about LTSB into first post
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jiafei2427

    jiafei2427 MDL Junior Member

    Nov 26, 2020
    64
    12
    0
    Code:
    ; Setting for Capture.cmd
    ; Path to your VHD file, keep spaces as it's no problem for Capture.cmd
    VHDFile=C:\Users\Administrator\VirtualBox VMs\XP\XP.vhd
    ; Don't forget when preparing image in VirtualMachine to set C:\ label that match HDDLabel here, if not Capture.cmd won't work - This setting is here also for VirtualBox HDDLabel=WXPSysprep
    ; Select free letter for assigning VHDFile - This setting is here also for VirtualBox
    ASSIGNLETTER=X
    Sorry, I don't know how to set these parameters for I'm stupid.

    How can I set them?

    I did this:

    VHDFile=C:\Users\user\.VirtualBox\
    This is the default path of VirtualBox 5.2.44. There is no XP.vhd in my folder

    There are no changes below:
    HDDLabel=WXPSysprep
    ASSIGNLETTER=X
     
  4. George King

    George King MDL Addicted

    Aug 5, 2009
    654
    521
    30
    Yo don't need change VHDFile option, this only for manual capturing.
    When you use automatically, you don't need to change anything. ASSIGNLETTER option is here for free letter to assign mounted VHD. Is X your empty one?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. jiafei2427

    jiafei2427 MDL Junior Member

    Nov 26, 2020
    64
    12
    0
    Yes,the X is my empty LETTER.
    Thanks for your reply,but I have no idea to do it.
    My system have 1physical HDD and 4 logical partitions,as follows:C D E F
    XP2ESD tool folder in F HDD,so X is empty.
     
  6. George King

    George King MDL Addicted

    Aug 5, 2009
    654
    521
    30
    So please try to add this at begin inside Auto-Sysprep.cmd andtry to run builder again. This can force English output of commands so we can see whats going wrong. On my side it works without problem, I'm on Windows 10 x64. But all commands must work on Windows 7 too.
    Code:
    REM Get universal english output
    chcp 437 >nul
    
    Another idea is, do you have enough free space on F drive?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. jiafei2427

    jiafei2427 MDL Junior Member

    Nov 26, 2020
    64
    12
    0
    Ok,I'm trying again and get a report to you tomorrow.Thank you!:)
    F has 40g free space
     
  8. trashe33

    trashe33 MDL Junior Member

    May 8, 2016
    57
    17
    0
    @George King what is the gpt addon that your autosysprep script is hinting at?
     
  9. George King

    George King MDL Addicted

    Aug 5, 2009
    654
    521
    30
    It's still in To-Do list. I hope it can bring GPT disk support into XP :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. jiafei2427

    jiafei2427 MDL Junior Member

    Nov 26, 2020
    64
    12
    0
    Code:
    ├─updates
    │  │  5er_MSSignedThemes_Addon_v6.1.1_x86.7z
    │  │  NetFx1.0.7z
    │  │  OnePiece_NetFxLangPack_SvcPack_AddOn_CHS.cab
    │  │  OnePiece_Windows_XP_Post-SP3_UpdatePack_v1.0.9_FINAL_CHS_C507D6C2DC13EF6B60C6E9232C3C07D0.7z
    │  │  OnePiece_WinXP_Embedded_Post-SP3_True_AddOn_CHS.7z
    │  │  README.txt
    │  │  Visualc++.7z
    │  │  WindowsServer2003.WindowsXP-KB2864202-x86-INTL.exe
    │  │ 
    │  └─addons
    │          OnePiece_Adobe_Flash_Player_v32.0.0.344_True_AddOn.cab
    │          README.txt
    ├─repository
    │      Win10_x86.iso
    │      Win7_x86.iso
    │      WinXP_Pro_VL.iso
    │      WinXP_Pro_VL_integrated.iso
    │     
    
    Code:
    Started on ?? 2021/02/09 at 21:15:01.92
     Windows XP Professional Volume
    
       [1] Extracting ISO
       [2] Integrating UpdatePack
       [3] Adding Auto-Sysprep
       [4] Building ISO
       [5] Installing into VirtualBox
       [6] Mounting VHD
       [7] Capturing image
       [8] Exporting image
    Could Not Find F:\XP2ESD\captured.wim
    [ERROR] Can't open "F:\XP2ESD\install.wim" read-only: No such file or directory
    ERROR: Exiting with error code 47:
           Failed to open a file.
    [ERROR] Can't open "F:\XP2ESD\install.wim" read-only: No such file or directory
    ERROR: Exiting with error code 47:
           Failed to open a file.
    [ERROR] Can't open "F:\XP2ESD\install.wim" read-only: No such file or directory
    ERROR: Exiting with error code 47:
           Failed to open a file.
    [ERROR] Can't open "F:\XP2ESD\install.wim" read-only: No such file or directory
    ERROR: Exiting with error code 47:
           Failed to open a file.
    [ERROR] Can't open "F:\XP2ESD\install.wim" read-only: No such file or directory
    ERROR: Exiting with error code 47:
           Failed to open a file.
    [ERROR] Can't open "F:\XP2ESD\install.wim" read-only: No such file or directory
    ERROR: Exiting with error code 47:
           Failed to open a file.
    [ERROR] Can't open "F:\XP2ESD\install.wim" read-only: No such file or directory
    ERROR: Exiting with error code 47:
           Failed to open a file.
    
    
    
       Started on ?? 2021/02/09 at 22:12:36.43
     "F:\XP2ESD\install.wim" doesn't exist
    
     Crucial files missing, add them and try it again
    
     Press any key to exit...
    No change the config.ini
     
  11. George King

    George King MDL Addicted

    Aug 5, 2009
    654
    521
    30
    This means capturing failed on your side. Can you confirm DISM is working without problem in your machine? If DISM works good, then it must run out of space dring capturing
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. jiafei2427

    jiafei2427 MDL Junior Member

    Nov 26, 2020
    64
    12
    0
    OK! thank you. I think win7 need SDK to run DISM,I just reinstall win7 before running it.
     
  13. George King

    George King MDL Addicted

    Aug 5, 2009
    654
    521
    30
    DISM is default Windows 7 component. So no need to install WAIK or SDK. Just be sure it works as expected.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. George King

    George King MDL Addicted

    Aug 5, 2009
    654
    521
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. George King

    George King MDL Addicted

    Aug 5, 2009
    654
    521
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. jiafei2427

    jiafei2427 MDL Junior Member

    Nov 26, 2020
    64
    12
    0
    #158 jiafei2427, Feb 11, 2021
    Last edited: Feb 11, 2021
    @George King
    A new error
    Code:
    Windows XP Modern Intaller
    
       [1] Extracting Windows 7 & 10 ISO
    
    ERROR: ╩²╛▌┤φ╬≤(╤¡╗╖╚▀╙α╝∞▓Θ)íú
       [2] Building setup structure
             Copying DriverPacks
             Building bootloader
       [3] Upgrading setup engine
       [4] Patching setup design
       [5] Patching autorun.dll
       [6] Compressing boot.wim
       [7] Creating skiprecovery.xml + autounattend.xml
       [8] Updating install.wim
       [9] Compressing install.esd
      [10] Building bootable ISO
                                                                                      Finished on 周四 2021/02/11 at 16:47:16.27
    
     Process finished, press any key to exit...
    Garbled code at The 1 instruction.
    OS:WIN10 LTSB 2016
    repository:
    cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486.iso
    cn_windows_10_business_editions_version_20h2_x86_dvd_f978664f.iso
     
  17. George King

    George King MDL Addicted

    Aug 5, 2009
    654
    521
    30
    Sorry, but these characters are unreadable or translatable using google translate. And there are only two commands for extraction ISOs in section where you encountered error... So you must turn into out of free space.
    Code:
    "%~dp0apps\7z\%ARCH%\7z.exe" x "%~dp0repository\%WIN7ISO%" -o"%~dp0repository\extracted\Win7" -y >nul
    "%~dp0apps\7z\%ARCH%\7z.exe" x "%~dp0repository\%WIN10ISO%" -o"%~dp0repository\extracted\Win10" -y >nul
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. jiafei2427

    jiafei2427 MDL Junior Member

    Nov 26, 2020
    64
    12
    0
    OK, I didn't expect to need so much free space.
    Disk F has 54GB of free space.