1: guid Generator
If the installed development environment is vs2008, the program contains the Microsoft Windows SDK v6.0az --> tools with the guid generator. A guid is automatically generated.
2: gacutil.exe Global Assembly Cache Tool
Path: CD/d c: \ Program Files \ microsoft sdks \ windows \ v6.0a \ bin
Gacutil [Options] [assemblyname | assemblypath | assemblylistfile]
Parameters |
Description |
Assemblyname |
Assembly name. Some specified Assembly names (for exampleMyassembly) Or a fully-specified Assembly name (for exampleMyassembly, version = 2.0.0.0, culture = neutral, publickeytoken = 0038abc9deabfle5). |
Assemblypath |
Name of the file containing the Assembly List. |
Assemblylistfile |
List the ANSI text file paths of the assembly to be installed or uninstalled. To install an assembly using a text file, specify the path of each Assembly on a separate line in the file. ComparedAssemblylistfile. To uninstall an assembly using a text file, specify a fully qualified assembly name for each Assembly on a separate line in the file. SeeAssemblylistfileContent example. |
Option |
Description |
/CDL |
Delete the downloaded content. |
/F |
And/IOr/ILThis option will force the assembly to be reinstalled. If an assembly with the same name already exists in the Global Assembly Cache, The Global Assembly Cache tool will rewrite the assembly. |
/H[ELP] |
Displays the command syntax and options of the tool. |
/I Assemblypath |
Install the assembly in the global assembly cache. |
/If Assemblypath |
Install the assembly in the global assembly cache. If an assembly with the same name already exists in the Global Assembly Cache, The Global Assembly Cache tool will rewrite the assembly. Specifying this option is equivalent to specifying both/IAnd/F. |
/IL Assemblylistfile |
SetAssemblylistfileInstall one or more of the specified assemblies in the global assembly cache. |
/IR Assemblypath Scheme ID Description |
Install the assembly in the Global Assembly Cache and add references to count the assembly. When using this option, you must specifyAssemblypath,Scheme,IDAndDescriptionParameters. For a description of the valid values that can be specified for these parameters, see/R. Specifying this option is equivalent to specifying both/IAnd/R. |
/L[Assemblyname] |
Lists the content cached by the global assembly. If you specifyAssemblynameThe Global Assembly Cache tool only lists the assemblies that match the name. |
/LDL |
Lists the cached content of the downloaded file. |
/LR[Assemblyname] |
Lists all the assemblies and their reference numbers. If you specifyAssemblynameParameter, the tool only lists the Assembly that matches the name and the corresponding reference number. |
/Nologo |
Undisplay Microsoft startup title. |
/R[Assemblyname | assemblypath] Scheme ID Description |
Trace reference to one or more assembly to be installed or uninstalled. And/I,/IL,/UOr/UlOption. To install the Assembly, specifyAssemblypath,Scheme,IDAndDescriptionParameters. To uninstall the Assembly, specifyAssemblyname,Scheme,IDAndDescriptionParameters. To remove a reference to an assembly, you must specify/IAnd/R(Or/IR)Scheme,IDAndDescriptionParameters. If an assembly is uninstalled, The Global Assembly Cache tool also removes the Assembly from the Global Assembly Cache, provided that it is the last reference to be removed, in addition, Windows Installer does not have a pending reference to this Assembly. SchemeThe parameter specifies the type of the installation solution. You can specify one of the following values:
Uninstall_key: If the installer adds the application to "Add/delete programs" in Microsoft Windows, this value is specified. The application adds itself to "Add/delete programs" by adding the registry key to HKLM \ Software \ Microsoft \ Windows \ CurrentVersion.
Filepath: If the installer does not add the application to "Add/delete programs", this value is specified.
Opaque: specifies this value if the provided registry key or file path is not suitable for your installation scheme. This value allows youIDThe parameter specifies the custom information.
IsIDThe value specified by the parameter depends onSchemeValue specified by the parameter:
IfSchemeSpecify the uninstall_key parameter. Specify the application Assembly name in the Registry key of HKLM \ Software \ Microsoft \ Windows \ CurrentVersion. For example, if the registry key is HKLM \ Software \ Microsoft \ Windows \ CurrentVersion \ MyApp, specify MyAppIDParameters.
IfSchemeSpecify the filepath parameter. Specify the complete path of the executable file of the installation assemblyIDParameters.
IfSchemeIf the opaque parameter is specified, any segment of data can be usedIDParameters are provided. The specified data must be enclosed in quotation marks.
DescriptionThe parameter allows you to specify descriptive text about the application to be installed. This information is displayed when enumeration is referenced. |
/Silent |
Cancel display of all outputs. |
/U Assemblyname |
Detaches an assembly from the global assembly cache. |
/UF Assemblyname |
Removes all references to the Assembly to forcibly uninstall the specified assembly. Specifying this option is equivalent to specifying both/UAnd/F.
|
You cannot use this option to remove the Assembly installed with Microsoft Windows installer. If you try this operation, the Global Assembly Cache tool displays an error message. |
|
/Ul Assemblylistfile |
Detach from Global Assembly CacheAssemblylistfile. |
/U[Ngen]Assemblyname |
Detaches a specified Assembly from the global assembly cache. If the specified assembly has an existing number of references, the Global Assembly Cache tool displays the number of references and does not remove the Assembly from the Global Assembly Cache.
|
In. NET Framework 2.0/Ungen. Instead, use the ngen.exeUninstallCommand. |
In. NET Framework 1.0 and 1.1, specify/UngenGacutil.exe will remove the Assembly from the local image cache. This cache stores the local images of the Assembly created using the local image generator (ngen.exe. |
/UR Assemblyname Scheme ID Description |
Detaches a reference to a specified Assembly from the Global Assembly Cache. To remove a reference to an assembly, you must specify/IAnd/R(Or/IR)Scheme,IDAndDescriptionParameters. For a description of the valid values that can be specified for these parameters, see/R. Specifying this option is equivalent to specifying both/UAnd/R. |
/? |
Displays the command syntax and options of the tool. |
Remarks
The Global Assembly Cache tool provides a cache view function similar to the Windows Shell extension (shfusion. dll), but it is more suitable for generating scripts, generating files, and batch files.
Specifically, gacutil.exe allows you to install the Assembly into the cache, remove the Assembly from the cache, and list the cached content.
Gacutil.exe provides the option to support reference counting, similar to the reference counting solution supported by Windows installer. You can use gacutil.exe to install two applications that install the same assembly. The Global Assembly Cache tool tracks the number of references to this Assembly. The result is that the Assembly will remain on the computer until the two applications are uninstalled. If you use gacutil.exe for actual product installation, use the reference count option. Use both/IAnd/RYou can install the Assembly and add references to count it. Use both/UAnd/RTo remove the reference count of the Assembly. Note: Use it separately/IAnd/UOption does not support reference count. These options apply during product development, but do not apply to actual product installation.
Use/ILOr/UlYou can install or uninstall an assembly stored in an ANSI text file. The content in the text file must be in the correct format. To install an assembly using a text file, specify the path of each Assembly on a separate line in the file. The following example shows the content of the file that contains the assembly to be installed.
Myassembly1.dll myassembly2.dll myassembly3.dll
To uninstall an assembly using a text file, specify a fully qualified assembly name for each Assembly on a separate line in the file. The following example shows the content of the file that contains the assembly to be detached.
myAssembly1,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23ab myAssembly2,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23ab myAssembly3,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23ab
3: regasm.exe Assembly registration tool path: CD/d c: \ WINDOWS \ Microsoft. net \ framework \ v2.0.50727 \ Assembly registration tool reads the metadata in the Assembly and adds the required items to the Registry. The registry allows com client programs to create. NET Framework classes transparently. Once the class is registered, any COM Client program can use it, as if the class is a com class. Class is registered only once when the program is installed. Class instances in the Assembly cannot be created from com until they are actually registered. View msdn, http://msdn.microsoft.com/zh-cn/library/d9kh6s92 (V = vs.80). aspx