You’ll need to open Command Prompt in Admin mode to make the changes especially when User Account Control (UAC) is enabled on your Windows 10 machine. CD to system32 for 64-bit registration and SysWoW64 for 32-bit registration.
Place the COM component in the folder from you want to register and also your executable is placed e.g. “C:\Code\bin\” in the example below.
To register use the below command:
To unregister use the below command:
regsvr32 /u "C:\Code\bin\MailObj.dll"
You should get a prompt that the register/unregister command succeeded.
This command can be used to register/unregister DLL or OCX files.