Enable administrator privileges with clickonce applications C#

Sometimes it is necessary to run an application with elevated privileges (although this is only recommended when needed) – nonetheless when trying to change the requestedExecutionLevel from asInvoker to requireAdministrator in the app.manifest file, you will run into issues with clickonce security. Very simple way to get around this – simply go right click on ur project name -> properties -> security -> and untick the box which says “enable clickonce security settings” and ur home and dry!