删除 Vista 中的清单权限
我一直在 XP 中开发 C# windows 窗体应用程序。 一切都很好。 但在 Vista 中,它无法将日志或记分板文件写入硬盘。 我发现我需要一个清单文件来允许弹出窗口要求它以管理员身份运行。
这一切都很顺利,我很高兴。 我的问题是我不知道如何删除此权限,以便我可以重复测试并稍微改变情况。
有谁知道我如何删除清单文件授予 EXE 的权限,因为我不知道您现在希望它作为管理员弹出窗口运行吗?
谢谢
I have been developing a C# windows form application in XP. It all works just fine. But in Vista it was not able to write the log or scoreboard file to the hard drive. I found out that I needed a manifest file to allow the popup to ask it to be run as admin.
This all worked well and I am very pleased. My problem is I do not know how to remove this permission so that I can repeat the test and change the situation slightly.
Does anyone know how I remove the permission the manifest file gave the EXE please as I do not get the do you want it to run as admin popup now.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
清单没有向模块授予任何特定权限。 然后将清单作为资源插入模块中。 如果您需要重复测试 - 只需使用资源编辑器打开文件并删除您可以看到的 MANIFEST 资源。
The manifest doesn't give any specific permission to the module. The manifest is inserted as a resource in the module and is then. If you need to repeat the test - just open the file with a resource editor and delete and MANIFEST resources you can see.