Compilation error when add registry entries in non relative path

To enable the feature it is required to add the registry entries in INF file under “Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft”.

INF changes: HKLM,“SOFTWARE\Policies\Microsoft\abc-xxx-abc\abc-xxx-abc”,“key”,0x00010001,1

But unable to compile after adding above entries in INF file and getting below error.
Error 1304: Found Legacy AddReg operation using Non-Relative Key(HKLM\SOFTWARE\Policies\Microsoft)

Kindly do needful .
Thank you.

What policies are you changing? It is not the job of the driver writer to change the policies of the client computer. Perhaps you need to use a real installer, so you can get permission.

1 Like

Understood, Thank you