删除 Vista 中的清单权限

发布于 2024-07-06 14:27:42 字数 245 浏览 8 评论 0原文

我一直在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぃ弥猫深巷。 2024-07-13 14:27:42

清单没有向模块授予任何特定权限。 然后将清单作为资源插入模块中。 如果您需要重复测试 - 只需使用资源编辑器打开文件并删除您可以看到的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文