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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top