不能写在Program Files文件应用程序目录 [英] Can't write to application directory in Program Files

查看:256
本文介绍了不能写在Program Files文件应用程序目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要写信给它下的程序文件安装在应用程序目录中的一些文件。我知道,在Vista和Windows 7中启用UAC,用户不能在此目录中修改文件。但是,我知道,在Vista中加入UAC虚拟化基本上重定向写入的 virtualstore目录。在Vista中,这一伟大工程,我的文件实际上写的是这个virtualstore目录。但是,在Windows 7我收到拒绝访问错误,我不将文件写入到这个目录的。是什么给了?

I need to write to some files in the application directory which is installed under Program Files. I know that with UAC enabled on Vista and Windows 7, users can't modify files in this directory. However, I'm aware of the UAC Virtualization that was added in Vista which basically redirects writes to the virtualstore directory . In Vista this works great and my files are actually written to this virtualstore directory. However, on Windows 7 I am getting access denied errors and my files are not written to this directory at all. What gives?

推荐答案

它是完全一样的二进制或为它重新编译(Win7的下)?

Is it the exact same binary or was it re-compiled (under Win7)?

如果您的应用程序的清单表明它是Vista的感知比Vista也将给出一个错误。

If your app's manifest indicates that it is Vista-aware than Vista would also give an error.

这篇关于不能写在Program Files文件应用程序目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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