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. Windows API
  4. How to run a program _without_ elevated rights?

How to run a program _without_ elevated rights?

Scheduled Pinned Locked Moved Windows API
tutorialquestionannouncement
3 Posts 2 Posters 4 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.
  • M Offline
    M Offline
    mav northwind
    wrote on last edited by
    #1

    Hi folks! I've just modified my updater application to contain a manifest so that it can update an application in C:\Program Files without failing because of UAC's directory virtualization. After replacing the old files, the application that was just updated gets started by the updater application again, but this time runs with elevated rights as well (because the updater program got elevated rights). Does anyone know how to drop the elevated rights before starting the other application?

    Regards, mav -- Black holes are the places where God divided by 0...

    J 1 Reply Last reply
    0
    • M mav northwind

      Hi folks! I've just modified my updater application to contain a manifest so that it can update an application in C:\Program Files without failing because of UAC's directory virtualization. After replacing the old files, the application that was just updated gets started by the updater application again, but this time runs with elevated rights as well (because the updater program got elevated rights). Does anyone know how to drop the elevated rights before starting the other application?

      Regards, mav -- Black holes are the places where God divided by 0...

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #2

      Try this... Vista Elevator The downloadable source code should help you with this. Update ------ This is a better Link. regards,


      Jonathan Wilkes Darka [Xanya.net]

      M 1 Reply Last reply
      0
      • J Jonathan Darka

        Try this... Vista Elevator The downloadable source code should help you with this. Update ------ This is a better Link. regards,


        Jonathan Wilkes Darka [Xanya.net]

        M Offline
        M Offline
        mav northwind
        wrote on last edited by
        #3

        Thanks, this link seems to be helpful!

        Regards, mav -- Black holes are the places where God divided by 0...

        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