I have a system, I set it up as a normal with UAC, and in my delphi environment I compile my project named ka.exe, I create a installshield project for it.
setup and everything completes ok! but whenever I start my program, it requires elevation and I don't have any clue why.
just to be sure installshield is not playing mindgames on me, I compiled a new .exe, and copy it manually over to my networked computer.
the icon looks the same, and it also have this UAC shield on it.
my project has some functions inside that might be talking with a network shared name, and talking with a SQL database...
so why does my app need elevation to run ?
First, if you are able to with Delphi, add an embedded manifest with asInvoker
. If you can't, then make an external one and put it in the same folder as the exe. If the shield disappears, great.
If not, then things get murkier. Sometimes when you run an app, Windows comes along afterwards and says "that might not have worked; would you like to try again with recommended settings?". If you say ok, there is a group policy stored away that will elevate that app for the rest of time. It does appear that if you rename the exe the effect of the group policy stops. You could try that.