InstallUtil

  • Thread starter Thread starter Colin Basterfield
  • Start date Start date
C

Colin Basterfield

Hi,

Not sure if this is the right place for this question, but I'll ask
anyway...

I have written a windows service to poll a database and collect some
information and write it to an XML file for local retrieval, anyways when I
do

InstallUtil OnlinePolling.exe it comes up with a login screen and if I put
in what I think is correct, though I'm not sure which username and password
it wants here, it gives me the following log file:

<<Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\vsnet
dev\onlinepollingservice\bin\debug\onlinepollingservice.exe assembly's
progress.
The file is located at c:\vsnet
dev\onlinepollingservice\bin\debug\onlinepollingservice.InstallLog.

An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: No mapping between account names and
security IDs was done

The Rollback phase of the installation is beginning.
See the contents of the log file for the c:\vsnet
dev\onlinepollingservice\bin\debug\onlinepollingservice.exe assembly's
progress.
The file is located at c:\vsnet
dev\onlinepollingservice\bin\debug\onlinepollingservice.InstallLog.

The Rollback phase completed successfully.

The transacted install has completed.>>

Any ideas or places to look for help on this?

Many thanks
Colin
 
Hi Colin,

How did you set Account, User and Password class of your
ServiceProcessInstaller component?
I think that you've specified an invalid account.
 
Hi,

hmmm...I don't think I did now you mention it. I am new at this part of
dotNet, well pretty new at most of it, especially the bits I need to know
now!

Where does one set these up then?

Many thanks
Colin
 
Hi Colin,

You might check the
Adding Installers to your Service Application
..net help topic.
Basically you'll have to set some properties of ServiceProcessInstaller
component (Account, Username, Password).
 
Hi Miha,

Well I've sorted it, I set the account to Local System, and bingo! house!

Many thanks
Colin
 
Back
Top