UAC虚拟化 [英] UAC Virtualization

查看:426
本文介绍了UAC虚拟化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难掌握UAC.

我编写了一个简单的install.exe程序,该程序将应用程序复制到C:\ Program Files \ Test,并将应用程序的数据文件复制到c:\ ProgramData \ Test.这似乎很好.但是,当我尝试运行应用程序时,它将虚拟化C:\ ProgramData \ Test.

I wrote a simple install.exe program that copies the application to C:\Program Files\Test and the application's data files to c:\ProgramData\Test.  That seemed to work fine.  However, when I try to run my application, it virtualizes C:\ProgramData\Test.

我认为所有用户都具有对C:\ ProgramData的完全访问权限(或我具有权限?),因此不应进行虚拟化.

I thought that all users had full access rights (or do I permissions?) to C:\ProgramData so virtualization should not happen.

如果我想使用安装程序来避免虚拟化,该怎么办?我尝试阅读"Windows Vista应用程序开发要求用户帐户控制兼容性".但这是a)难以阅读且b)无法解决此问题.

If I want to use an install program to avoid virtualization, what should I do?  I have tried reading the "Windows Vista Application Development Requirements for User Account Control Compatibility" but it is a) hard to read and b) does not address this problem.

我要安装,以便所有用户都可以访问相同的数据.

I want to install so that all users can access the same data.

任何帮助将不胜感激.

推荐答案

您的安装程序需要在c:\ ProgramData \ Test上设置适当的ACL,以允许所有用户写在那里.通常,这是向用户"组分配修改(读/写)"权限的情况.
Your installer needs to set appropriate ACLs on c:\ProgramData\Test to allow all users to write there. Usually this is a case of assigning the Users group Modify (Read/Write) permissions.


这篇关于UAC虚拟化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆