Click here to Skip to main content
15,887,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I'm building a windows service that retrieves information about diferent hardware, and after that it stores the information in a database, right now that part is done and im trying to install that service in diferent computers, and i wanted to know if the little window that pops up during the installation, called Set Service login, is possible to set some default values in those textboxes.

Thanks in advance.

Best Regards.
Posted
Updated 15-Jan-18 22:37pm
v2
Comments
Member 8956437 10-May-12 13:22pm    
I have tried that, but still having the same problem, the message box still appears in the installation with empty textboxes, i have thought about one of two solution, either manipulate that message box in order to show up with some values already typed, or already defined username and password in the code.

I believe you can do it by modifying your ProjectInstaller.Designer.cs file and modifying the following lines in the InitializeComponent method:

C#
this.serviceProcessInstaller1.Password = null;
this.serviceProcessInstaller1.Username = null;
 
Share this answer
 
Comments
Wendelius 10-May-12 12:21pm    
OP's comment:
"Thanks for the reply, but i have done that, and the window still pops up empty,
i really wanted to have some default values in the textboxes but at the same time be able to change those values."

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900