How to get username, password from .NET Windows service installation to actual service code ?

  • Thread starter Thread starter jimmy
  • Start date Start date
J

jimmy

Hi,

I have a .NET service which has to set the username and password at
the time of installation. So,
this.serviceProcessInstaller.Password = null;
this.serviceProcessInstaller.Username = null;
in ProjectInstaller

I want to access this username and password in my service when it
runs.

I already tried accessing it through
projectInstaller.serviceProcessInstaller.Username + "
" + projectInstaller.serviceProcessInstaller.Password);

Any idea how I can do this ?

Thanks
Achintya
 
Back
Top