Refer https://stackoverflow.com/questions/30990188/delphi-give-administrator-rights-to-the-application