Installer tool (installutil.exe)
The installer tool allows you to install and uninstall server resources by executing the installer components in the specified assembly. This tool works with classes in the system. configuration. Install namespace. The location and path of the security switch are: C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727 \ installutil.exe.
The unmount location and path are as follows:
C: \ windows \ Microsoft. net \ framework \ v2.0.50727 \ installutil.exe installer tool (installutil.exe) installation method and parameters: installutil [/uninstall] [Option [...] assemblyname] [Option [...] assemblyname
/H [ELP] |
Displays the command syntax and options of the tool. |
/HelpAssemblypath |
Displays any additional options recognized by individual installers in the specified assembly. |
/? |
Displays the command syntax and options of the tool. |
/?Assemblypath |
Displays any additional options recognized by individual installers in the specified assembly. |
/Logfile= [Filename] |
Specifies the name of the log file in which the installation progress is recorded. The default file name isAssemblyname. Installlog. |
/Assemblyname Assemblyname[, Version =Major. Minor. Build. Revision] [, Culture =Locale] [, Publickeytoken =Publickeytoken] |
Specifies the Assembly name. You must use the version, culture, and public key of the Assembly to mark the fully qualified assembly name. Fully qualified names must be enclosed in quotation marks. For example, "myassembly, culture = neutral, publickeytoken = 0038abc9deabfle5, version = 2.0.0.0" is a fully qualified assembly name. |
/Logtoconsole= {True|False} |
IfTrueThe output is displayed on the console. IfFalse(Default. |
/Showcallstack |
If an exception occurs at any time during the installation process, the call stack is printed to the log. |
Zookeeper
You can specify multiple assemblies on the same command line. Any selection prior to the Assembly name should be applied to the security of the Assembly. The selection for an assembly should apply to any subsequent Assembly, unless specified together with the new Assembly name.
Microsoft. NET Framework
Applications are composed of unified program files and related resources, for example, you must create a message queue column, event daily metric, and performance calculator when deploying an application. When installing applications, you can use the security program components of the Assembly.
You can use these components to delete these resources when you unload the application. Installutil.exe uninstall and install these security program components.
If you run installutil.exe but do not specify any options for an assembly, installutil.exe places the following three files in the project of the Assembly:
- Installutil. installlog
General provisions that include the security degree.
- Assemblyname. Installlog
Contains information specific to the submission segment of the security process. For more information about the submission segment, see the installer. Commit method.
- Assemblyname. Installstate
Contains the data used to unload the assembly.
Installutil.exe uses the reflection extension to query the specified assembly and find to set runinstallerattributeTrue. Then the toolInstallerThe install method or uninstall method is used in each example of type. Installutil.exe implements transaction-based security. If an assembly fails to be installed, installutil.exe restores the security of all other assemblies. It is not imperative to unload logs.
Please note that you cannot use installutil.exe to deploy Windows Services created by C ++ hosted Elastic Compute service. Installutil.exe
You cannot identify the embedded Local Machine token generated by the C ++ compiler. If zookeeper uses installutil.exe to deploy and host the zookeeper for Windows
Services, suchBadimageformatexception). To handle this situation, please migrate the service representative to the hosting role of C ++. Then, use C # Or Visual Basic to compile the Security Program object.
Example
The following command provides instructions on command syntax and selection.
installutil
The following command linemyAssembly.exe
The security program component in the Assembly.
installutil myAssembly.exe
The following command linemyAssembly.exe
The unload component assembly in the Assembly.
installutil /u myAssembly.exe
The following command linemyAssembly.exe
Set the Security Program in the Assembly and specify the inbound InformationmyLog.InstallLog
.
installutil /LogFile=myLog.InstallLog myAssembly.exe
The following command willmyAssembly.exe
Security progressmyLog.InstallLog
And WillmyTestAssembly.exe
InboundmyTestLog.InstallLog
.
installutil /LogFile=myLog.InstallLog myAssembly.exe /LogFile = myTestLog.InstallLog myTestAssembly.
Installer tool (installutil.exe)
The installer tool allows you to install and uninstall server resources by executing the installer components in the specified assembly. This tool works with classes in the system. configuration. Install namespace. The location and path of the security switch are: C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727 \ installutil.exe.
The unmount location and path are as follows:
C: \ windows \ Microsoft. net \ framework \ v2.0.50727 \ installutil.exe installer tool (installutil.exe) installation method and parameters: installutil [/uninstall] [Option [...] assemblyname] [Option [...] assemblyname
/H [ELP] |
Displays the command syntax and options of the tool. |
/HelpAssemblypath |
Displays any additional options recognized by individual installers in the specified assembly. |
/? |
Displays the command syntax and options of the tool. |
/?Assemblypath |
Displays any additional options recognized by individual installers in the specified assembly. |
/Logfile= [Filename] |
Specifies the name of the log file in which the installation progress is recorded. The default file name isAssemblyname. Installlog. |
/Assemblyname Assemblyname[, Version =Major. Minor. Build. Revision] [, Culture =Locale] [, Publickeytoken =Publickeytoken] |
Specifies the Assembly name. You must use the version, culture, and public key of the Assembly to mark the fully qualified assembly name. Fully qualified names must be enclosed in quotation marks. For example, "myassembly, culture = neutral, publickeytoken = 0038abc9deabfle5, version = 2.0.0.0" is a fully qualified assembly name. |
/Logtoconsole= {True|False} |
IfTrueThe output is displayed on the console. IfFalse(Default. |
/Showcallstack |
If an exception occurs at any time during the installation process, the call stack is printed to the log. |
Zookeeper
You can specify multiple assemblies on the same command line. Any selection prior to the Assembly name should be applied to the security of the Assembly. The selection for an assembly should apply to any subsequent Assembly, unless specified together with the new Assembly name.
Microsoft. NET Framework
Applications are composed of unified program files and related resources, for example, you must create a message queue column, event daily metric, and performance calculator when deploying an application. When installing applications, you can use the security program components of the Assembly.
You can use these components to delete these resources when you unload the application. Installutil.exe uninstall and install these security program components.
If you run installutil.exe but do not specify any options for an assembly, installutil.exe places the following three files in the project of the Assembly:
- Installutil. installlog
General provisions that include the security degree.
- Assemblyname. Installlog
Contains information specific to the submission segment of the security process. For more information about the submission segment, see the installer. Commit method.
- Assemblyname. Installstate
Contains the data used to unload the assembly.
Installutil.exe uses the reflection extension to query the specified assembly and find to set runinstallerattributeTrue. Then the toolInstallerThe install method or uninstall method is used in each example of type. Installutil.exe implements transaction-based security. If an assembly fails to be installed, installutil.exe restores the security of all other assemblies. It is not imperative to unload logs.
Please note that you cannot use installutil.exe to deploy Windows Services created by C ++ hosted Elastic Compute service. Installutil.exe
You cannot identify the embedded Local Machine token generated by the C ++ compiler. If zookeeper uses installutil.exe to deploy and host the zookeeper for Windows
Services, suchBadimageformatexception). To handle this situation, please migrate the service representative to the hosting role of C ++. Then, use C # Or Visual Basic to compile the Security Program object.
Example
The following command provides instructions on command syntax and selection.
installutil
The following command linemyAssembly.exe
The security program component in the Assembly.
installutil myAssembly.exe
The following command linemyAssembly.exe
The unload component assembly in the Assembly.
installutil /u myAssembly.exe
The following command linemyAssembly.exe
Set the Security Program in the Assembly and specify the inbound InformationmyLog.InstallLog
.
installutil /LogFile=myLog.InstallLog myAssembly.exe
The following command willmyAssembly.exe
Security progressmyLog.InstallLog
And WillmyTestAssembly.exe
InboundmyTestLog.InstallLog
.
installutil /LogFile=myLog.InstallLog myAssembly.exe /LogFile = myTestLog.InstallLog myTestAssembly.