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