Guest User

Untitled

a guest
Aug 26th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. How to Install a service as the current account in c#
  2. processInstaller.Account = ServiceAccount.LocalSystem;
  3.  
  4. processInstaller.Account = ServiceAccount.User;
  5. processInstaller.User = "domainusername";
  6. processInstaller.Password = "Password";
Add Comment
Please, Sign In to add comment