PDA

View Full Version : Emulating REGSVR32 and INSTDRV?



NewsArchive
12-13-2001, 01:00 AM
In my installation, I have a need to register a couple items, one using
REGSVR32 and the other using INSTDRV. In both cases the user is punished
with a popup saying it was successful (or not). I would prefer to handle
the registration within the install itself, rather than hook to REGSVR32 and
/or INSTDRV by writing the registry keys out myself, but I'm not sure that
this is all they do.

How can I replace REGSVR32 and/or INSTDRV with my own code, and still feel
confident that the objects are being properly registered?

Thanks.

NewsArchive
12-14-2001, 01:00 AM
REGSVR32 /s option will make the registering silent so the user does not
see.

Paul Rice <EM@IL.COM> wrote in message
news:Xns9176BF19F86D4EMILCOM@12.41.20.42...
> In my installation, I have a need to register a couple items, one using
> REGSVR32 and the other using INSTDRV. In both cases the user is punished
> with a popup saying it was successful (or not). I would prefer to handle
> the registration within the install itself, rather than hook to REGSVR32
and
> /or INSTDRV by writing the registry keys out myself, but I'm not sure that
> this is all they do.
>
> How can I replace REGSVR32 and/or INSTDRV with my own code, and still feel
> confident that the objects are being properly registered?
>
> Thanks.

NewsArchive
12-14-2001, 01:00 AM
Paul,

I am not sure about INSTDRV, but with REGSVR32 you can use switch /s
(silent), so the message won't appear if you specify this switch. After that
you can check the registry records whether the component was registered or
not.

Victor
jaalaM Technologies Inc.
Vancouver Canada

"Paul Rice" <EM@IL.COM> wrote in message
news:Xns9176BF19F86D4EMILCOM@12.41.20.42...
> In my installation, I have a need to register a couple items, one using
> REGSVR32 and the other using INSTDRV. In both cases the user is punished
> with a popup saying it was successful (or not). I would prefer to handle
> the registration within the install itself, rather than hook to REGSVR32
and
> /or INSTDRV by writing the registry keys out myself, but I'm not sure that
> this is all they do.
>
> How can I replace REGSVR32 and/or INSTDRV with my own code, and still feel
> confident that the objects are being properly registered?
>
> Thanks.

NewsArchive
12-14-2001, 01:00 AM
Thanks Victor... and Bob.... I'll give the /S a try.


"Victor S." <vsevastyanov@jaalam.com> wrote in
news:3c1a3a5e$1@news.installshield.com:

> Paul,
>
> I am not sure about INSTDRV, but with REGSVR32 you can use switch /s
> (silent), so the message won't appear if you specify this switch. After
> that you can check the registry records whether the component was
> registered or not.
>
> Victor
> jaalaM Technologies Inc.
> Vancouver Canada
>
> "Paul Rice" <EM@IL.COM> wrote in message
> news:Xns9176BF19F86D4EMILCOM@12.41.20.42...
>> In my installation, I have a need to register a couple items, one
>> using REGSVR32 and the other using INSTDRV. In both cases the user is
>> punished with a popup saying it was successful (or not). I would
>> prefer to handle the registration within the install itself, rather
>> than hook to REGSVR32 and /or INSTDRV by writing the registry keys out
>> myself, but I'm not sure that this is all they do.
>>
>> How can I replace REGSVR32 and/or INSTDRV with my own code, and still
>> feel confident that the objects are being properly registered?
>>
>> Thanks.
>
>