VS2008安装项目并获取Win7目录权限设置。 [英] VS2008 Setup project and getting Win7 directory permissions set.

查看:133
本文介绍了VS2008安装项目并获取Win7目录权限设置。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VS2008安装项目,在Win7 Home Premium 64bit上安装时可以正常运行。我们指定该应用程序可供所有用户使用。当同一个用户然后去使用应用程序时,他们无法运行应用程序,因为目录设置没有给目录写访问权限的用户组(应用程序的第一个问题是找不到ini文件那里)。当我们将目录权限设置为完全控制/修改时,用户可以启动应用程序并找到ini文件。我无法弄清楚如何设置正确的权限。

I have a VS2008 setup project that runs ok for a user when installing on Win7 Home Premium 64bit. We specify that the application will be avaible for all users. When the same user then goes to use the application they can't run the application because the directory settings do not give the users group on the directory write access (first issue with the application is that an ini file can't be found that is there). When we set the directory permissions to be full control/modify then user can start up the application and the ini file is found. I can't figure out how to get the correct permissions set.

TIA,

Jim

推荐答案

我认为您的应用可能需要用户成为管理员才能运行它。与Windows相比,Windows 7(和其他UAC机器)的区别在于,即使用户是管理员,他们也没有使用管理员权限运行。 您可能需要一个提升清单才能获得同意对话框以提升为管理员权限。

I think that probably your app needs the user to be an administrator to run it. The difference on Windows 7 (and other UAC machines) compared with (say) XP is that even if the user is administrator they're not running with admin privileges.  You may need an elevation manifest to get a consent dialog to elevate to admin privileges.


这篇关于VS2008安装项目并获取Win7目录权限设置。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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