Possible Duplicate:
Start non-elevated process from elevated process
Story:
Standard-User
launches a MSI As Administrator
and Msi launch a Process(Lets say Sample.exe) on setup finish.
Problem:
Sample.exe starts with Administrator rights instead of current desktop (statndard) user.
This is causing some problem.
So i want that sample.exe should start with current window logged in user(standard user).
I did some googling and found this Article . But this article is in C++
and I am using C#
and WIX
. So if there is any other simple way to do this in c# and if Not then how can i use this article's code in my project.
NOTE: This question has been asked multiple time on stackoverflow but i didnt find the answer for c#