Answer the question
In order to leave comments, you need to log in
Running app as administrator without issue?
Administrator rights are required for the application to work.
Since the application is launched frequently, the user will quickly get tired of the window asking for permission to make changes.
Tell me, please, what can be done so that this window does not appear every time (for example, only once during installation)?
Answer the question
In order to leave comments, you need to log in
Make a service that will run elevated. If an application needs to perform a task with administrator privileges, the service does it instead.
you need to know what he asks for privileges and set them to the current user
If this is not some kind of system software, then sometimes admin rights are needed only to write some nonsense to the HKLM registry branch or to the protected C:\Program Files folder.
This is easily calculated using Process Monitor filtered by process name and denied access events.
Further, manual access is granted to the required registry hive or file. Sometimes such a focus rolls.
You can also automatically accept a UAC request if you make a shortcut to start the application through Powershell with the tricky -verb Runas key. See examples (in English) here - https://ss64.com/ps/syntax-elevate.html
I would not advise doing this, users are terrible people, it would be better to play it safe.
The method is this:
In the search, enter UAC and lower the security to a minimum.
PySy: But I do not advise.
There are a few clumsy ways:
1. If you do to raise the user's rights to "Power user" will there be a launch request?
2. Delete the application, temporarily grant local admin rights to the user, install the application under the user with local admin rights, take away rights, try to run by user, will there be a launch request?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question