ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Regsvr32 return value (https://www.excelbanter.com/excel-programming/276033-regsvr32-return-value.html)

Robin Hammond

Regsvr32 return value
 
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





Orlando Magalhães Filho

Regsvr32 return value
 
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







Orlando Magalhães Filho

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












All times are GMT +1. The time now is 07:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com