In windows, you must create a manifest for your application that defines the privilege level at which it should run. Then you only need to run the application. You will receive a UAC prompt for the new version of Windows. But this is necessary and (IMHO) right. There is no way around this.
Under linux, you must install the sticky bit in your application with the correct user rights for what you want to do during installation.
source
share