如何在c3中编写注册表 [英] how to write registry in c3
本文介绍了如何在c3中编写注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用c#代码为所有用户编写注册表项。
现在我在不是管理员的用户中。
可以帮我解决这个问题。
i不想使用app.manifest文件。
i want to write registry key for all user using c# code.
Now i am in users not in administrator.
can any help me to sort this out.
i don't want to use app.manifest file.
推荐答案
不要。
你可以几乎只访问注册表以便在管理模式下写入 - 这意味着你的应用程序将需要提升,这将调用阿联酋 - 而这在操作系统的未来版本中将变得更加困难。
相反,请考虑编写自己的文件:应该在哪里我存储了我的数据? [ ^ ]应该有帮助。
Don't.
You can pretty much only access the registry for writing in Admin mode - which means your app will need elevation, which invokes the UAE - and this will only get harder to do in future versions of the OS.
Instead, consider writing your own file: Where should I store my data?[^] should help.
这篇关于如何在c3中编写注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文