I\'m trying to install a service using InstallUtil.exe but invoked through Process.Start. Here\'s the code:
Process.Start
ProcessStartInfo startInfo = new Pro
You should use Impersonation to elevate the state.
WindowsIdentity identity = new WindowsIdentity(accessToken); WindowsImpersonationContext context = identity.Impersonate();
Don't forget to undo the impersonated context when you are done.