Link to home
Start Free TrialLog in
Avatar of Éric Moreau
Éric MoreauFlag for Canada

asked on

Register threed16.ocx silently

Some of my users got their current setup (part VB4 and part VB6) corrupt by installing a new software (Streets & Maps).

The corruption is that threed16.ocx seems to be removed from the registry.

I have an application that updates the PCs. This application registers 32-bits OCX and DLL (using REGIT.exe). Since threed16.ocx is a 16-bits components, REGIT cannot register it.

I was thinking of using regsvr16.exe to register it but it doesn't have the /s option (to register silently).

My questions are:
-How can I register 16-bits components from my updater silently.
-Is there a REGIT16.EXE ?
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

ASKER

I just discovered that the /s is supported by regsvr16 but is not documented.

My other question is still valid: Is there a REGIT16.EXE ?
Avatar of jmwheeler
jmwheeler

No, there does not appear to be a REGIT16.exe anywhere that I can find.
ASKER CERTIFIED SOLUTION
Avatar of Matti
Matti
Flag of Finland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I ended creating a batch file and calling the batch file from my updater application.

The batch file simply call the regsvr16 command line.
\\blxca7\billet_maint\GestVer\regsvr16.exe /s spin16.ocx
Matti, do you know if the following line is valid in a VB6 application?

Declare Function DLLSelfRegister Lib "STKIT416.DLL" (ByVal lpDllName As String) As Integer

That function is from VB 4 16bit setup toolkit and code made whit it. Did not found a regsvr16.exe from my macine, got one VB 4.0 bit part of Ent version installed on XP.

MS claims about those files on KB186597

"These commands are included in the development kit when Visual Basic or Visual FoxPro is installed"

Also the command syntax is there, regsvr shuld give the command line option whit /? switch.

Matti

   
>>That function is from VB 4 16bit setup toolkit and code made whit it

I know. I have open the setup1.vbp VB4 project this morning to see they register DLLs but I didn't try it from a VB6 application. I don't think it would work. Maybe I'm wrong too.

>>Did not found a regsvr16.exe from my macine

I had it already.

>>Also the command syntax is there, regsvr shuld give the command line option whit /? switch.

Only /u is documented.
thanks for your help (even if I don't use this solution - and I am still not sure if that call can be made from a VB6 application).