Authorization to write in registries

Hello
I would like to write in a registry to create a context menu command in runtime.
It works but i’m forced to run the app as adminsitrator, or the app is recognized as virus by AntiVirus otherwise.

How can i ask permission from unity to this task .

Thanks

This won’t be a Unity function. It will be some kind of external probably native system call you have to code, then integrate into Unity as a native plugin. Usually this type of system configuration is handled by an installer step, which throws up the correct escalation dialog.