Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Setting exe build administrator privileges

Discussion in 'Windows' started by ccoa1754, Nov 3, 2020.

  1. ccoa1754

    ccoa1754

    Joined:
    Jan 25, 2019
    Posts:
    2
    Is there a setting to always run the built file with administrator privileges when performing exe build in unity?
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,280
  3. ccoa1754

    ccoa1754

    Joined:
    Jan 25, 2019
    Posts:
    2
    I don't know about this part. Are you saying that it is possible to automatically run the administrator through the bat file when executing the file after the build is finished?
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,280
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,628
    There's no built in setting to do this. However, as mgear pointed out you can run it yourself in PostProcessBuild callback.