PDA

View Full Version : Vista - OCX registration



NewsArchive
01-10-2008, 04:33 AM
Hi Friedrich,

Now with Windows Vista you need administrator rights to register
OCX/ActiveX. In our update we have such components.

The problem: in 99% percent of the cases the ocx is already registered so if
the registering (user has not admin rights) fails it doesn't matter - so far
so good. Of course one of the ocx might have changed and this time it has to
be registered.

Question: Is it possible to check the fileversion and check if the ocx is
registered from within setupbuilder? If yes I could start another setup
(that requires admin rights) when our update has finished.

Is this possible or do you have a better idea how to accomplish that?

Thanks for your input

Regards,
Hanspeter Stutz
ARCO Software AG

NewsArchive
01-10-2008, 04:33 AM
Hi Hanspeter,

Because it's the OCX that registers itself (the installer only calls the
functions in the OCX to start the registration process), only the OCX can
find out if it is already registered. If you know which registry
keys/values are created during the registration process, you can check the
existence of these keys/values.

Does this help?

Friedrich

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

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
01-11-2008, 02:24 AM
Hi Friedrich,

Guess I will find this out (even if there's some work involved which I'm
used SB is doing for me <g>). Any sample script that allows to check if the
file (version/date etc.) is already installed?

TIA
Hanspeter

NewsArchive
01-11-2008, 02:26 AM
Hi Hanspeter,

> Guess I will find this out (even if there's some work involved which I'm
> used SB is doing for me <g>).

<G> :)

> Any sample script that allows to check if the file (version/date etc.)
> is already installed?

The "Get File Information..." gives you access to all the information you
need. Date/Time, Product Version, File CRC32, etc.

The following thread demonstrates how to delete a file with a specific file
date. You can use the same method to check if a file with a specific
version is available (see attached screenshot).

http://www.lindersoft.com/forums/showthread.php?t=5927

Does this help?

Friedrich

NewsArchive
01-11-2008, 02:27 AM
Hi Friedrich,

Yep, that will help

Thanks a lot
Hanspeter