本文介绍了应用程序在win10的不同位置创建注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

在我们的c#应用程序中,我们使用Registry.LocalMachine创建了注册表,并且它创建了注册表(对于32位Pc)HKEY_LOCAL_MACHINE \ SOFTWARE \ VMS地点。它适用于XP / Win7。但是对于Win10,它在不同的位置创建了注册表

HKEY_USERS \S-1-5-21-1562210660-278341176-3609463930-1001 \Software \Classes \ VirtualStore \ MACHINE \ SOFTWARE \ Myrosoft \ VMS



如果有任何解决方案,请告知我们,以便我们的应用程序在HKEY_LOCAL_MACHINE \ SOFTWARE \ VMS创建注册表即使win10

我们也看到许多应用程序(如mozila)在HKEY_LOCAL_MACHINE \ SOFTWARE \\下创建注册表即使win10。



我尝试过:



为此,我们尝试了这两种解决方案

1我们设置了跟踪栏从不通过控制面板通知用户帐户和控制设置

2.使用注册表编辑器禁用UAC(RegEdit)

运行注册表编辑器(RegEdit)并导航到以下注册表项:

HKEY_LOCAL_MACHINE \Software \ Microsoft \ Windows \ CurrentVersion \策略\System

找到以下REG_DWORD值:

EnableLUA

将EnableLUA的值设置为0.

hello,
In our c# application, we have created registry by using "Registry.LocalMachine", And it created registry at (for 32 bit Pc) "HKEY_LOCAL_MACHINE\SOFTWARE\VMS" location. It works fine with XP/Win7. But for Win10, it creates the registry at different location
"HKEY_USERS\S-1-5-21-1562210660-278341176-3609463930-1001\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Microsoft\VMS"

Please let me know, if any solution for this so our application create registry at"HKEY_LOCAL_MACHINE\SOFTWARE\VMS" even if with win10
Also we have seen many applications(like mozila) creates registry under HKEY_LOCAL_MACHINE\SOFTWARE\ even if win10.

What I have tried:

For this we have tried these 2 solutions
1 we have set track bar to never notify of "User account and control setting" from control panel
2. Disable UAC with Registry Editor (RegEdit)
Run Registry Editor (RegEdit) and navigate to the following registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
Locate the following REG_DWORD value:
EnableLUA
Set the value of EnableLUA to 0.

推荐答案



这篇关于应用程序在win10的不同位置创建注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 19:25