I am working on an application (Windows XP and 7 - don't ask! ;) ) for the taskbar notification area. It is being started form user and admin accounts and usually does not need an elevated permission, I also don't want to bother every user with an UAC Dialog when the application is started.
Now I would like to integrate one call (write to the registry, HKLM) requiring elevated permissions and I wonder about the best strategy to implement this (in this case, in Delphi) for Windows 7+?
I have seen programs calling themselves with elevated permission and a parameter (Delphi: Prompt for UAC elevation when needed) - but is there any better way to do it?