gpt4 book ai didi

uac - 强制现有应用程序始终使用 UAC 虚拟化运行

转载 作者:行者123 更新时间:2023-12-04 10:28:35 26 4
gpt4 key购买 nike

我见过几个与此相反的问题; “如何禁用虚拟化?”那不是我的问题。我想强制应用程序运行虚拟化 启用 .

我有一个在 Windows XP 下运行良好的应用程序,但是,因为它将其配置写入其工作目录(“C:\Program Files (x86)”的子文件夹),它在 Windows 7 下不能完全运行。如果我使用任务管理器打开 UAC 虚拟化,它可以很好地保存其配置,但当然它无法加载该配置。

我不想将它设置为以管理员身份运行,因为它不需要这些权限。我想将它设置为在启用 UAC 虚拟化的情况下运行。

found a suggestion我在注册表中添加了一些魔法 HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags .为了完整起见,我也把它放在 Wow6432Node ,但两者都没有任何影响。

最佳答案

文件系统在某些场景下是虚拟化的,那么您的问题是当您的应用程序不符合条件时如何仍然打开它?不太可能,MSDN :

Virtualization is not in option in the following scenarios:

  • Virtualization does not apply to applications that are elevated and run with a full administrative access token.

  • Virtualization supports only 32-bit applications. Non-elevated 64-bit applications simply receive an access denied message when they attempt to acquire a handle (a unique identifier) to a Windows object. Native Windows 64-bit applications are required to be compatible with UAC and to write data into the correct locations.

  • Virtualization is disabled for an application if the application includes an application manifest with a requested execution level attribute.

关于uac - 强制现有应用程序始终使用 UAC 虚拟化运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8852967/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com