Fail to install window services,

Feb 24 2004 9:45 AM
I have written a window service testaaa.exe (from template). when running installutil.exe testaaa.exe, i get the below output and there is no service added in the server explorer. /*###########################################*/ Running a transacted installation. Beginning the Install phase of the installation. See the contents of the log file for the c:\temp\service\testaaa\bin\debug\testa aa.exe assembly's progress. The file is located at c:\temp\service\testaaa\bin\debug\testaaa.InstallLog. Installing assembly 'c:\temp\service\testaaa\bin\debug\testaaa.exe'. Affected parameters are: assemblypath = c:\temp\service\testaaa\bin\debug\testaaa.exe logfile = c:\temp\service\testaaa\bin\debug\testaaa.InstallLog No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\temp\service\testaaa\bin\debug\testaaa.exe assembly. The Install phase completed successfully, and the Commit phase is beginning. See the contents of the log file for the c:\temp\service\testaaa\bin\debug\testa aa.exe assembly's progress. The file is located at c:\temp\service\testaaa\bin\debug\testaaa.InstallLog. Committing assembly 'c:\temp\service\testaaa\bin\debug\testaaa.exe'. Affected parameters are: assemblypath = c:\temp\service\testaaa\bin\debug\testaaa.exe logfile = c:\temp\service\testaaa\bin\debug\testaaa.InstallLog No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\temp\service\testaaa\bin\debug\testaaa.exe assembly. Remove InstallState file because there are no installers. The Commit phase completed successfully. /*###########################################*/ May I know how to get away with this. I have tried adding installer and setup project. when running the .msi, i was prompt for userid and password. that fail with the following error. /*###########################################*/ An exception occurred during the Install phase. System.ComponentModel.Win32Exception: No mapping between account names and secur ity IDs was done The Rollback phase of the installation is beginning. See the contents of the log file for the n:\co_oed_applications\gin\c#\weservice \bin\debug\weservice.exe assembly's progress. The file is located at n:\co_oed_applications\gin\c#\weservice\bin\debug\weservi ce.InstallLog. Rolling back assembly 'n:\co_oed_applications\gin\c#\weservice\bin\debug\weservi ce.exe'. Affected parameters are: assemblypath = n:\co_oed_applications\gin\c#\weservice\bin\debug\weservice.ex e logfile = n:\co_oed_applications\gin\c#\weservice\bin\debug\weservice.Install Log The Rollback phase completed successfully. The transacted install has completed. The installation failed, and the rollback has been performed.many thanks. /*###########################################*/ many thanks hy

Answers (5)