Skip to content

Self-Register a File (ActiveX, OLE)

This action registers .dll and ActiveX control files as command components in Windows registry. It is similar to Windows REGSVR32.EXE utility except that you do not need to ship this tool with your package if you use this custom action.

Finally, if the package includes an uninstaller, this custom action may also put a reference into the uninstaller log, so the registered DLL or OCX file is unregistered when the package is uninstalled by end users.

Property NameData TypeDescription
AddUninstReferenceBooleanIf true, the package will add a reference to this file in the uninstaller log file. The file will be first unregistered and then safely removed if no other application uses it.
ServerFileStringFull path to the file you want to self-register. The file must exist when this custom action is executed. For example %SYS%\Control.ocx