Todd,
I am using cmd windows and .cmd files for these tests.
I can tell that RegSvr32 is launching itself as a separate process because
in one test scenerio, the prompt returns quickly, while the success dialog
appears 10 to 20 seconds later. Ufortunately, I can not use that in
production. We really want the user to be able to see the name of each
object being registered and the registration tasks overall progress. We
just don't want registration of 77 objects to take 8 to 9 minutes in spurts
of some fast and some slow.
What are the mechanics of RegSvr32? Does it do more than make registry
entries? We have never encountered such poor performance from it before.
Is it VS2005? DotNet 2.0? Is it because our COM dll's are much 'richer' now
with dependencies that must be tracked down as part of registration? I have
tried tinkering with the PATH and putting our folders first in the chain.
No joy there either.
Thanks,
Gene
"Todd Vargo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "Gene" <(E-Mail Removed)> wrote in message
> news:kJdJh.7320$(E-Mail Removed)...
> > Invoking a second command processor is not required. However, in this
> case,
> > it caused the slow behavior in a situation where it wasn't before.
> >
> > Matthias' solution fixed the problem in the command window.
Unfortunately
> > for me, these were all examples. The problem persists in production.
> Even
> > when I give full paths to everything in a command file.
> >
> > "C:\WINDOWS\system32\RegSvr32.exe" /S "C:\Program Files\Common
> > Files\Software\Shared Components\DLL1.dll"
> > "C:\WINDOWS\system32\RegSvr32.exe" /S "C:\Program Files\Common
> > Files\Software\Shared Components\DLL2.dll"
> >
> > So, I am back to where I started. Typing via a command window works,
but
> > doing the same thing via a command file is slow.
>
> When you say command window, are you using CMD or COMMAND? Likewise, when
> you say "command file", are you using .cmd or .bat extension?
>
> ISTM, RegSvr32.exe is a GUI utility which may be opening a separate
process
> depending one which command processor is used. Are you sure RegSvr32.exe
is
> completing it's task before returning the command prompt? You might try
> typing the RegSvr32.exe command and watch task manager to verify it's not
> actually still running in the background after the prompt has already
> returned. This may explain why the command line appears to be faster than
a
> batch file. Just a guess.
>
> --
> Todd Vargo
> (Post questions to group only. Remove "z" to email personal messages)
>
|