See Also: How to add buttons from this forum to your toolbars.
This button will register the selected .DLL, .OCX, .AX (etc.) file(s) using regsvr32.
The @admin modifier is included so that it works on Vista as well as previous versions of Windows.
(Original button by Garbanzo, with slight modifications by me.)
<?xml version="1.0"?>
<button backcol="none" display="icon" separate="yes" textcol="none" type="three_button">
<label>DLL / OCX</label>
<icon1>#misc</icon1>
<button backcol="none" display="icon" textcol="none">
<label>Register DLL / OCX</label>
<icon1>#misc</icon1>
<function type="normal">
<instruction>@admin</instruction>
<instruction>@sync: regsvr32.exe {filepath$} </instruction>
</function>
</button>
<button backcol="none" display="icon" textcol="none">
<label>Unregister DLL / OCX</label>
<icon1>#misc</icon1>
<function type="normal">
<instruction>@admin</instruction>
<instruction>@sync: regsvr32.exe /u {filepath$} </instruction>
</function>
</button>
</button>
Another tip: