NAnt
Help
Task Reference
<comregister> |
NAnt.Contrib.Tasks () |
Register COM servers or typelibraries.
COM register task will try and register any type of COM related file that needs registering. .exe files will be registered as exe servers, .tlb files registered with RegisterTypeLib and for all other filetypes it will attempt to register them as dll servers.
| Attribute | Type | Description | Required |
|---|---|---|---|
| file | string | The name of the file to register. This is provided as an alternate to using the task's fileset. | False |
| unregister | bool | Unregistering this time. ( /u paramater )Default is "false". | False |
| failonerror | bool | False | |
| if | bool | False | |
| unless | bool | False | |
| verbose | bool | False |
Register a single dll server.
<comregister file="myComServer.dll"/>
Register a single exe server
<comregister file="myComServer.exe"/>
Register a set of COM files at once.
<comregister unregister="false">
<fileset>
<includes name="an_ExeServer.exe"/>
<includes name="a_TypeLibrary.tlb"/>
<includes name="a_DllServer.dll"/>
<includes name="an_OcxServer.ocx"/>
</fileset>
</comregister>