WinXP 64-bit on a modern PC (ISO boot.wim + install.wim)

Discussion in 'Windows XP / Older OS' started by Gelip, Jun 30, 2024.

  1. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,468
    60
    #41 George King, Sep 18, 2024
    Last edited by a moderator: Oct 15, 2024
    Also to get these packs silently installed during T-13, you can repack it to EXE like this.

    1) Extract MSI
    msiexec /a 0415.msi /passive TARGETDIR=C:\0415

    2) Prepare 0415.txt
    [RegionalSettings]

    MUILanguage=0415
    MUILanguage_DefaultUser=0415
    UserLocale=0415
    SystemLocale=0415

    3) Prepare International.reg (Example from Italian)
    [HKEY_USERS\.DEFAULT\Control Panel\International]
    "iCountry"="39"
    "iCurrDigits"="2"
    "iCurrency"="2"
    "iDate"="1"
    "iDigits"="2"
    "iLZero"="1"
    "iMeasure"="0"
    "iNegCurr"="9"
    "iTime"="1"
    "iTLZero"="0"
    "Locale"="00000410"
    "s1159"=""
    "s2359"=""
    "sCountry"="Italia"
    "sCurrency"="€"
    "sDate"="/"
    "sDecimal"=","
    "sLanguage"="ITA"
    "sList"=";"
    "sLongDate"="dddd d MMMM yyyy"
    "sShortDate"="dd/MM/yyyy"
    "sThousand"="."
    "sTime"="."
    "sTimeFormat"="H.mm.ss"
    "iTimePrefix"="0"
    "sMonDecimalSep"=","
    "sMonThousandSep"="."
    "iNegNumber"="1"
    "sNativeDigits"="0123456789"
    "NumShape"="1"
    "iCalendarType"="1"
    "iFirstDayOfWeek"="0"
    "iFirstWeekOfYear"="2"
    "sGrouping"="3;0"
    "sMonGrouping"="3;0"
    "sPositiveSign"=""
    "sNegativeSign"="-"

    [HKEY_USERS\.DEFAULT\Control Panel\International\Geo]
    "Nation"="118"

    4) Prepare DefaultLanguage.cmd
    @echo off
    title Changing default language
    cls

    set "Language=0415"
    set "Locale=00000415"
    set "LCIDDEC=1045"
    set "SLLP=pl-PL"

    REM Change default language
    reg add "HKLM\SYSTEM\ControlSet001\Control\Nls\Language" /v "Default" /t REG_SZ /d "%Language%" /f
    reg add "HKLM\SYSTEM\ControlSet001\Control\Nls\Locale" /v "(Default)" /t REG_SZ /d "%Locale%" /f

    reg add "HKLM\SYSTEM\ControlSet001\Control\Nls\MUILanguages" /v "%Language%" /t REG_SZ /d "1" /f
    reg add "HKLM\SYSTEM\ControlSet001\Control\Nls\MUILanguages" /v "UIFontSubstitute" /t REG_DWORD /d "1" /f
    reg add "HKLM\SYSTEM\ControlSet001\Control\Nls\MUILanguages" /v "MatchSystemLocale" /t REG_DWORD /d "1" /f

    REM Set localized keyboard as default one and English as second
    reg add "HKU\.DEFAULT\Keyboard Layout\Preload" /v "1" /t REG_SZ /d "%Locale%" /f
    reg add "HKU\.DEFAULT\Keyboard Layout\Preload" /v "2" /t REG_SZ /d "00000409" /f

    reg add "HKCU\Control Panel\Desktop" /v "MultiUILanguageId" /t REG_SZ /d "%Locale%" /f
    reg add "HKCU\Control Panel\Desktop" /v "MUILanguagePending" /t REG_SZ /d "%Locale%" /f

    REM These keys are needed for WIM Language Info
    reg add "HKLM\SYSTEM\ControlSet001\Control\MUI\UILanguages\%SLLP%" /v "LCID" /t REG_DWORD /d "%LCIDDEC%" /f
    reg add "HKLM\SYSTEM\ControlSet001\Control\MUI\UILanguages\%SLLP%" /v "DefaultFallback" /t REG_SZ /d "en-US" /f
    reg add "HKLM\SYSTEM\ControlSet001\Control\MUI\UILanguages\%SLLP%" /v "en-US" /t REG_MULTI_SZ /d "" /f

    reg add "HKLM\SYSTEM\CurrentControlSet\Control\MUI\UILanguages\%SLLP%" /v "LCID" /t REG_DWORD /d "%LCIDDEC%" /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\MUI\UILanguages\%SLLP%" /v "DefaultFallback" /t REG_SZ /d "en-US" /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\MUI\UILanguages\%SLLP%" /v "en-US" /t REG_MULTI_SZ /d "" /f

    REM Optionaly delete secondary keyboard
    rem reg delete "HKU\.DEFAULT\Keyboard Layout\Preload" /v "2" /f

    goto :EOF

    5) Create WinRAR SFX RePack with this script
    TempMode
    Silent=1
    Overwrite=1
    Shortcut=0415.msi /passive /norestart
    Setup=rundll32.exe shell32,Control_RunDLL intl.cpl,,/f:"0415.txt"
    Setup=DefaultLanguage.cmd
    Setup=regedit /s International.reg
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    I just installed 0415.msi - unfortunately I don't like it because it is very poor MUI :negative: :thumbdown:
    mui.png
    I am not interested this MUI.
     
  3. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,468
    60
    Yes, original one is poor, feel free to improve it. Its “just needed to make every file export to MUI Logic” from localized XP or 2003 to make it better :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    No, thank you, I'm not interested - I like the original English WinXP 64-bit :smoking:
     
  5. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    #45 Gelip, Sep 18, 2024
    Last edited: Sep 29, 2024
    (OP)
    On one of my test machines I noticed an interesting thing. PC spec:
    • Asus B85M-E
    • CPU Intel 4-Gen with iGPU 4600
    • PCIe AMD 6450 + GOP inserted in motherboard UEFI firmware
    If set in bios main graphics PCIe - WinPE boot OK regardless of whether the Multi-monitor option Enabled or Disabled
    If set in bios main graphics iGPU - WinPE 3.1 stuck on animated Win7 flag (not fully loaded) but OS not crash and working because keyboard LED's CapsLock, ScrollLock and NumLock works and if blindly press 3 to go CMD and work:
    Code:
    wpeutil reboot
    To make the WinPE work on the iGPU card, I have to physically remove the AMD PCIe card from the PCIe slot.
     
  6. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
  7. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    I changed the name of the files.7z file to files_u7.7z
     
  8. stan456

    stan456 MDL Novice

    Jul 29, 2015
    33
    0
    0
    I'm stuck at the following part,

    "run script SFC_Disable.cmd which will load the registry hive from the vmdk file and disable SFC". Looking at the .cmd provided the reg it's trying to load is "HKLM\ddd" This looks like it should be modified? what is the whole path? If you attempt to run it as is it will just say
    ERROR: The system was unable to find the specified registry key or value.
    ERROR: The parameter is incorrect.
    ERROR: The parameter is incorrect.
     
  9. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    @stan456
    Before you start the script, you must to do:
    If the VMDK disk is mounted in read-only mode, you cannot load the registry hive !!!

    write_enable.png
    "ddd" is any temporary name of the loaded hive.
     
  10. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    I updated sysprep.inf in sysprep_pub.iso - now you do not need to edit the file manually and the appropriate settings - regional settings, name & organization, key, computer name, date, time & time zone are entered during the mini-setup ;) :rolleyes:
    1_welcome.png 2_license.png 3_installing_devices.png 4_regional_settings.png 5_name_organization.png 6_key.png 7_comp_name_admin_pass.png 8_date_time_zone.png

    New sysprep.inf:
    Code:
    [Unattended]
        ConfirmHardware=No
        DriverSigningPolicy=Ignore
        NonDriverSigningPolicy=Ignore
        UpdateInstalledDrivers=Yes
    
    [Identification]
        JoinWorkgroup=WORKGROUP
    
    [Networking]
        InstallDefaultComponents=Yes
    
    [SysprepMassStorage]
        PCI\CC_010601=%SYSTEMDRIVE%\Drivers\1_AHCI\genahci.inf
        PCI\CC_010802=%SYSTEMDRIVE%\Drivers\2_NVMe\stornvme.inf
        PCI\CC_0C0330=%SYSTEMDRIVE%\Drivers\3_USB3x\usbxhci.inf
        USB\ROOT_HUB30=%SYSTEMDRIVE%\Drivers\3_USB3x\usbhub3.inf
    
     
  11. stan456

    stan456 MDL Novice

    Jul 29, 2015
    33
    0
    0
    Yeah I have it in r/w mode still shows that error though.
     
  12. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    What host system do you use? Maybe you need to start the script as an Administrator?
    You can also manually load a hive and set the SFCDisable to ffffff9d
     
  13. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
  14. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    #54 Gelip, Oct 15, 2024
    Last edited: Oct 15, 2024
    (OP)
    News:
    • replaced files_u7.7z & files_fb.7z to files.7z (new link)
    • moved boot.ini from files.7z to sysprep.iso and from startnet.cmd to go.cmd
    • deleted make label EFI for 100MB FAT32 partition
    • deleted search A & B letters to prevent display this WARNING if FDD controller present in UEFI PC:
      if_FDD_controller.png
    • cosmetic changes in go.cmd script
      go.png
    • I edited the first post to make it more readable
     
  15. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    #55 Gelip, Oct 16, 2024
    Last edited: Oct 18, 2024
    (OP)
    I added a function changing the letter USB drive - updated files.7z:
    Code:
    ...
    echo:
    echo Searching CD\DVD\USB drive letter
    for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist "%%i:\sources\*.wim" set drive=%%i:
    echo:
    echo I found %drive% letter
    
    if "%drive%" equ "C:" (
    goto :rep
    ) else (
    goto :menu
    )
    
    :rep
    echo:
    echo Replacing USB stick letter C: to Z:
    mountvol %drive% /d
    bootice /diskinfo /list: /usbonly /file=info.log
    for /f "skip=1 tokens=2 delims= " %%a in ('type info.log') do set drv=%%a
    set drv=%drv:~,1%
    bootice /device=%drv% /partitions /assign_letter=z
    set drive=Z:
    echo:
    echo Now drive letter is %drive%
    
    :menu
    ...
    
     
  16. xp_guy

    xp_guy MDL Novice

    Oct 22, 2024
    12
    1
    0
    Hi! I'm trying to install WinXP UEFI on Asus Pro A620M-C CSM motherboard and AMD Ryzen 7 7700X processor machine. I did your instructions step-by-step but when I install XP from USB, in second phase, it stucks at 'Starting WinXP 64-bit on UEFI mode (winload.efi)' aurora screen but HDD light blinks. I think there is a VGA/GOP problem. How can I solve this?
     
  17. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
  18. xp_guy

    xp_guy MDL Novice

    Oct 22, 2024
    12
    1
    0
  19. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    399
    256
    10
    @xp_guy
    Caps Lock, Num Lock works?
     
  20. xp_guy

    xp_guy MDL Novice

    Oct 22, 2024
    12
    1
    0
    Yes, everything works except video. Even blindly reboot (buggy), shutdown etc. works. Only video doesn't work. And also, Windows generates ntbtlog.txt , so it installed drivers successfully except video driver.