A1VBCode Forums

using regsvr32


http://www.a1vbcode.com/vbforums/Topic13755.aspx

By Hal - 8/21/2005

Hello

This is a real newbie ques. I was told that to activate my olch2x7.ocx I need to run regsvr32. Well, how do I run it? If I click on it it asks how do I want to open it from a list or web. That doesn't tell me much.

thanks for any help!

Duane

By Spsp1981 - 11/7/2005

You can also copy the following lines in a plain text file with .reg extension. This will add the commands "Register" & "Unregister" to the file context menu.

---------------------------------------------------------

REGEDIT4



[HKEY_CLASSES_ROOT\.ax]

@="ocxfile"



[HKEY_CLASSES_ROOT\.ocx]

@="ocxfile"



[HKEY_CLASSES_ROOT\.dll]

@="dllfile"



[HKEY_CLASSES_ROOT\dllfile\Shell]



[HKEY_CLASSES_ROOT\dllfile\Shell\Register]

@="&Register"



[HKEY_CLASSES_ROOT\dllfile\Shell\Register\Command]

@="c:\\windows\\system\\regsvr32.exe \"%1\""



[HKEY_CLASSES_ROOT\dllfile\Shell\Unregister]

@="&Unregister"



[HKEY_CLASSES_ROOT\dllfile\Shell\Unregister\Command]

@="c:\\windows\\system\\regsvr32.exe -u \"%1\""



[HKEY_CLASSES_ROOT\ocxfile\Shell]



[HKEY_CLASSES_ROOT\dllfile\Shell\Register]

@="&Register"



[HKEY_CLASSES_ROOT\dllfile\Shell\Register\Command]

@="c:\\windows\\system\\regsvr32.exe \"%1\""



[HKEY_CLASSES_ROOT\dllfile\Shell\Unregister]

@="&Unregister"



[HKEY_CLASSES_ROOT\dllfile\Shell\Unregister\Command]

@="c:\\windows\\system\\regsvr32.exe -u \"%1\""

---------------------------------------------------------