Elevating permissions associated with build output (UAC)

Searching around, I get a sense that UAC is not a fun topic on this forum but I have not seen an answer to the question I am looking into now.

We have a Delphi application which is being built through FinalBuilder. This application installs some other applications on our clients’ machines and hence requires elevated privileges to be run. The short answer is, Delphi offers an option to compile an application to run as Admin. I am having a hard time figuring out how to do the same thing in FinalBuilder. Is there a way I can flag an application to run as admin?

Hi rw

The run as admin option in rad studio maps to the requestedExecutionLevel level attribute in the application manifest file. We recommend you do not use the default manifest file provided by rad studio, but instead set it to use a custom manifest file which should be stored with your project file. 

I have attached an example manifest file (zipped). Edit to suit your application, ie change the assembly info, description, and you the requestedExcecutionLevel to requireAdministrator

In your FinalBuilder project, you will also need to point the delphi action to the manifest file, on the resource compiler tab. 

I plan to blog about this in the next few days, as this comes up quite often.__38064__0__FinalBuilderManifest.zip (1006 B)

Thank you, I’ll give it a shot.