MSI Installer error: No mapping between account names and security ID's was done

I have created a windows service that I am trying to install on a target machine for testing.

When I tried to install the service by double-clicking the msi file, the installer issued this message:

Set Service Login
Password Confirmation:

After I entered my windows username and password, the installation failed with this message:

"No mapping between account names and security ID's was done."

The installer saved just two files in the target directory.

SforcePrototypeService.InstallState and TDB4BB.tmp

This is my first attempt at creating a windows service and setup/deployment project that installs the service.

I'm not sure what or where I am going wrong?

Any help is appreciated.

-Dman100-Software ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vadim RappCommented:
This message means that Windows did not recognize the username and password that you specified. Are you sure they exist on the target machine?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
-Dman100-Software ConsultantAuthor Commented:
Hi vadimrapp1,

yes, absolutely, the username and password are valid on the target machine.

Should the installer be asking for a username and password when installing a windows service?  When I added the installer, should I have specified LocalService or LocalSystem for the Account in the properties for ServiceProcessInstaller1?  It was set as User, which might be causing the problem.

This is my first windows service, so I'm somewhat novice at this.
Vadim RappCommented:
Yes, usually all services run under one of those predefined accounts. In the past, everything was localsystem, then less privileged localservice and networkservice were added - the best practice is to use the account with the minimum required privileges. See this technet article for details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.