[Answered] Implementing DirectX 9.0C into the Image: Can it be done?

Discussion in 'Windows 11' started by RobertX, Oct 20, 2025.

  1. RobertX

    RobertX MDL Senior Member

    Dec 6, 2014
    331
    38
    10
    I am trying to place DirectX 9.0C into my Windows ISO, so I don't have to keep installing it every time I wipe with Windows.

    Can it be done?
     
  2. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,863
    3,133
    120
    Yes ask chatgpt to install directx9 full setup with setupcomplete.cmd you need to edit iso
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. RobertX

    RobertX MDL Senior Member

    Dec 6, 2014
    331
    38
    10
    Done.

    Thanks, @pm67310 ! That was spot-on advice!
     
  4. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    8,044
    10,273
    270
    Please, don't recommend AI slop here. I'm pretty sure we can think for ourselves. If you know a solution, point to it or post it here.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. RobertX

    RobertX MDL Senior Member

    Dec 6, 2014
    331
    38
    10
    Is there a way to verify if DirectX 9.0c specifically has been installed?

    I'm not talking about dxdiag because it won't tell me.

    I want to run some old games and frontends like RetroArch that need it.
     
  6. TairikuOkami

    TairikuOkami MDL Expert

    Mar 15, 2014
    1,330
    1,240
    60
  7. RobertX

    RobertX MDL Senior Member

    Dec 6, 2014
    331
    38
    10
    Hey @TairikuOkami , how are you doing?

    If you can do it earlier than me, do thank garlin in NTLite and tell him I love him and nuhi..

    Only when you can beat me to it.
     
  8. shhnedo

    shhnedo MDL Guru

    Mar 20, 2011
    2,081
    2,836
    90
    #8 shhnedo, Oct 21, 2025
    Last edited: Oct 21, 2025
    Here's part of my setupcomplete.cmd:
    Code:
    rem Runtimes installtion
    START "" /WAIT "%SystemRoot%\Setup\Runtimes\directx.exe" /ai /gm2
    START "" /WAIT "%SystemRoot%\Setup\Runtimes\visualc.exe" /ai /gm2
    START "" /WAIT "%SystemRoot%\Setup\Runtimes\openal.exe" /S
    Second* row is what you're interested in. I use abbodi's directx repack(directx.exe). Now all you have to do is create an $OEM$\$$\Setup\Scripts folder for setupcomplete.cmd and $OEM$\$$\Setup\Runtimes for the directx.exe, this is all inside iso\sources\.

    Here's the entire script:
    Code:
    @ECHO OFF
    PushD "%~dp0"
    
    rem Hibernation OFF
    powercfg -h off
    
    rem Desktop Icons: 0 = Show Icon / 1 = Hide Icon
    rem User's Files
    Reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /t REG_DWORD /d 0 /f >nul
    
    rem This PC/My Computer
    Reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f >nul
    
    rem Recycle Bin (usually shown by default)
    Reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{645FF040-5081-101B-9F08-00AA002F954E}" /t REG_DWORD /d 0 /f >nul
    
    rem Control Panel
    Reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}" /t REG_DWORD /d 0 /f >nul
    
    rem Network
    Reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /t REG_DWORD /d 1 /f >nul
    
    rem Runtimes installtion
    START "" /WAIT "%SystemRoot%\Setup\Runtimes\directx.exe" /ai /gm2
    START "" /WAIT "%SystemRoot%\Setup\Runtimes\visualc.exe" /ai /gm2
    START "" /WAIT "%SystemRoot%\Setup\Runtimes\openal.exe" /S
    
    rem SetupComplete CleanUp
    Reg Add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\SetupComplete-CleanUp" /ve /t REG_SZ /d "SetupComplete CleanUp" /f 1>NUL
    Reg Add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\SetupComplete-CleanUp" /v "1" /t REG_SZ /d "CMD /c RmDir /s /q \"%SystemRoot%\Setup\Runtimes\"" /f 1>NUL
    Reg Add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\SetupComplete-CleanUp" /v "2" /t REG_SZ /d "CMD /c RmDir /s /q \"%SystemRoot%\Setup\Scripts\"" /f 1>NUL
    
    EXIT
    
     
  9. RobertX

    RobertX MDL Senior Member

    Dec 6, 2014
    331
    38
    10
    Thanks.