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

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

  1. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,461
    60
    #121 George King, Feb 4, 2021
    Last edited: Feb 5, 2021
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,461
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,461
    60
    Advanced OOBE is prepared in all languages now.

    Regionals and TimeZone setting works without problem - this customing really works.
    Set Administrator password doesn't work on Home edition... Will investigate it later. Maybe it's linked with renaming original unusable Administrator to AdministratorN. Will see if these informations are writen somewhere and If It can be edited..

    Also setup process now is different.

    1) Expand files from WinPE installer, reboot
    2) DetectHAL, install drivers using SDI, reboot
    3) Perform RunOnceEx, reboot (OOBE.cmd is called as laste step before reboot)
    4) Enter OOBE
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. WindowsMyStyle

    WindowsMyStyle MDL Member

    May 2, 2018
    173
    67
    10
    reasons too on a personal level ...
    a project must be created globally ...
    I test a project with an untouched operating system
    you assume that an XP version must be modded :)
     
  5. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,461
    60
    Then new version is really for you, as it can skip integration, that mean untouched SP3 or modified ISO can be used too.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,461
    60
    #126 George King, Feb 6, 2021
    Last edited: Feb 7, 2021
    (OP)
    Updated to v1.4!

    Many changes was done. First post will be updated later with new pictures and maybe video from installing on real HW too!

    To get everything working, delete your install.wim and build it again

    Code:
    06.02.2021 - v1.4 - Now can be used previously modified source - for advanced users - Main purpose of this tool is rebuild SP3 into SP3+ with modern installer
                      - Fixed boot.ini rdisk() detection, Partition is still limited to be first on HDD
                      - Fixed CaptureVHD.cmd - Now are needed License.rtf files for setup generated too.
                      - Fixed Unatteded settings for "Auto-sysprep" are now driven by Windows XP setup language from HIVESYS.inf - Locale is now correctly set for all languages
                      - Fixed setup.exe calling when no autounattend.xml exist                
                      - Fixed 7z.exe 32bit naming inside app folder
                      - Fixed Windows Installer bug caused by KB4494528    - MSI.dll is re-registered at T-12 during AutoSysprep            
                      - Switched DriverPacks installer to Snappy Driver Installer - support 23 from 24 languages, only Finnish translation is missing. Also on my test machine all drivers were found instead of using old DriverPacks
                      - Switched OOBE mode method - Sysprep is no longer used, we are turning machine into OOBE using registry keys - this also "breaks" sysprep.inf configurations
                      - Switched generating license files from Blank file to use EULA.txt if exist                
                      - Switched Auto-Sysprep registering to cmdlines.txt
                      - Improved deployment files removal on first boot - no more WinPE leftovers
                      - Advanced OOBE - Regional / Timezone settings, Removed Windows Update page, Enabled User creation on Home Edition                
                      - Added Office folder, place unattended Office 2007 / 2010 setup here and it will be installed automatically during RunOnceEx                
                      - Added option to install DriverPacks from setup Media or copy to HDD before installing using settings.ini in root of ISO, configurable through config.ini. This option is set to HDD by default to keep maximum compatibility. If you are sure you are building DVD it's safe to use Media option.
                      - Added ability to show EULA before setup - This option is enabled by default
                      - Added Product Keys configuration into config.ini
                      - Added Windows 7 bootmgr + BCD to boot Windows XP from ntldr + boot.ini. This adds Windows Memory diagnostic accesible from bootmenu and better compatibility in MultiBoot options with newer Windows        
                      - Added ability to edit BCD from Windows XP host using bcdedit.exe from Vista RTM version 6.0.6000.16386 - use bcdedit.exe /store %SystemDrive%\boot\bcd to list all bootable entries
                      - Added ability to integrate nLite addons automatically. Place *.7z *.cab *.rar *.zip addon inside folder \updates\addons
                      - Added Flash Player addon version 32.0.0.344
                      - Added Diskpart MUI patch for WinPE to get English output on all Languages
                      - Added option to add Windows 7 DISM to support install.wim servicing on XP host - DISM injection is done during capturing image
                      - Added option to skip nLite integration - usefull to skip when using modified setup source as input
                      - Added option for APCI file replacement, this option is disabled by default and 12 different patches are included
                      - Added option to skip OOBE, this option is enabled by default, Administrator is loged on
                      - Added option to use CHKDSK, this option is disabled by default, enable only if capturing image fail for you
                      - EXPERIMENTAL: New option for USEWINLOAD - this is only for advaced users, who can find how to solve BSOD encountered during booting using winload        
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. makfree

    makfree MDL Novice

    Oct 30, 2020
    1
    0
    0
    ihave lot of erros i am in french language

    [1] Building setup structure
    [2] Upgrading setup engine
    Administrators: Le mappage entre les noms de compte et les ID de sécurité n’a pas été effectué.
    Administrators: Le mappage entre les noms de compte et les ID de sécurité n’a pas été effectué.
    [3] Patching setup design
    Administrators: Le mappage entre les noms de compte et les ID de sécurité n’a pas été effectué.
    Administrators: Le mappage entre les noms de compte et les ID de sécurité n’a pas été effectué.
    Administrators: Le mappage entre les noms de compte et les ID de sécurité n’a pas été effectué.



    finally i resulte with installation error windows ne trouve pas de contrat de licence
     
  8. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,461
    60
    #128 George King, Feb 6, 2021
    Last edited: Feb 6, 2021
    (OP)
    Sorry I don’t understand your errors... This is not enough to debug it... Please tell me exactly what you did step by step.

    EDIT: According to your last error It seems like something with your Windows 10 ISO. Or something with host.
    Whats your build enviroment? And are you sure, you run Builder as Administrator?

    EDIT2: And be sure you are using latest v1.4 version
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,461
    60
    #130 George King, Feb 7, 2021
    Last edited: Feb 7, 2021
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Gyppie

    Gyppie MDL Junior Member

    Aug 16, 2009
    50
    11
    0
    I have used your script with a Norwegian Win XP Pro VL, and I get this error when I try to install the finished aio.iso. I noticed from the format menu, it creates 2 partition. One reserved by the system. Is this why I get this error? I tried this in virtualbox.
     

    Attached Files:

  11. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,461
    60
    #132 George King, Feb 7, 2021
    Last edited: Feb 7, 2021
    (OP)
    Hmm, this can be caused by not correctly removed 50MB partition before reboot. Can you confirm, when you boot into installer again 50MB partition is created here? Also have you used v1.4? I have added diskpart MUI patch to be sure all the time is output in English.

    EDIT: Also have you installed it on first partition?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. WindowsMyStyle

    WindowsMyStyle MDL Member

    May 2, 2018
    173
    67
    10
    however these Drivers work perfectly with the DriverPacks.net Tool
    I think it's just a compatibility problem with the Snappy tool (better to use only those from the drp.su site)

    and this:

    Code:
    REG ADD %ROE%\012 /ve /d %RBTTEXT% /f
    REM Enter OOBE
    if exist %WinDir%\system32\OOBE.cmd REG ADD %ROE%\012 /v "OOBE" /d "%WinDir%\System32\wscript.exe //nologo %WinDir%\system32\invisible.vbs %WinDir%\system32\OOBE.cmd" /f
    REG ADD %ROE%\012 /v "Reboot" /d "%WINDIR%\System32\shutdown.exe -r -f -t 0" /f
    
    
    REM Reboot on Active Setup
    rem REG ADD "HKLM\TEMPSOFTWARE\Microsoft\Active Setup\Installed Components\{FF0EE800-8CE9-475a-99BA-C59D509FAA0C}" /ve /t REG_SZ /d "%RBTTEXT%" /f
    rem REG ADD "HKLM\TEMPSOFTWARE\Microsoft\Active Setup\Installed Components\{FF0EE800-8CE9-475a-99BA-C59D509FAA0C}" /v "StubPath" /t REG_SZ /d "shutdown.exe -r -f -t 0" /f
    rem REG ADD "HKLM\TEMPSOFTWARE\Microsoft\Active Setup\Installed Components\{FF0EE800-8CE9-475a-99BA-C59D509FAA0C}" /v "Localized Name" /t REG_SZ /d "%RBTTEXT%" /f
    rem REG ADD "HKLM\TEMPSOFTWARE\Microsoft\Active Setup\Installed Components\{FF0EE800-8CE9-475a-99BA-C59D509FAA0C}" /v "IsInstalled" /t REG_DWORD /d "1" /f
     
  13. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,461
    60
    Yes thats the part where is added OOBE.cmd execution. Other parts are commented and inactive from testing
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Gyppie

    Gyppie MDL Junior Member

    Aug 16, 2009
    50
    11
    0
    This is installed in Virtualbox, therefore on first partition. I have mounted the windows xp.vhd, and you can see your script has created 2 partitions. And yes, I have used v1.4. I remember from v1.3.1, it create these 2 partitions also, but here the installation booted.
     

    Attached Files:

  15. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,461
    60
    How is possible setup created 500MB partition? Whats your Windows 10 version input? I have tested it on 20H2 v2.
    And yes, it cannot boot, because of this partition. Try to boot installer again and only delete 500MB partition, then reboot and XP should boot without problem.

    EDIT: setup.cmd is designed only for 50MB partition removal. It can be easy adapted, but we need to know why 500 instead of 50
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. WindowsMyStyle

    WindowsMyStyle MDL Member

    May 2, 2018
    173
    67
    10
    but the MassStorage drivers are all integrated with the SysPrep?
    there is no need to add drp.su MassStorage in the "Drivers" folder, right?
     
  17. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,461
    60
    Yes, all from latest nightly build from old driverpacks.net + some modded too. This needs revision as there can be another XP drivers in drp.su packs.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. jiafei2427

    jiafei2427 MDL Member

    Nov 26, 2020
    213
    58
    10
    #139 jiafei2427, Feb 8, 2021
    Last edited: Feb 8, 2021
    Why not support win7x86?
    Code:
    
    
       Started on 2021/02/08 周一 at 20:00:48.57
     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
    找不到 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/08 周一 at 21:01:55.34
     "F:\XP2ESD\install.wim" doesn't exist
    
     Crucial files missing, add them and try it again
    
     Press any key to exit...
    Code:
    VirtualBox COM Server 5.2.44 r139111 win.x86 (Jul  9 2020 19:11:48) release log
    00:00:00.000000 main     Log opened 2021-02-08T13:01:53.517266600Z
    00:00:00.000000 main     Build Type: release
    00:00:00.000000 main     OS Product: Windows 7
    00:00:00.000000 main     OS Release: 6.1.7601
    00:00:00.000000 main     OS Service Pack: 1
    00:00:00.218400 main     DMI Product Name: K40AB
    00:00:00.234000 main     DMI Product Version: 1.0
    00:00:00.234000 main     Host RAM: 3071MB (2.9GB) total, 2353MB (2.2GB) available
    00:00:00.234000 main     Executable: C:\Program Files\Oracle\VirtualBox\VBoxSVC.exe
    00:00:00.234000 main     Process ID: 1580
    00:00:00.234000 main     Package type: WINDOWS_32BITS_GENERIC
    00:00:00.234000          VirtualBox: object creation starts
    00:00:00.234000          Home directory: 'C:\Users\user\.VirtualBox'
    00:00:00.234000          Installed Drivers:
    00:00:00.249600            C:\Windows\system32\DRIVERS\VBoxDrv.sys (Version: 5.2.44.39111)
    00:00:00.249600            C:\Windows\system32\DRIVERS\VBoxUSBMon.sys (Version: 5.2.44.39111)
    00:00:00.265200            C:\Windows\system32\DRIVERS\VBoxNetAdp6.sys (Version: 5.2.44.39111)
    00:00:00.265200            C:\Windows\system32\DRIVERS\VBoxNetLwf.sys (Version: 5.2.44.39111)
    00:00:00.265200          Loading settings file "C:\Users\user\.VirtualBox\VirtualBox.xml" with version "1.12-windows"
    00:00:00.265200          usbLibGetDevices: Starting USB device enumeration
    00:00:00.265200          usbLibDevCfgDrGet: IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION #1 failed (dwErr=31) on hub USB#ROOT_HUB20#4&304b7ef4&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8} port 3
    00:00:00.280800          usbLibGetDevices: Found 2 USB devices, 0 captured
    00:00:00.421200          HostDnsMonitor::updateInfo
    00:00:00.421200          HostDnsMonitor: old information
    00:00:00.421200            no server entries
    00:00:00.421200            no domain set
    00:00:00.421200            no search string entries
    00:00:00.421200          HostDnsMonitor: new information
    00:00:00.421200            server 1: 211.141.16.99
    00:00:00.421200            server 2: 211.141.0.99
    00:00:00.421200            no domain set
    00:00:00.421200            no search string entries
    00:00:00.421200          VD: VDInit finished with VINF_SUCCESS
    00:00:00.421200          Loading settings file "F:\XP2ESD\auto-sysprep\VirtualBox\WindowsXPSyprep\WindowsXPSyprep.vbox" with version "1.15-windows"
    00:00:00.436800          VirtualBox: object created
    00:00:00.452400          Saving settings file "C:\Users\user\.VirtualBox\VirtualBox.xml" with version "1.12-windows"
    00:00:05.569202 main     VirtualBox: object deletion starts
    00:00:05.569202 Watcher  ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={9570b9d5-f1a1-448a-10c5-e12f5285adad} aComponent={VirtualBoxWrap} aText={The object is not ready}, preserve=false aResultDetail=0
    00:00:05.569202 main     VirtualBox: object deleted
    Yes,I see that
    It seems that I have to install win10x64 to support VirtualBox-6.1.18
     
  19. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,461
    60
    #140 George King, Feb 8, 2021
    Last edited: Feb 8, 2021
    (OP)
    There is typo. Should be Windows 7 and newer. What about option ASSIGNLETTER=X ? Have you set it correctly? Is it empty? You error logs seems like it is not set correctly. have you modified some other options like HDDLabel=WXPSysprep?

    EDIT: Fixed typo in first post
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...