none
INF Directive no longer works under Windows 10 Anniversary Update. RRS feed

  • Question

  • Prior to the Windows 10 Anniversary Update I could add a directive like the following to the INF file and Windows would add the key to its registry. This no longer works.

    <pre>
    [Fusion_Install.NT.HW]
    AddReg=Orientation_AddReg
    
    [Orientation_AddReg]
    HKLM,"SYSTEM\Currentcontrolset\Enum\ROOT\SENSOR\0000\Device Parameters\kxfusion","Orientation",0x00000001,0x01,0x00,0x00,0x01,0x01,0x00,0x02
    </pre>

    What would be the right way to achieve the same result under Windows 10 Anniversary Update.?

    Would appreciate if you could point me in the right direction.





    Friday, December 2, 2016 3:33 AM

Answers

  • HKR
    Relative root, in which keys that are specified by using this abbreviation are relative to the registry key associated with the INF section in which this AddReg directive appears.

    Relative root works perfectly.


    • Edited by nouriassafi Wednesday, December 21, 2016 7:29 AM
    • Proposed as answer by Pavel A Wednesday, December 21, 2016 10:36 AM
    • Unproposed as answer by Pavel A Wednesday, December 21, 2016 10:37 AM
    • Marked as answer by Doron Holan [MSFT] Wednesday, December 21, 2016 4:56 PM
    Wednesday, December 21, 2016 7:29 AM
  • HKR is what you should have used from the start. you should never be fully referencing the device instance path in an INF.

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, December 21, 2016 4:56 PM

All replies

  • HKR
    Relative root, in which keys that are specified by using this abbreviation are relative to the registry key associated with the INF section in which this AddReg directive appears.

    Relative root works perfectly.


    • Edited by nouriassafi Wednesday, December 21, 2016 7:29 AM
    • Proposed as answer by Pavel A Wednesday, December 21, 2016 10:36 AM
    • Unproposed as answer by Pavel A Wednesday, December 21, 2016 10:37 AM
    • Marked as answer by Doron Holan [MSFT] Wednesday, December 21, 2016 4:56 PM
    Wednesday, December 21, 2016 7:29 AM
  • HKR is what you should have used from the start. you should never be fully referencing the device instance path in an INF.

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, December 21, 2016 4:56 PM