Firstly, I want to emphasize that I am not trying to do anything “unpleasant” or “hacking,” and I am not trying to hide anything from the user here.
During the installation (using InstallShield LE) of my application, the user asks for Windows UAC so that it can work in administrator mode; If the user accepts it, the installation continues (standard behavior), and the user can again check the possibility of adding this program to the startup list (by adding a registry key to HKLM /../ Run). Everything is normal and normal. But after each restart of Windows, when this application starts, UAC starts and asks for user permission. The question is how to avoid it, since it is a bit annoying (but my application needs administrator rights to run)?
I mean, the user has already granted such permissions during installation, so I don’t see the reason why I need to request it every time I start it? Moreover, I believe that most antivirus programs, etc. They also require elevated permissions to work, but the UAC does not request it when Windows starts.
Thank you for any tips, information, comments or solutions.
rexem source share