By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,170 Members | 1,406 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,170 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Jan 31 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.