Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody.
I'm trying to make my service installer ask for username and password.
I'm supposed to ser Account property to "User" on the Service Process Installer, however it still doesn't make it.

When I install it with command prompt "installutil", it works. Has somebody had this problem? What am I missing? I have followed a lot of tutorials on the web, and still can't make it work
Posted
Updated 8-Jun-11 0:25am
v2

I found the solution by myself.

To make the installer ask for username and password for registering the service, you must do the following:

- Right click on the installer project, view, Custom Actions.
- On Install folder, you must add the Service primary output, the same as in File System option.

I was only adding this service primary output on file system. this way, all the files were being correctly copied on the destination folder, but after that you need to register the service. this way, it works.

I hope to help somebody, someday. ;)
 
Share this answer
 
 
Share this answer
 
Comments
garfield185 3-Jun-11 5:56am    
Hi thatraja.
Good article, however, what I exactly need is to be asked for the username and password. In the article says "When using the default Installer, there are only two ways to do that: type in the username and password box during installation or have a fixed username and password inside the Installer code."
That's what I need, to type it. But I can't make the installer to ask for ir, it doesn't prompt that window asking for username and password... I don't know why...

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