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

This custom action should always be put in the “After File Extraction” event, especially if AddUninstReference is set to True.

You can also use Register a shared file custom action to mark the file as shared.

All available actions

© G.D.G. Software 2018. All rights reserved.