View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Orlando Magalhães Filho Orlando Magalhães Filho is offline
external usenet poster
 
Posts: 35
Default Regsvr32 return value

Your welcome.

Orlando Magalhães Filho

"Robin Hammond" escreveu na mensagem
...
Orlando,

Thanks for the quick response. That's exactly what I am getting. It makes
sense now.

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


"Orlando Magalhães Filho" wrote in message
...
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

---
Orlando Magalhães Filho

(So that you get best and rapid solution and all may benefit from the
discussion, please reply within the newsgroup, not in email)


"Robin Hammond" escreveu na mensagem
...
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