PDA

Click to See Complete Forum and Search --> : Register ocx file in winxp


Aman Pulido II
Dec 9th, 2005, 03:24 AM
I am trying to register a .ocx file in windows xp (msinet.ocx this is a built in component of vb6). i developed a program in excel that requires a certain report to be ftp'd in the server.The users unfortunately dont have VB6 on their workstations. Upon installing the program, users must place a copy of the .ocx file to a specific directory. I am planning to create a batch program to do this but i don't know how to register the ocx. MS Excel cannot recognize the control even it is in the right directory unless it's registered.

do you have any suggestions pls?

randem
Dec 9th, 2005, 03:27 AM
Please read Installation Problems in my signature.

sishe
Dec 9th, 2005, 03:30 AM
You'd better prepare an installation script with "Package and Deployment Wizard" for users to install the program.

If you want to register the ocx manually, you can use "regsvr32 msinet.ocx" and you must give full path of ocx in the line like "regsvr32 c:\Test\msinet.ocx"

Edit : Sorry for rpt..

Keithuk
Dec 9th, 2005, 07:33 AM
I've made apps for people with WinXP and I just put the ocx's in the Win\Sys folder. I didn't have to register them, the apps work perfectly without.

Your msinet.ocx will need to be in the Win\Sys folder not App folder.

Don't forget you may need Admin rights on Win2k/XP machines. ;)

Hack
Dec 9th, 2005, 07:59 AM
Moved to Application Deployment.

Dave Sell
Dec 9th, 2005, 10:47 AM
maybe this helps:

http://www.vbforums.com/showpost.php?p=2273685&postcount=18