RequestedExecutionLevel not worked

Andreas Mazatis 131 Reputation points
2022-06-16T16:30:32.19+00:00

I am writing an application that any user, admin or not, can access. At startup an update of the program files under c:\Program files should be performed with Robocopy. Robocopy starts but the permission check does not allow access. I have already experimented process.StartInfo.Verb = "runas"; and in the manifest requestedExecutionLevel. Unfortunately all without success. Is there a way that any user can run this and get access to c:\Program Files via Robocopy?

Developer technologies | Windows Presentation Foundation
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2022-06-16T19:22:57.937+00:00

1 additional answer

Sort by: Most helpful
  1. RLWA32 49,536 Reputation points
    2022-06-16T19:14:46.167+00:00

    In order for the runas verb to be effective you must also specify UseShellExecute=true


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.