As always, I did research a bit on my own beforehand, I now seek for general approaches in order to solve this. My situation:
Application needs to get updated (write to program files). If the program runs with admin rights, the update succeeds. If I don't, it fails because of permission errors.
Now what I could do is prompt the user to elevate my rights for the update. There should be a way to do it without though, like for example the Mozilla Maintenance Service which can allows even normal users to update.
So my questions would be:
- How can I elevate my program to admin without prompting (if the user is admin)
- How would I manage to implement an update that does not require any administrative credentials at all?