|
Hi! I need a little help with system checks or something, . . . I'm installing an ocx, what I would like to do is to check if the ocx is already installed, then compare the version with my current one. If the version is == or newer, then skip the remainder of the installation, if the version is < the current, I want to unregister the old one, install the new one and reregister it.
when the ocx is installed there is a hkcr\objectname\CLSID that is set. Obviously, if it is present, the ocx has previously been installed, so I want to go the CLSID location and retrieve the InprocServer32 location (thats where the ocx is installed on the machine). I then want to unregister it, copy the new files to the same location, and re-register. Is this something that BMG can do? If so, can someone help me with the steps and what I put in each field? It's not entirely obvious.
Thanks.
|