K
K
Kalombyr2019-08-15 16:34:33
Windows
Kalombyr, 2019-08-15 16:34:33

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

5 answer(s)
K
Konstantin Tsvetkov, 2019-08-15
@Kalombyr

Make a service that will run elevated. If an application needs to perform a task with administrator privileges, the service does it instead.

S
Saiputdin Omarov, 2019-08-15
@generalx

you need to know what he asks for privileges and set them to the current user

E
Ethril, 2019-08-16
@Ethril

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

E
EvilSide, 2019-08-15
@EvilSide

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.

M
moropsk, 2019-08-15
@moropsk

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 question

Ask a Question

731 491 924 answers to any question