title: How to set "Run as administrator" flag on shortcut created by MSI installer
body: <p>I have a Setup and Deployment project in Visual Studio 2010.</p>
  
  <p>I would like the installer to create two shortcuts to the executable of another project in my solution. One normal shortcut that simply runs the application using current credentials and another which has the <strong>Run as administrator</strong> flag set, thereby ensuring that the user is asked for credentials with administrative rights when clicking the shortcut.</p>
  
  <p><img src="https://i.stack.imgur.com/H2Poc.png" alt="Set &quot;Run as administrator flag&quot; on shortcut"></p>
  
  <p>Running the application with administrative rights enables certain features that are otherwise not available.</p>
  
  <p>Setting this flag doesn't seem to be possible at first glance. Can this be done directly in Visual Studio? If not, are there any other options?</p>
  
  <p><strong>Edit:</strong> If not, is it possible to modify the shortcut programmatically using a custom installer class?</p>