Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Authorization to write in registries

Discussion in 'Scripting' started by renaudcor, May 7, 2020.

  1. renaudcor

    renaudcor

    Joined:
    Apr 29, 2015
    Posts:
    2
    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
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,514
    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.