FOS registry manipulation
Re: [The magical](mystical FOG post download script)
Can someone explain this bit of code?
regfile="/ntfs/Windows/System32/config/SOFTWARE" key="\Microsoft\Windows\CurrentVersion\DevicePath" devpath="%SystemRoot%\inf;%SystemRoot%\DRV"; reged -e "$regfile" &>/dev/null <<EOFREG ed $key $devpath q y EOFREG
is this an actual registry file that must exist to be imported?
if so what must it contain?
I have looked for this key in regedit and cannot find it…
@Greg-Plamondon Well that bit of code is held over from the WinXP days and worked in Win7. It no longer works in Win10.
I’ve left that in the code because it shows you how you can poke things into the windows registry from linux (which should not normally be possible).
If you are working on drivers and importing them look at this tutorial. The short read is that you need to use the pnputil.exe command in your setupcomplete.cmd file to load the hardware specific drivers during winsetup. https://forums.fogproject.org/topic/11126/using-fog-postinstall-scripts-for-windows-driver-injection-2017-ed?_=1596483356960