PDA

View Full Version : Check if activex control is installed



NewsArchive
10-01-2010, 12:44 AM
Hi all,

During installation I would like to check if XXX activeX COM object is
installed on user PC. And then (if it is not installed) show a message. How
I can do this?

Gennadi

NewsArchive
10-01-2010, 12:45 AM
Gennadi,

> During installation I would like to check if XXX activeX COM object is
> installed on user PC. And then (if it is not installed) show a message.
> How I can do this?

First of all, you can use the "If File/Folder Exists..." function to see if
the file exists (e.g. in the SYSTEM32 folder). But this does not tell you
if it is "registered".

An ActiveX writes specific information to the (HKLM) registry during the
self-registration process. You can use the "Get Registry Key Value..."
function to retrieve values from the registry and use this information to
determine whether or not the specific ActiveX is registered.

Hope this helps.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows 7 installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
10-01-2010, 12:45 AM
Hi friedrich,

>> During installation I would like to check if XXX activeX COM object is
>> installed on user PC. And then (if it is not installed) show a message.
>> How I can do this?
>

> An ActiveX writes specific information to the (HKLM) registry during the
> self-registration process. You can use the "Get Registry Key Value..."
> function to retrieve values from the registry and use this information to
> determine whether or not the specific ActiveX is registered.
Yes! This should works!

thanks,
gennadi

NewsArchive
10-01-2010, 12:46 AM
Yah, that's what I do. I read the CLSID Key then compare the GUID to
what I'm expecting it to be.

I used to try to read Inprocserver32, but that was giving permission
problems on some machines.

Jeff Slarve