regsvr32

  • Thread starter Thread starter Seth
  • Start date Start date
S

Seth

Does anyone know how to programmatically run regsvr32
from VB? I know it is an API call (or at least, I am
pretty sure!). Just a reference to a place that talks
about it would be great! Basically, I want to make sure
the user has a certain .ocx installed (registered), and,
if not, I want to register it.

Thanks!

Seth
 
the first argument is the whole string you would type in at the command
prompt

res = Shell("regsvr32.exe C:\Windows\MyCtrl.ocx")

I guess you would have to query the registry. I have never attempted it or
had a need to.

Regards,
Tom Ogilvy
 
Hi Seth

If it doesn't exist then it probably isn't in the C:\Windows directory. If it does then it
probably doesn't need to be registered.

No big deal maybe, but any decent setup program installs/registers something ONLY if it's
not there or if what's there is an older version. If already there or if newer verson is
there then do absolutely nothing.
 
Back
Top