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. In Standard user mode launch a Exe as Non-Elevated ( Lower privelage ) from an Elevated Exe using Administrator privelage ??

In Standard user mode launch a Exe as Non-Elevated ( Lower privelage ) from an Elevated Exe using Administrator privelage ??

Scheduled Pinned Locked Moved Windows API
helpquestionworkspace
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
    shan_chandru
    wrote on last edited by
    #1

    Hello Friends, i have typical problem when using Standard user mode in Window Vista OS. Please find below the exact scenario & thanks in advance for your valuable inputs. => In Standard user mode i run my Setup.exe, it prompts for Admin rights to install the product. At the end of the Installation it will launch "Second Exe", which will look for updates (As per Vista rules this exe will also have full privileges). After completing the updates "Second Exe" will try to launch the "My product". But the current problem is, it will launch "My product" in Admin Privileges, instead of that i want to launch "My Product" with the current user privileges i-e in standard user mode, not with ADMIN privileges. Thanks in Advance. :)

    J S 2 Replies Last reply
    0
    • S shan_chandru

      Hello Friends, i have typical problem when using Standard user mode in Window Vista OS. Please find below the exact scenario & thanks in advance for your valuable inputs. => In Standard user mode i run my Setup.exe, it prompts for Admin rights to install the product. At the end of the Installation it will launch "Second Exe", which will look for updates (As per Vista rules this exe will also have full privileges). After completing the updates "Second Exe" will try to launch the "My product". But the current problem is, it will launch "My product" in Admin Privileges, instead of that i want to launch "My Product" with the current user privileges i-e in standard user mode, not with ADMIN privileges. Thanks in Advance. :)

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

      Basically you can't, you either need to ensure "Second Exe" is not elevated or accept that "My Product" will run elevated if you launch it from the setup kit. Another approach would be to stop "Second.exe" from launching "My Product" automatically and rely on the user starting the application themselves. regards,


      Jonathan Wilkes Darka[Xanya.net] [My Code Project Articles]

      1 Reply Last reply
      0
      • S shan_chandru

        Hello Friends, i have typical problem when using Standard user mode in Window Vista OS. Please find below the exact scenario & thanks in advance for your valuable inputs. => In Standard user mode i run my Setup.exe, it prompts for Admin rights to install the product. At the end of the Installation it will launch "Second Exe", which will look for updates (As per Vista rules this exe will also have full privileges). After completing the updates "Second Exe" will try to launch the "My product". But the current problem is, it will launch "My product" in Admin Privileges, instead of that i want to launch "My Product" with the current user privileges i-e in standard user mode, not with ADMIN privileges. Thanks in Advance. :)

        S Offline
        S Offline
        SNI
        wrote on last edited by
        #3

        You need to launch the process in with Admin credential using CreateProcessWithLogonW and pass admin credentials to its some of the parameters and the process you want to lauch in standard user account launch it with CreateProcess by passing standard user credentials. You might need to write third application to launch these processes. (e.g. Third.exe --->Launch AdminProcess.exe & Third.exe ---> StandardUser.exe)

        SNI

        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