New
#1791
I suppose you could also doThis 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
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.