Win10XPE - Build Your Own Rescue Media [2]


  1. Posts : 4,661
    several
       #1791

    This is from w11 10.0.26002.1000
    Keys are always the same except for the full name of hdaudio.inf, for example in w11 22631.2861 will be hdaudio.inf_amd64_08092fb9bfbaed97
    I suppose you could also do

    set originalval=df4941523c56cf7b
    set newval=08092fb9bfbaed97
    "BIN\gsar" -b -o -s%originalval% -r%newval% "BIN\Keys in intall_wim.txt"

    **********************************************************************

    or the way I do it in my win7pe maker
    change it to a generic value first so the standard txt file says ??-?? instead of df4941523c56cf7b
    then it can be changed back to ??-?? ready for use with a different %newval% next time


    "BIN\gsar" -b -o -s%newval% -r%originalval% "BIN\Keys in intall_wim.txt"

    now it looks like this:
    [HKEY_LOCAL_MACHINE\TMP_Drivers\DriverDatabase\DriverPackages\hdaudio.inf_amd64_??-??\Configurations\HdAudModel\Services\swenum\Devices]

    [HKEY_LOCAL_MACHINE\TMP_Drivers\DriverDatabase\DriverPackages\hdaudio.inf_amd64_??-??\Configurations\HdAudModel\Services\swenum\Devices\{96E080C7-143C-11D1-B40F-00A0C9223196}]

    That is a template

    *****************************************************************************************
    then for future use you already know originalval is ??-??

    set originalval=??-??
    set newdval=08092fb9bfbaed97
    "BIN\gsar" -b -o -s%originalval% -r%newval% "BIN\Keys in intall_wim.txt"

    next merge the reg file or whatever it is you are doing

    finally change it back to originval ??-?? so it is ready for next use

    "BIN\gsar" -b -o -s%newval% -r%originalval% "BIN\Keys in intall_wim.txt"

    now it is back to this again
    [HKEY_LOCAL_MACHINE\TMP_Drivers\DriverDatabase\DriverPackages\hdaudio.inf_amd64_??-??\Configurations\HdAudModel\Services\swenum\Devices]

    [HKEY_LOCAL_MACHINE\TMP_Drivers\DriverDatabase\DriverPackages\hdaudio.inf_amd64_??-??\Configurations\HdAudModel\Services\swenum\Devices\{96E080C7-143C-11D1-B40F-00A0C9223196}]


    So just need to determine what the newval is for whatever build you use each time.

    EDIT: I have reworded it a bit .Does that make any sense?
    Last edited by SIW2; 28 Dec 2023 at 18:03.
      My Computer


  2. Posts : 31
    Win11 insider
       #1792

    SIW2 said:
    I suppose you could also do

    set originalval=df4941523c56cf7b
    set desiredval=08092fb9bfbaed97
    "BIN\gsar" -b -o -s%originalval% -r%desiredval% "BIN\Keys in intall_wim.txt"

    **********************************************************************

    or the way I do it in my win7pe maker
    change it to a generic value first so the standard txt file says ??-?? instead of df4941523c56cf7b
    then it can be changed back to ??-?? ready for use with a different %desiredval% next time

    set originalval=df4941523c56cf7b
    set desiredval=??-??
    "BIN\gsar" -b -o -s%originalval% -r%desiredval% "BIN\Keys in intall_wim.txt"

    now it looks like this:
    [HKEY_LOCAL_MACHINE\TMP_Drivers\DriverDatabase\DriverPackages\hdaudio.inf_amd64_??-??\Configurations\HdAudModel\Services\swenum\Devices]

    [HKEY_LOCAL_MACHINE\TMP_Drivers\DriverDatabase\DriverPackages\hdaudio.inf_amd64_??-??\Configurations\HdAudModel\Services\swenum\Devices\{96E080C7-143C-11D1-B40F-00A0C9223196}]

    *****************************************************************************************
    then for future use

    set originalval=??-??
    set desiredval=08092fb9bfbaed97
    "BIN\gsar" -b -o -s%originalval% -r%desiredval% "BIN\Keys in intall_wim.txt"

    next merge the reg file or whatever it is you are doing

    finally change it back to ??-?? so it is ready for next use

    set originalval=08092fb9bfbaed97
    set desiredval=??-??
    "BIN\gsar" -b -o -s%originalval% -r%desiredval% "BIN\Keys in intall_wim.txt"

    now it is back to this again
    [HKEY_LOCAL_MACHINE\TMP_Drivers\DriverDatabase\DriverPackages\hdaudio.inf_amd64_??-??\Configurations\HdAudModel\Services\swenum\Devices]

    [HKEY_LOCAL_MACHINE\TMP_Drivers\DriverDatabase\DriverPackages\hdaudio.inf_amd64_??-??\Configurations\HdAudModel\Services\swenum\Devices\{96E080C7-143C-11D1-B40F-00A0C9223196}]


    So just need to determine what the desiredval is for whatever build you use next time
    So I read a previous post that I've not reply. I'm editing MTP to support camera in all versions of win10/11 and this reg keys are the latest thing to make it work apart from a bunch of needed files and registry.

    About this approach seems nice but now I'm struggling "How I change Src_Drivers to Tmp_Drivers?
      My Computer


  3. Posts : 4,661
    several
       #1793

    I'm struggling "How I change Src_Drivers to Tmp_Drivers?
    "path_to_gsar.exe" -b -o -sSrc_Drivers -rTMP_Drivers "path_to_Keys in intall_wim.txt"

    run the using-gsar.cmd file somefolder.zip

    Win10XPE - Build Your Own Rescue Media [2]-using-gsaar.jpg

    I put them in the BIN folder

    Win10XPE - Build Your Own Rescue Media [2]-using-gsar2.jpg

    @echo off
    SET TP=%~dp0
    SET TP=%TP:~0,-1%
    cd /d "%TP%"
    color 6f
    mode con lines=40 cols=100
    set originalval=Src_Drivers
    set desiredval=TMP_Drivers
    "BIN\gsar" -b -o -s%originalval% -r%desiredval% "BIN\Keys in intall_wim.txt"
    echo press any key to read it in notepad
    pause
    notepad "BIN\Keys in intall_wim.txt"
    pause

    Win10XPE - Build Your Own Rescue Media [2]-using-gsar3.jpg

    Win10XPE - Build Your Own Rescue Media [2]-using-gsar4jpg.jpg
    Last edited by SIW2; 28 Dec 2023 at 19:12.
      My Computer


  4. Posts : 193
    windows 7 /10
       #1794

    fgaifen said:
    So camera support is almost done .....
    .....
    I'm editing MTP to support camera in all versions of win10/11 and this reg keys are the latest thing to make it work apart from a bunch of needed files and registry
    did you succeed with "video capture filter"
    every build i make have the same error "unable to create video capture filter"
    Win10XPE - Build Your Own Rescue Media [2]-c2.png
      My Computer


  5. Posts : 4,145
    Windows 3.1 to Windows 11
    Thread Starter
       #1795

    doudiii said:
    did you succeed with "video capture filter"
    Test this please >
    MediaTransferProtocol_XPE.Script
    Last edited by Kyhi; 29 Dec 2023 at 19:48.
      My Computer


  6. Posts : 31
    Win11 insider
       #1796

    Kyhi said:
    So I'm using win11 build 10.0.22621.1 as source.
    Tested yours and not working.
    Mine is about 95% done. I use 3 scripts and build a Basic Build: mtp, vcruntimes and other that I call "missing files" that contains files and registries for a few programs I use in pe to work. With these 3 scripts camera is working, without the missing files script is not so a few files still be needed and included in mtp script.
    I'll post the scripts here: fgaifen MTP
      My Computer


  7. Posts : 24
    Windows 11 x64
       #1797

    fgaifen said:
    So I'm using win11 build 10.0.22621.1 as source.
    Tested yours and not working.
    Mine is about 95% done. I use 3 scripts and build a Basic Build: mtp, vcruntimes and other that I call "missing files" that contains files and registries for a few programs I use in pe to work. With these 3 scripts camera is working, without the missing files script is not so a few files still be needed and included in mtp script.
    I'll post the scripts here: fgaifen MTP
    Thanks fgaifen for all the hard work, by the way, I still can't make it work with any version of Windows 11, I am still having issue with permission but I haven't tried it with an account yet. Are you using an admin account when you test it working or is the default build working for you?
      My Computer


  8. Posts : 31
    Win11 insider
       #1798

    digilizard said:
    Thanks fgaifen for all the hard work, by the way, I still can't make it work with any version of Windows 11, I am still having issue with permission but I haven't tried it with an account yet. Are you using an admin account when you test it working or is the default build working for you?
    I'm using default accont, explorer as shell , full winre and full win10 software hive.
    For camera test: epcap (32 bits) and webcamoid (64 bits).
    Can you try my scripts?
      My Computer


  9. Posts : 24
    Windows 11 x64
       #1799

    fgaifen said:
    I'm using default accont, explorer as shell , full winre and full win10 software hive.
    For camera test: epcap (32 bits) and webcamoid (64 bits).
    Can you try my scripts?
    Thanks fgaifen, yes finally, I confirm it works with Windows 11 22h2, but only if using full winre and full win10 software hive.
    I think it will also work with the latest 23h2 Windows 11. Tested using webcamoid 64.
      My Computer


  10. Posts : 31
    Win11 insider
       #1800

    digilizard said:
    Thanks fgaifen, yes finally, I confirm it works with Windows 11 22h2, but only if using full winre and full win10 software hive.
    I think it will also work with the latest 23h2 Windows 11. Tested using webcamoid 64.
    Thanks for testing.
    Now, I'll try to find what are the missing files and eliminate the use of my missing files script.
    About w11 23h2 i've not tested yet.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:13.
Find Us




Windows 10 Forums