Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Visual Studio Output to Run as Admin always

Visual Studio Output to Run as Admin always

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelpquestionworkspace
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Subin Mavunkal
    wrote on last edited by
    #1

    Hi , Is there a way to make our visual studio output exe to run as Admin always ?. I am running visual studio as Admin and I have a Wix installer project with me.Even if I set the admin flag in the exe manually and then make the setup file , it goes and install it as with out having any permissions. Please help

    C L 2 Replies Last reply
    0
    • S Subin Mavunkal

      Hi , Is there a way to make our visual studio output exe to run as Admin always ?. I am running visual studio as Admin and I have a Wix installer project with me.Even if I set the admin flag in the exe manually and then make the setup file , it goes and install it as with out having any permissions. Please help

      C Offline
      C Offline
      Chris Quinn
      wrote on last edited by
      #2

      Create a desktop shortcut for VS - right click on the shortcut and choose properties. Click the "advanced" button, and there is a checkbox for run as administrator

      ========================================================= I'm an optoholic - my glass is always half full of vodka. =========================================================

      1 Reply Last reply
      0
      • S Subin Mavunkal

        Hi , Is there a way to make our visual studio output exe to run as Admin always ?. I am running visual studio as Admin and I have a Wix installer project with me.Even if I set the admin flag in the exe manually and then make the setup file , it goes and install it as with out having any permissions. Please help

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        You need to add an Application Manifest to the project and set the required privilege level in it.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups