问题描述
Hello world;)
我现在面临一个问题已经有一段时间了,希望这里的任何人都知道如何解决这个问题.
我们有一个应用程序分发到我们公司的不同工作站.
它具有一个更新程序,该更新程序基本上将新文件复制到客户端计算机(XP,Win 7)上的目标文件夹中.
要求将应用程序复制到"Programms"文件夹中,众所周知,该文件夹是受保护的文件夹.
我通过advapi32.dll的LogonUser
使用模拟,将管理员用户登录名作为参数传递.
对于XP机器,它工作得很好,但是不幸的是,对于Win 7机器,它不是.
谁能这么善良,告诉我在win 7机器上如何模拟模仿?
我已经在Google上搜索了很长时间,但没有任何效果.
我还在清单等中添加了<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
,没有任何结果,但也许我只是走错了路.
任何启示"都应得到赞赏,
欢呼
Andy
Hello world ;)
I am facing a problem for quite a while now, hoping anybody here has an idea how to deal with it.
We have a application that is distributed to different workstations in our company.
It has an updater which basically copies the new files to their destination folders on the client machines (XP, Win 7).
A requirement was that the application is copied into the "Programms" folder which is, as we all know, a protected one.
I used impersonation via LogonUser
of the advapi32.dll, passing an admin user login as parameters.
It worked fine for the XP machines, unfortunately not for the Win 7 ones.
Could anybody be so kind and tell me how impersonation is archieved on win 7 machines?
I digged through Google for quite a while now but nothing really worked.
I also added <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
in the manifest etc, no result but maybe I am just on the wrong path.
Any "enlightments" are kindly appreciated,
cheers
Andy
推荐答案
这篇关于在Win7(Vista)下以普通用户身份访问Acessing Programs文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!