Results 1 to 2 of 2

Thread: Visual Studio 2008 / manifest

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2011
    Posts
    35

    Visual Studio 2008 / manifest

    Hi,

    I have an application that needs to be run as administrator. The server it will be run on is Windows 2008 r2. Normally, I could right click the shortcut and choose run as administrator. I understand that with .NET apps I need to use a a manifest...

    Which leads to my problem. I'm trying to add a manifest to my application. I've tried right clicking my solution and the project, but that doesn't show as an item. I'm using visual studio 2008 pro. Any ideas?

    Thanks.

  2. #2

    Thread Starter
    Member
    Join Date
    Sep 2011
    Posts
    35

    Resolved Re: Visual Studio 2008 / manifest

    Ok, solved the issue.

    Went into the Project Properties page.

    Under The application tab, I chose 'View Uac Settings'
    This brings up a file app.manifest (I think this is the manifest?) Anyway, it has this:

    Code:
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
            <!-- UAC Manifest Options
                If you want to change the Windows User Account Control level replace the 
                requestedExecutionLevel node with one of the following.
    
            <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
            <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
            <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />
    
                If you want to utilize File and Registry Virtualization for backward 
                compatibility then delete the requestedExecutionLevel node.
            -->
            <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
          </requestedPrivileges>
    I just cut and pasted:
    Code:
        <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
          </requestedPrivileges>
    <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
    </requestedPrivileges>

    An it works. Thanks for looking.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width