Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > BMG System Checks
 

BMG System Checks

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.

Robotuner  Sunday, September 06, 2009 1:13 AM
I didn't realize I could do all that in the setup and deployment package. Thanks
  • Marked As Answer byRobotuner Sunday, September 06, 2009 2:44 PM
  •  
Robotuner  Sunday, September 06, 2009 4:28 AM
Not if you are referring to the Bootstrapper Manifest Generator. All that does is generate the manifest files for Visual Studio so you can roll your own prerequisites. I think what you are looking for is the setup & deployment package. It's not available in the Express versions of Visual Studio, but is in all of the others.

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Sunday, September 06, 2009 2:34 AM
I didn't realize I could do all that in the setup and deployment package. Thanks
  • Marked As Answer byRobotuner Sunday, September 06, 2009 2:44 PM
  •  
Robotuner  Sunday, September 06, 2009 4:28 AM

You can use google to search for other answers

Custom Search

More Threads

• Secure web installation
• Deployment problem (after like 70 deployments)
• Advertising a COM Add-In
• Administrator required to install
• VS 2008 ClickOnce NOT working in Firefox! Looking for definitive answer.
• ClickOnce - not installing
• Windows Installer Shortcuts point to strange targets
• How can I Installed different files according to the selection in the dialog
• How we can change the Default Location in vb.net setup project
• Destination program folder used in OneClick setup