Deploying a Service in Windows 2K

Deploying a Service in Windows 2K

am 09.11.2004 18:15:03 von skbergam

Hi. I am learning how to write services in C#. I wrote at and made the
deployment package but when I try to install by running the .msi file that I
created it begins the setup just fine but then it asks me for a user name and
password (which I am assuming a Service needs to use when it starts). I give
the administrator name and password but then it says that it si invalid. I
have checked it many times but it still does the same thing. I have also
confirmed that the user is also an administrator but it still says I entered
an invalid username and password and won't continue with the installation.
Can anyone help me please? Thank you!

Re: Deploying a Service in Windows 2K

am 10.11.2004 16:38:32 von Phil Wilson

If you want the Service to run under the local system account, set the
ServiceProcessInstaller Account property to a ServiceAccount value that's
not User (which is probably why it's prompting you). Entering a valid user
account there should work fine, you might have a domain issue, and if so,
using \Administrator and the valid password might work.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"skbergam" wrote in message
news:F33194BD-481A-43AB-85D5-A348A9C1C6EE@microsoft.com...
> Hi. I am learning how to write services in C#. I wrote at and made the
> deployment package but when I try to install by running the .msi file that
> I
> created it begins the setup just fine but then it asks me for a user name
> and
> password (which I am assuming a Service needs to use when it starts). I
> give
> the administrator name and password but then it says that it si invalid. I
> have checked it many times but it still does the same thing. I have also
> confirmed that the user is also an administrator but it still says I
> entered
> an invalid username and password and won't continue with the installation.
> Can anyone help me please? Thank you!

Re: Deploying a Service in Windows 2K

am 10.11.2004 20:13:09 von Support

Thanks Phil. I love you. J/K
>-----Original Message-----
>If you want the Service to run under the local system
account, set the
>ServiceProcessInstaller Account property to a
ServiceAccount value that's
>not User (which is probably why it's prompting you).
Entering a valid user
>account there should work fine, you might have a domain
issue, and if so,
>using \Administrator and the valid
password might work.
>--
>Phil Wilson
>[Microsoft MVP-Windows Installer]
>Definitive Guide to Windows Installer
>http://apress.com/book/bookDisplay.html?bID=280
>
>"skbergam" wrote in
message
>news:F33194BD-481A-43AB-85D5-
A348A9C1C6EE@microsoft.com...
>> Hi. I am learning how to write services in C#. I wrote
at and made the
>> deployment package but when I try to install by
running the .msi file that
>> I
>> created it begins the setup just fine but then it asks
me for a user name
>> and
>> password (which I am assuming a Service needs to use
when it starts). I
>> give
>> the administrator name and password but then it says
that it si invalid. I
>> have checked it many times but it still does the same
thing. I have also
>> confirmed that the user is also an administrator but
it still says I
>> entered
>> an invalid username and password and won't continue
with the installation.
>> Can anyone help me please? Thank you!
>
>
>.
>