Writing to registry in a C# application

前端 未结 5 1014
离开以前
离开以前 2020-12-04 14:17

I\'m trying to write to the registry using my C# app.

I\'m using the answer given here: Writing values to the registry with C#

However for some reason the ke

5条回答
  •  不思量自难忘°
    2020-12-04 15:08

    Also check if your registry calls are getting virtualised. See here for more information.

    It can happen if your application is not UAC aware and occurs for compatibility reasons.

    Real path
    HKEY_LOCAL_MACHINE\Software\FooKey
    
    Virtual path
    HKEY_USERS\_Classes\VirtualStore\Machine\Software\FooKey
    

提交回复
热议问题