Hello, friends,

After running cmd, trying to install a windows service written in c#.net
2005 with User account (specified in serviceProcessInstaller) by typing

installutil myWindowsService.exe

I was expecting being prompted to enter user name and password, but,
instead, I got:

System.ComponentModel.Win32Exception: The account name is invalid or does
not exist, or the password is invalid for the account name specified

Where should I specify user name and password?

Thanks a lot.

Re: Error when installing windows service. by Phil

Phil
Mon Aug 13 18:13:19 CDT 2007

You'll get prompted if ServiceProcessInstaller.Account is ServiceAccount
User and UserName and Password are not set, but it looks like you've set
values already for ServiceProcessInstaller UserName or Password.

--
Phil Wilson
[MVP Windows Installer]


"Andrew" <Andrew@discussions.microsoft.com> wrote in message
news:A5B1DB57-6A59-43C6-BD50-41FF4A31C639@microsoft.com...
> Hello, friends,
>
> After running cmd, trying to install a windows service written in c#.net
> 2005 with User account (specified in serviceProcessInstaller) by typing
>
> installutil myWindowsService.exe
>
> I was expecting being prompted to enter user name and password, but,
> instead, I got:
>
> System.ComponentModel.Win32Exception: The account name is invalid or does
> not exist, or the password is invalid for the account name specified
>
> Where should I specify user name and password?
>
> Thanks a lot.
>
>