Skip navigation

Because sometimes, it just has to run elevated…

< ?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
   <assemblyidentity version="" processorArchitecture="X86"
      name="ASSEMBLY_NAME" type="win32"/>

      <trustinfo xmlns="urn:schemas-microsoft-com:asm.v3">
            <requestedexecutionlevel level="requireAdministrator"/>


Embed the above file (after setting the correct assembly info, that is) as a Win32 resource, and you’re done! Bart De Smet wrote down how to do it. Visual Studio Orcas can do it OOB.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: