regsvr32 Command widget registers the OCX control, registering the control (including more than 10 examples)

Source: Internet
Author: User
Tags ole

Regsvr32

Process files: regsvr32 or regsvr32.exe
Process Name: Microsoft DLL Registration Service
English Description:
Regsvr32.exe is a processes belonging to the Windows OS and are used to register Dynamic-link libraries and ActiveX control s in the registry.
English Description:
Regsvr32.exe is used to register and unregister DLLs (dynamic link library) files and ActiveX controls for the Windows operating system.


This command-line tool registers the DLL file as a command in the registry.
Grammar

regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname where dllname is the file name of the ActiveX control, it is recommended that you copy it to the System folder before installation.

Parameters
/U anti-registration control

/s specifies regsvr32 to run silently and does not display any message boxes.

/n Specifies not to call DllRegisterServer. This option must be used in conjunction with/I.

/i:cmdline calls DllInstall to pass it to an optional [cmdline]. When used in conjunction with/U, it calls the DLL unload.

DLLNAME Specifies the DLL file name to register.

/? Displays help at the command prompt.

Example:

To register the. dll for Active Directory Schema, type the following command at the MS-DOS prompt:

C:\regsvr32 Schmmgmt.dll

Regsvr32 is a system file
Many friends have used the Regsvr32.exe command provided under Windows System. Don't look down upon this little command. Sometimes it can help you solve big problems.

System fault resolution Small method: System and System comes with software (such as: Ie,wmplayer, etc.) error, most due to dynamic link library (DLL) file or ActiveX control (OCX) file corruption, can cause a variety of system failures, even re-install IE, even the system, the problem remains. You can use Regsvr32 tool repair.

How to use: Start → run, enter regsvr32 *.dll or regsvr32 *.ocx

One, easy to repair IE browser


regsvr32 Shdocvw.dll
regsvr32 Oleaut32.dll
regsvr32 Actxprxy.dll
regsvr32 Mshtml.dll
regsvr32 Urlmon.dll
regsvr32 jscript.dll
Running the above command at the same time can solve the following IE problems:
IE can not open a new window, with the mouse to click on the hyperlink does not have any response to the problem; The page is not complete, the Java effect does not appear, the page does not automatically jump, open some Web site when the general prompt ' Unable to display the page ', the status bar displays ' Error on the page ' prompt.

Second, Windows cannot upgrade online----regsvr32 wupdinfo.dll

Three. Search function, Help and support of XP system. Management tools, etc., open without any reaction------regsvr32 shdocvw.dll


Four. When adding/removing programs in the Control Panel, double-clicking on its icon does not respond, or it turns off automatically after opening or after opening a blank.
regsvr32 appwiz.cpl
regsvr32 Mshtml.dll
regsvr32 jscript.dll
regsvr32 msi.dll
regsvr32 C:\Program Files\Common Files\System\Ole DB\Oledb32.dll
regsvr32 C:\Program Files\Common Files\system\ado\msado15.dll
regsvr32 mshtmled.dll
regsvr32/i Shdocvw.dll
regsvr32/i Shell32.dll

Five. Do not use thumbnails to view files in the folder
2000:regsvr32 C:\Winnt\System32\thumbvw.dll
Xp:regsvr32 Shimgvw.dll


Six. Search ' function of Search Assistant panel blank and System Restore function can not be used and so on. 1
Workaround: regsvr32 vbscript.dll
regsvr32 jscript.dll

Seven. Winplayer 9 prompts ' internal application error ' on open, 2:
regsvr32 jscript.dll

Eight. Restore Windows default File associations
rundl32l setup.dll,installhinfsection DefaultInstall C:\windows\inf\shell.inf
regsvr32.exe/i Shdocvw.dll
regsvr32/i Shell32.dll
regsvr32.exe/i Shdoc401.dll

Note 1: An important parameter of/U (uninstall. DLL or. ocx file, resulting in a system error)

such as: Regsvr32/u Jscript.dll will appear in seven error.

Note 2: Some system failure to register a lot of. dll files, you can use Notepad to build a file, to copy those commands. Then save as "fix. bat" and run "fix. bat" to fix it.

My fix. bat, register all the. dll files above
regsvr32 Shdocvw.dll
regsvr32 Oleaut32.dll
regsvr32 Actxprxy.dll
regsvr32 Mshtml.dll
regsvr32 Urlmon.dll
regsvr32 jscript.dll
regsvr32 wupdinfo.dll
rundll32 Setup.dll,installhinfsection DefaultInstall C:\windows\inf\shell.inf
regsvr32.exe/i Shdocvw.dll
regsvr32/i Shell32.dll
regsvr32.exe/i Shdoc401.dll
regsvr32 shdocvw.dll
regsvr32 vbscript.dll

1. Easy Fix IE browser

regsvr32 Shdocvw.dll
regsvr32 Oleaut32.dll
regsvr32 Actxprxy.dll
regsvr32 Mshtml.dll
regsvr32 Urlmon.dll
regsvr32 browseui.dll

function: Solve the problem that IE can't open new window, use mouse to click Hyperlink without any reaction, page display is incomplete, Java effect does not appear, general prompt ' Unable to display this page ' when opening some websites

2. No response when opening system function

regsvr32 urlmon.dll
regsvr32 shdocvw.dll

Role: Solve the problem of clicking on the search function, help and support or management tools of XP system without any reaction

3. Restore the desktop display

regsvr32/n/i:u Shell32

Role: Sometimes, we will accidentally remove the "Show desktop" icon in the Quick Launch bar, want to retrieve it, run the above command, write off a bit.

4. Unable to open Add/Remove Programs

regsvr32 appwiz.cpl
regsvr32 Mshtml.dll
regsvr32 jscript.dll
regsvr32 msi.dll
regsvr32 \ "C:\\Program Files\\Common Files\\system\\ole db\\oledb32.dll\"
regsvr32 \ "C:\\Program Files\\Common Files\\system\\ado\\msado15.dll\"
regsvr32 mshtmled.dll
regsvr32/i Shdocvw.dll
regsvr32/i Shell32.dll

Action: Resolves an issue when opening the Add/Remove program in Control Panel by double-clicking its icon without responding, or turning it off automatically

5. The "User account" option in the XP Control panel cannot be opened

regsvr32 nusrmgr.cpl
regsvr32 Mshtml.dll
regsvr32 jscript.dll
regsvr32/i Shdocvw.dll

Role: When you open the "user account" of the system, a blank question appears

6. Recover/Disable FSO function

Now a lot of people use their own computer to build forums, websites, forums or dynamic website programs can be online file management, but often someone reflects their own forum, the site can not manage files online, this is because the FSO function of the server is not turned on or failure reasons. In this case, we need to restore the FSO function

regsvr32 scrrun.dll
----------
Network script virus embedded in the Web page, we will unknowingly infect the Internet virus. However, the replication and propagation of network script viruses are inseparable from FSO objects (File system object, filesystem objects), so disabling FSO objects can effectively control the propagation of script viruses. So if you want to make the system more secure, then disable the FSO function

regsvr32/u Scrrun.dll

7. Fix cannot thumbnail view file problem

2000:regsvr32 Thumbvw.dll
Xp/2003:regsvr32 Shimgvw.dll

8. The Internet Express right-click menu is not available

This problem is generally seen in the green-free installation version or after the system reload.
Under command prompt, enter the CD C:\program files\flashget (Flashget default installation location) command, switch to the Flashget installation path, and then perform the Regsvr32 Jccatch.dll and Regsvr32 fgiebar.dll "command is OK.
9. Almighty ^_^

There are some strange questions, please use the following two commands on the basis of each example above

regsvr32 jscript.dll
regsvr32 vbscript.dll

10. Desktop right-click menu for Intel integrated graphics Slow problem

Regsvr32/u Igfxpph.dll

11. Turn off the preview function of movies such as AVI (some friends will make an error when previewing, this method can be used):

Regsvr32/u Shmedia.dll

12. Disable Windows Scripting Host (AI virus is the attack by it):

Regsvr32/u Wshom.ocx
Regsvr32/u Wshext.dll

13. Let the new version of WMP player appear on the Web page

Regsvr32 Wmpdxm.dll

14. Resolve the memory can not be read and other issues, one time to register all DLL file system files

System DLL files are not registered, may cause a variety of unknown problems, such as the inability to open two-level links, often "memory cannot be read or written" and other errors. How to re-register all DLL files again?

Enter CMD in the run, and at the command prompt, enter:
For%1 in (%windir%\system32\*.dll) does regsvr32.exe/s%1
Attached: Microsoft Official information--regsvr32 error messages and possible causes

1, Unrecognized Flag:/invalid_flag
Unrecognized flag or invalid combination of typed flags or switches

2, No DLL name specified.
The DLL name is not specified. The. dll file name is not added

3. Dllname was loaded and the DllRegisterServer or DllUnregisterServer entry point is not found.
Dllname has been loaded, but no DllRegisterServer or DllUnregisterServer entry points have been found. Dllname is not a. dll or. ocx file. For example, typing regsvr32 wjview.exe generates the error message.

4. Dllname is a executable file and no registration helper is registered for the this file type.
Dllname is not an executable file, and no registration helper is registered for this type of file. Dllname is not an executable file (. exe,. dll, or. ocx). For example, typing regsvr32 autoexec.bat generates the error message.

5. Dllname was loaded and the DllRegisterServer or DllUnregisterServer entry point is not found.
Dllname has been loaded, but no DllRegisterServer or DllUnregisterServer entry points have been found. Dllname may not be exported, or there is a corrupted Dllname version in memory. We recommend that you use Pview to detect the file and remove it.

6, Dllname is isn't self-registerable or a corrupted version is in memory.
Dllname cannot register itself, or there is a corrupted version in memory. For example, the error message is returned after you type regsvr32 icwdial.dll because the Icwdial.dll file cannot be registered by itself. If you suspect that there is a corrupted version of Dllname in memory, try restarting the computer or re-extracting the original version of the file. If you are running Windows NT, you may need to use the Kill or Pview tool in the Microsoft Windows NT Server 4.0 Resource Kit.

7, OleInitialize failed (or OleUninitialize failed).
OleInitialize failed (or OleUninitialize failed). Regsvr32 must initialize the COM library before invoking the required COM library functions and undoing the initialization of the library when it is closed. These error messages occur if you attempt to initialize or undo initialization of a COM library. For example, the Ole32.dll file may be damaged or its version is incorrect.

8. Regsvr32.exe and Dependencies
RegSvr32.exe relies on Kernel32.dll, User32.dll, and Ole32.dll files (in Windows NT, also on Msvcrt.dll and Advapi32.dll files). Regsvr32.exe will load the file you are trying to register or unregister and all of its dependencies. If the required files are missing or the files are corrupted, the process may fail.

http://blog.csdn.net/yanjiaye520/article/details/6700239

regsvr32 Command widget registers the OCX control, registering the control (including more than 10 examples)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.