windows - Executing a process normally from an elevated one -


is there way launch process in non-elevated way elevated one. setup launched elevated , when finalizes, launch main application. because setup elevated, main process elevated not desirable. best solution this?

that's problem, vista/win7 don't appear have api obtain unprivileged user token need call createprocessasuser(). solutions i've found involve using task scheduler launch program. doesn't strike me practical.

an easy solution jumps mind use small non-elevated helper process. can in turn launch elevated setup process , wait confirmation 1 launch non-elevated one. handshake simple enough named mutex.


Comments