Command Reference

Register File

Registers a file on the the local system. This action uses the DLLRegisterServer in order to register a DLL or OCX file.

Action ID: 53
Action Category: File Operations

Settings

Location

Source

The path and filename of the file that you wish to register. This action will most commonly be used on DLL or OCX files.

Return Values

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0

OK

 

1

Failed to register file.

Failure in LoadLibrary() [<<System error code>>
<<File name>>

2

Failed to register file.

Failure in GetProcAddress(DLLRegisterServer) [<<System error code>>]
<<File name>>

3

Failed to register file.

Failure code returned by DLLRegisterServer
<<File name>>

4

Failed to register file.

File not found.
<<File name>>

Example

In this example, we will register a file called "MyControl.dll" in the user's system directory.

Note: %SysDir% is a built-in variable.

Source: %SysDir%\mycontrol.dll

 

See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab