• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    FOS registry manipulation

    Scheduled Pinned Locked Moved
    Tutorials
    2
    2
    409
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Greg PlamondonG
      Greg Plamondon Testers
      last edited by Greg Plamondon

      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
      
      regfile="/ntfs/Windows/System32/config/SOFTWARE"
      

      is this an actual registry file that must exist to be imported?
      if so what must it contain?

      key="\Microsoft\Windows\CurrentVersion\DevicePath"
      

      I have looked for this key in regedit and cannot find it…

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @Greg Plamondon
        last edited by

        @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

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        213

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project