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

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

  1. UsefulAGKHelper

    UsefulAGKHelper MDL Senior Member

    Aug 28, 2021
    384
    237
    10
    @George King I finally understood why BootPartition doesn't work, on setup.cmd you forgot to replicate the same BCD codes (for legacy and UEFI) on U:\ partition (when bootpartition is enabled). The code from legacy BCD is only replicated on UEFI with bootpartition set to no.
    That's why it doesn't work when I tried to boot on XP with this option enabled on settings.ini, because the BCD is unaltered.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. UsefulAGKHelper

    UsefulAGKHelper MDL Senior Member

    Aug 28, 2021
    384
    237
    10
    #2082 UsefulAGKHelper, Nov 2, 2022
    Last edited: Nov 2, 2022
    The fix for BootPartition, this code should work. If not, then It can always be improvised to fix more problems.
    I decided to also include the codes between my edits so you can see more clearly where to put the code.
    REM Winload option - updated to support BootPartition
    if exist "%TARGET%\Windows\system32\winload.exe" (
    bcdedit /store "%TARGET%\boot\bcd" /set {default} description "%Version%" >nul
    bcdedit /store "%TARGET%\boot\bcd" /set {default} device partition=%TARGET% >nul
    bcdedit /store "%TARGET%\boot\bcd" /set {default} path \windows\system32\winload.exe >nul
    bcdedit /store "%TARGET%\boot\bcd" /set {default} osdevice partition=%TARGET% >nul
    bcdedit /store "%TARGET%\boot\bcd" /set {default} systemroot \Windows >nul
    rem if "%ModernBoot%" == "Yes" (
    rem bcdedit /store "%TARGET%\boot\bcd" /set {default} detecthal no >nul
    rem ) else (
    rem bcdedit /store "%TARGET%\boot\bcd" /set {default} detecthal yes >nul
    rem )
    REM Disable detect hal feature - TEST
    rem bcdedit /store "%TARGET%\boot\bcd" /set {default} detecthal no >nul
    rem bcdedit /store "%TARGET%\boot\bcd" /set {default} pae default >nul
    rem bcdedit /store "%TARGET%\boot\bcd" /set {default} ems off >nul

    bcdedit /store "%TARGET%\boot\bcd" /deletevalue {default} winpe >nul
    bcdedit /store "%TARGET%\boot\bcd" /deletevalue {default} ems >nul
    bcdedit /store "%TARGET%\boot\bcd" /deletevalue {default} pae >nul
    bcdedit /store "%TARGET%\boot\bcd" /deletevalue {default} detecthal >nul

    rem bcdedit /store "%TARGET%\boot\bcd" /set {default} winpe yes >nul

    bcdedit /store "%TARGET%\boot\bcd" /set {default} nointegritychecks yes >nul
    bcdedit /store "%TARGET%\boot\bcd" /set {default} quietboot on >nul
    rem bcdedit /store "%TARGET%\boot\bcd" /set {default} integrityservices disable >nul
    rem bcdedit /store "%TARGET%\boot\bcd" /set {default} TESTSIGNING ON >nul

    rem bcdedit /store "%TARGET%\boot\bcd" /set {default} loadoptions DDISABLE_INTEGRITY_CHECKS >nul
    rem bcdedit /store "%TARGET%\boot\bcd" /set {default} loadoptions DISABLE_INTEGRITY_CHECKS >nul

    REM Settings for x64 boot? - TEST
    rem bcdedit /store "%TARGET%\boot\bcd" /set {default} DisableBootDisplay True >nul
    if /i "%BootPartition%" == "Yes" (
    if /i "%UEFI%" == "0" (
    if /i "%ModernUEFIBoot%" == "0" (
    if "U:\boot" not exist ( md "U:\boot" )
    if "U:\boot\bcd" not exist ( copy /y "%TARGET%\boot\bcd" "U:\boot\bcd" )
    bcdedit /store "U:\boot\bcd" /set {default} description "%Version%" >nul
    bcdedit /store "U:\boot\bcd" /set {default} device partition=%TARGET% >nul
    bcdedit /store "U:\boot\bcd" /set {default} path \windows\system32\winload.exe >nul
    bcdedit /store "U:\boot\bcd" /set {default} osdevice partition=%TARGET% >nul
    bcdedit /store "U:\boot\bcd" /set {default} systemroot \Windows >nul

    bcdedit /store "U:\boot\bcd" /deletevalue {default} winpe >nul
    bcdedit /store "U:\boot\bcd" /deletevalue {default} ems >nul
    bcdedit /store "U:\boot\bcd" /deletevalue {default} pae >nul
    bcdedit /store "U:\boot\bcd" /deletevalue {default} detecthal >nul

    bcdedit /store "U:\boot\bcd" /set {default} nointegritychecks yes >nul
    bcdedit /store "U:\boot\bcd" /set {default} integrityservices disable >nul
    bcdedit /store "U:\boot\bcd" /set {default} loadoptions DISABLE_INTEGRITY_CHECKS >nul

    bcdedit /store "U:\boot\bcd" /set {default} quietboot on >nul
    )
    ) else (
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} path \windows\system32\winload.efi >nul
    rem bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} novesa on >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} quietboot on >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} bootlog yes >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} bootstatuspolicy IgnoreAllFailures >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} nx OptIn >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} device partition=%TARGET% >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} osdevice partition=%TARGET% >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} systemroot \Windows >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} nointegritychecks yes >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} description "%Version%" >nul

    REM Enable debugging
    rem bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} debug on >nul
    rem bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} debugtype 1394 >nul
    rem bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} channel 10 >nul

    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /deletevalue {default} winpe >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /deletevalue {default} ems >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /deletevalue {default} pae >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /deletevalue {default} detecthal >nul

    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {bootmgr} path \efi\microsoft\boot\bootmgfw.efi >nul
    bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {bootmgr} device partition=U: >nul
    )
    )
    ) else (
    bcdedit /store "%TARGET%\boot\bcd" /delete {default} >nul
    )


    REM NTLDR option
    if exist "%TARGET%\Windows\system32\winload.exe" (
    bcdedit /store "%TARGET%\boot\bcd" /create {ntldr} /d "%Version% Legacy" >nul
    ) else (
    bcdedit /store "%TARGET%\boot\bcd" /create {ntldr} /d "%Version%" >nul
    )


    REM UEFI boot support
    rem if exist "%DRIVE%\sources\$OEM$\$$\system32\winload.efi" (

    REM Recreate partition for UEFI boot

    REM echo select disk %DID% > %DiskPartScript%
    REM echo create partition primary >> %DiskPartScript%
    REM echo active >> %DiskPartScript%
    REM echo format fs=fat32 quick >> %DiskPartScript%
    REM echo asign letter=U >> %DiskPartScript%
    REM "%WinDir%\System32\diskpart.exe" /s "%DiskPartScript%" >nul
    REM del /q /s %DiskPartScript% >nul


    REM md "U:\EFI\Boot"

    REM if exist "%TARGET%\Windows\SysWow64" (
    REM copy "%SystemDrive%\Windows\Boot\EFI\bootmgfw.efi" "U:\EFI\Boot\bootx64.efi"
    REM ) else (
    REM copy "%SystemDrive%\Windows\Boot\EFI\bootmgfw.efi" "U:\EFI\Boot\bootia32.efi"
    REM )

    REM md U:\EFI\Microsoft\Boot\Fonts
    REM xcopy "%DRIVE%\boot\fonts\*" "U:\boot\fonts\" /s /i /y

    REM copy /y "%TARGET%\boot\bcd" "U:\EFI\Microsoft\Boot\BCD"

    REM bcdedit /store "U:\EFI\Microsoft\Boot\BCD" /set {default} path \windows\system32\winload.efi

    rem )





    REM Disable integrity checks and allow unsigned drivers setup
    rem bcdedit /store "%TARGET%\boot\bcd" /set {bootmgr} loadoptions DDISABLE_INTEGRITY_CHECKS >nul
    rem bcdedit /store "%TARGET%\boot\bcd" /set {bootmgr} loadoptions DISABLE_INTEGRITY_CHECKS >nul

    rem bcdedit /store "%TARGET%\boot\bcd" /set {bootmgr} integrityservices disable >nul

    bcdedit /store "%TARGET%\boot\bcd" /set {bootmgr} nointegritychecks yes >nul
    rem bcdedit /store "%TARGET%\boot\bcd" /set {bootmgr} TESTSIGNING ON >nul

    bcdedit /store "%TARGET%\boot\bcd" /set {ntldr} device partition=%TARGET% >nul
    rem bcdedit /store "%TARGET%\boot\bcd" /set {ntldr} device boot >nul
    bcdedit /store "%TARGET%\boot\bcd" /set {ntldr} path \ntldr >nul
    bcdedit /store "%TARGET%\boot\bcd" /displayorder {ntldr} /addlast >nul



    bcdedit /store "%TARGET%\boot\bcd" /timeout 5 >nul

    if /i "%BootPartition%" == "Yes" (

    if exist "%TARGET%\Windows\system32\winload.exe" (
    bcdedit /store "U:\boot\bcd" /create {ntldr} /d "%Version% Legacy" >nul
    ) else (
    bcdedit /store "U:\boot\bcd" /create {ntldr} /d "%Version%" >nul
    )
    bcdedit /store "U:\boot\bcd" /set {bootmgr} nointegritychecks yes >nul
    bcdedit /store "U:\boot\bcd" /set {ntldr} device partition=U: >nul
    bcdedit /store "U:\boot\bcd" /set {ntldr} path \ntldr >nul
    bcdedit /store "U:\boot\bcd" /displayorder {ntldr} /addlast >nul
    bcdedit /store "U:\boot\bcd" /timeout 5 >nul

    )
    EDIT: Don't use this code yet! This is incomplete, let me test further just in case!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. vigipirate

    vigipirate MDL Senior Member

    Feb 24, 2011
    397
    98
    10
    hello Thank you to George king for this construction of Windows XP XP2ESD but the Windows XP is no longer supporting by Microsoft of software installation problems notably anti virus n 'is more supporter Windows XP internet browser becomes obscelete for me in 2022 Operate correctly which intention to install it
     
  4. UsefulAGKHelper

    UsefulAGKHelper MDL Senior Member

    Aug 28, 2021
    384
    237
    10
    #2084 UsefulAGKHelper, Nov 4, 2022
    Last edited: Nov 4, 2022
    @George King Using the compiled version (ntoskrn8.sys) from the latest revision from your kernel extender fork, there are no missing dependencies for the IALPSS_I2C_CNL.sys driver.
    The security_cookie value is changed for the IALPSS_I2C_CNL.sys file, so I hope this backported driver works this time.
    On newer OS, if used ntoskrn8.sys (the one compiled for windows 7 x64), it should allow the mouse driver to show so you can install the Generic Backported Touchpad driver on windows 7 x64.
    For testing purposes, if the backported driver works properly on Windows 7 x64, then it should also work properly on Windows XP x64.
    I only made the x64 version so far. I don't have the 32-bit version of the original driver yet.
    EDIT: I tried to use the touchpad driver on Windows 8.1 but it didn't work because I forgot to do the security_cookie change on the first try. Now with the security_cookie altered, it should work for real.
    Of course, driver signature enforcement needs to be disabled.
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Gyppie

    Gyppie MDL Junior Member

    Aug 16, 2009
    50
    11
    0
    @George King Is it possible to get Office 2010 to auto install on Win XP x64? I get an error that office 2010 is not compatible becasue it needs SP3. But I know there is a workaround to get it manually installed.

    And will it be possible in the future to have language packs of Win XP MCE to be installed during sysprep so we can have fully localized versions of MCE?
     
  6. MilkChan

    MilkChan MDL Senior Member

    Mar 8, 2020
    430
    236
    10
    @George King I got the files on the web that you want but it doesn't seem to have Windows 8 build 7800 ISO.
    I have sent you a private message.
     
  7. MilkChan

    MilkChan MDL Senior Member

    Mar 8, 2020
    430
    236
    10
    Someone is asking me a Windows 8 7800 ISO. thanks asdddsa101
     
  8. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    577
    268
    30
    question... after compiling with XP2ESD V1.6.2 the x64 has OOBE but there is an obligation to place the serial, any way to skip it?
     
  9. UsefulAGKHelper

    UsefulAGKHelper MDL Senior Member

    Aug 28, 2021
    384
    237
    10
    #2089 UsefulAGKHelper, Nov 6, 2022
    Last edited: Nov 6, 2022
    @George King I know how to use Photoshop so I think it's easy to create custom-colored luna themes for XP2ESD by changing the hue using Hue/Saturation tool (the hue is set to 110). Btw, this image is not mine, I just changed the Hue in Photoshop to show you how the Pink Fucshia Luna theme color scheme should resemble.
    By changing the hue, you change the color but you don't change the saturation and brightness, thus it looks like a different-color counterpart of the original color.
    Resource hacker can be used to open luna the .msstyles file to extract and/or replace theme images and resources etc (of course for every colored theme, the folder needs to be replicated to avoid editing the original theme).
    Since I have done this on an entire image, the only coloring on Luna that needs to be replaced is the blue/royale tint, the rest should be unaffected.
    By creating custom-colored versions of the windows luna theme, windows aero's multi-coloring feature might not be needed at all.
    upload_2022-11-6_18-55-33.png
    I am announcing this idea to you because I may try to do this myself.
    If I get this done, then I will try to give links for these custom-colored themes.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. UsefulAGKHelper

    UsefulAGKHelper MDL Senior Member

    Aug 28, 2021
    384
    237
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150

    Sure, mine was not a direct reply to your message, you just triggered something I forgot to mention. That's all


    Never played with XP themes, but I think it's straightforward if you have the right tool to multiple images (Paint shop pro had this feature even in win 95 days).

    It was done, for example in WMC port, which has a Green alternative theme in addition to the Blue one, they are exactly the same theme minus the hue (and maybe some contrast/lightness) which was changed.
     
  12. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,454
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. UsefulAGKHelper

    UsefulAGKHelper MDL Senior Member

    Aug 28, 2021
    384
    237
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. case-sensitive

    case-sensitive MDL Expert

    Nov 7, 2013
    1,681
    738
    60
    @ Well ment advice ---- >

    The important thing should be to get a working product .......... and stop getting side lined with things like the colours of things and mouse videos ? ........... That can all be done when the product works .
     
  15. UsefulAGKHelper

    UsefulAGKHelper MDL Senior Member

    Aug 28, 2021
    384
    237
    10
    Actually, the customization can be added at any time especially to fix GUI bugs, etc, not after the product is done, just so you know.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. case-sensitive

    case-sensitive MDL Expert

    Nov 7, 2013
    1,681
    738
    60
    #2098 case-sensitive, Nov 8, 2022
    Last edited: Nov 8, 2022
    >the customization can be added at any time especially to fix GUI bugs

    Thats what i said = It doesn have to slow down the project now .
     
  17. George King

    George King MDL Expert

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

    MilkChan MDL Senior Member

    Mar 8, 2020
    430
    236
    10