Regsvr32 return value

  • Thread starter Thread starter Robin Hammond
  • Start date Start date
R

Robin Hammond

Can anyone point me to the online documentation for regsvr. I've been
looking on msdn and cannot find anything useful.

In particular, I'm trying to work out what the return value means.

I have regsvr running using the /s silent switch, with a distributed add-in
master loader checking for version updates of any component files, which may
include ocx or dll file types that are downloaded but may need to be
registered.

A successful ocx registration is returning 3892, while an unsuccessful dll
registration is returning 2512. I need to be able to handle any registration
errors but the numbers coming back don't seem to make much sense.

Thanks in advance.

Robin Hammond
www.enhanceddatasystems.com
Check out our XspandXL add-in
 
Hi Robin H,

Which return are you talking. Is it from shell function like below?
return = Shell "REGSVR32.EXE /s """ & Application.Path & "\yourfile.ocx"""

If so, then it isn't much useful for error control since it returns only the
task ID of the Windows started program.

I think you have to verify directly on registry, if the registration had
success.

HTH
 
Back
Top