C#windows Service Program Installation FAQ Solution

Source: Internet
Author: User

How is the C#windows service program installed? Let's get Started:

C#windows Service Program installation 1,

In the service program is the design form, right-click "Add Installer" to add the service installer. Otherwise, the installation will appear as follows

Error:

Installing assembly "C:\Program\xx.exe".

The parameters that are affected are:

    1. LogtoConsole =
    2. AssemblyPath = C:\Program\xx\xx.exe
    3. LogFile = C:\Program\xx. InstallLog

There is no public installer for Runinstallerattribute.yes. may be found in the C:\Program\xx.exe assembly

The "Yes" attribute.

Submitting assembly "C:\Program\xx.exe".

The parameters that are affected are:

    1. LogtoConsole =
    2. AssemblyPath = C:\Program\xx.exe
    3. LogFile = C:\Program\xx. InstallLog

There is no public installer for Runinstallerattribute.yes. may be found in the C:\Program\xx.exe assembly

The "Yes" attribute.

C#windows Service Program installation 2,

Set the Serviceprocessinstaller1->accout property to: LocalSystem (default is User).

Otherwise, the following error will occur:

Windows Services Installation Error: System.ComponentModel.Win32Exception: The account name is invalid or does not exist, or the password pair

To the specified account

C#windows Service Program installation 3,

Installation:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe Filepath\xx.exe

Unloading:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe-u Filepath\xx.exe

The specific implementation of C#windows service program installation is introduced to you here, and I hope to help you understand and learn the C#windows service program installation.

Source: http://www.cnblogs.com/aji88/archive/2012/04/17/2453427.html

C#windows Service Program Installation FAQ Solution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.