Load and unload Windows services that you have developed

Source: Internet
Author: User

Use the following statement to load your own developed Baidu Map service: InstallUtil.exe D:\Test-Project\BaiduMapService.exe, plus-u means uninstall.

Among them, installUtil.exe generally exist in the following directory: C:\Windows\Microsoft.NET\Framework64\v4.0.30319


The specific usage of InstallUtil.exe is as follows (excerpt from InstallUtil.exe-? Command Display):

Usage: installutil [u |/uninstall] [option [...]] assembly [[[[[[[...]] assembly] [...]

InstallUtil executes the Setup program in each given assembly.
If you specify the/u or/uninstall switch, it uninstalls the assembly, or vice versa, installs them. Unlike other options,/U applies to all assemblies, regardless of where they appear on the command line.

Setup is done as a transactional process: if one of the assemblies fails to install, all other installation assemblies are rolled back. Uninstall is not transacted.

The format of the option is/switch=[value]. Any options that appear before the assembly name are applied to the assembly's installation.
The option is cumulative but can be overridden-the option specified for an assembly is applied to the next assembly unless a new value is specified for the option. The default setting for all options is empty or False unless otherwise specified.

Recognized options:
Options for installing any assembly:
The/assemblyname assembly parameter will be interpreted as the assembly name (name, Locale, PublicKeyToken, Version).
By default, the assembly parameter is interpreted as the file name of the assembly on disk.

/logfile=[filename] The file to which the progress is written. If it is empty, no log is written. Default is <assemblyname>. InstallLog

/logtoconsole={true|false} If False, it is not output to the console.

/showcallstack If an exception occurs at any time during the installation process, the call stack is output to the log.

/installstatedir=[directoryname] in which to store. The directory of the InstallState file. The default is the directory of the Assembly.

The individual installers used in the assembly can identify additional options. To learn about these options, run InstallUtil on the command line, with the path to the assembly and/or after the command. or/help option.



Load and unload Windows services that you have developed

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.