Elevated privileges

patch

Member³
Hi,

I built my own installer for the plugins, but it fails when not run as administrator. I know there is an option to run your program with elevated privileges, asking the user if they agree with the program changing his/her system. Does anyone have an example how I should implement this is Delphi?

Any help would be greatly appreciated.
 
By far the easiest method: if the filename of the installer includes the words "setup" or "install" it will automatically elevate.
 
The installer was named PluginSetup.exe. When I renamed it to Setup.exe it works. Thanks for the help.
 
Back
Top