Registering in Windows10 regsvr32 xxx.ocx reported an error but the call to DIIRegisterServer failed with error code 0x80040200…

There is a machine to read the resident id card on the website. It needs to install some registered activeX controls
and then enter the specified directory to execute the following command
regsvr32 XXX. Ocx
reported an error:
but the call to DIIRegisterServer failed with error code 0x80040200

 
Baidu once, found the reason is very simple, need to use the administrator identity to run
Type CMD from the control panel and right click Run as Administrator

This time it worked
 

Reproduced in: https://www.cnblogs.com/qianjinyan/p/9405534.html

Read More: