Results 1 to 3 of 3

Thread:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    . worm4's Avatar
    Join Date: Jul:2005
    Location: Varna
    Posts: 20,295

    o .
    VS 2010, windows service, ProjectInstaller :
    cannot start service from the command line or debuger....
    , , .


    Code:
    C:\Documents and Settings\asen>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ins
    tallutil C:\Temp\Debug\HVACControlServer.exe
    Microsoft (R) .NET Framework Installation utility Version 2.0.50727.3053
    Copyright (c) Microsoft Corporation.  All rights reserved.
    
    
    Running a transacted installation.
    
    Beginning the Install phase of the installation.
    See the contents of the log file for the C:\Temp\Debug\HVACControlServer.exe ass
    embly's progress.
    The file is located at C:\Temp\Debug\HVACControlServer.InstallLog.
    Installing assembly 'C:\Temp\Debug\HVACControlServer.exe'.
    Affected parameters are:
       logtoconsole =
       assemblypath = C:\Temp\Debug\HVACControlServer.exe
       logfile = C:\Temp\Debug\HVACControlServer.InstallLog
    No public installers with the RunInstallerAttribute.Yes attribute could be found
     in the C:\Temp\Debug\HVACControlServer.exe assembly.
    
    The Install phase completed successfully, and the Commit phase is beginning.
    See the contents of the log file for the C:\Temp\Debug\HVACControlServer.exe ass
    embly's progress.
    The file is located at C:\Temp\Debug\HVACControlServer.InstallLog.
    Committing assembly 'C:\Temp\Debug\HVACControlServer.exe'.
    Affected parameters are:
       logtoconsole =
       assemblypath = C:\Temp\Debug\HVACControlServer.exe
       logfile = C:\Temp\Debug\HVACControlServer.InstallLog
    No public installers with the RunInstallerAttribute.Yes attribute could be found
     in the C:\Temp\Debug\HVACControlServer.exe assembly.
    Remove InstallState file because there are no installers.
    
    The Commit phase completed successfully.
    
    The transacted install has completed.
    /Hidden: installutil


    ? windows services /services.msc/? .
    regsvcs, dll, exe?

    --------- 12:41 --------- : 12:22 ---------

    installutil release,
    ,
    Code:
    C:\Documents and Settings\asen>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ins
    tallutil C:\Temp\release\HVACControlServer.exe
    Microsoft (R) .NET Framework Installation utility Version 2.0.50727.3053
    Copyright (c) Microsoft Corporation.  All rights reserved.
    
    
    Running a transacted installation.
    
    Beginning the Install phase of the installation.
    See the contents of the log file for the C:\Temp\release\HVACControlServer.exe a
    ssembly's progress.
    The file is located at C:\Temp\release\HVACControlServer.InstallLog.
    Installing assembly 'C:\Temp\release\HVACControlServer.exe'.
    Affected parameters are:
       logtoconsole =
       assemblypath = C:\Temp\release\HVACControlServer.exe
       logfile = C:\Temp\release\HVACControlServer.InstallLog
    Installing service VRFToMODBUS...
    Creating EventLog source VRFToMODBUS in log Application...
    
    An exception occurred during the Install phase.
    System.ComponentModel.Win32Exception: The account name is invalid or does not ex
    ist, or the password is invalid for the account name specified
    
    The Rollback phase of the installation is beginning.
    See the contents of the log file for the C:\Temp\release\HVACControlServer.exe a
    ssembly's progress.
    The file is located at C:\Temp\release\HVACControlServer.InstallLog.
    Rolling back assembly 'C:\Temp\release\HVACControlServer.exe'.
    Affected parameters are:
       logtoconsole =
       assemblypath = C:\Temp\release\HVACControlServer.exe
       logfile = C:\Temp\release\HVACControlServer.InstallLog
    Restoring event log to previous state for source VRFToMODBUS.
    
    The Rollback phase completed successfully.
    
    The transacted install has completed.
    The installation failed, and the rollback has been performed.
    /Hidden:


    , :
    An exception occurred during the Install phase.
    System.ComponentModel.Win32Exception: The account name is invalid or does not ex
    ist, or the password is invalid for the account name specified
    "Arbeit macht frei" -
    - . , :..,,--?!
    OgiDogi: , , ..,

  2. #2
    XaMaB's Avatar
    Join Date: Nov:2001
    Location:
    Posts: 20,387
    .

    installutil ( ) - - "Setup project" solution-a output- .

    Installer class . .

    Main :
    Code:
            static void Main(string[] args)
            {
                if (args.Count() == 0)
                {
                    //Service Mode 
                    ServiceBase[] ServicesToRun;
                    ServicesToRun = new ServiceBase[] 
    			    { 
    				    new MyService() 
    			    };
                    ServiceBase.Run(ServicesToRun);
                }
                else
                {
                    //Console Mode 
                    MyProcess process = new MyProcess();
    
                    Console.ReadLine();
                    process.Dispose();
                }
    
            }
    MyService , MyProcess , ,
    : XaMaB; . 0.42

    In God we Trust (all others must submit a X.509 certificate). , ()

  3. #3
    . worm4's Avatar
    Join Date: Jul:2005
    Location: Varna
    Posts: 20,295
    .
    Code:
                serviceProcessInstaller.Account = ServiceAccount.LocalSystem;
    .
    "Arbeit macht frei" -
    - . , :..,,--?!
    OgiDogi: , , ..,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |