473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Conditional installation of ActiveX components

I'm writing an application in VB.NET that uses various 3rd party
ActiveX components. My problem is that if I register these ActiveX
components (using COMSelfRegister) during the install and later
uninstall my application, the ActiveX components are removed -
breaking any other applications that still need them. If I don't
register the ActiveX components, and they are not already installed on
the computer, my application will not run.

The solution appears to be some sort of Custom Install step where I
determine somehow whether each component is installed, then install it
if it is not.

Does anyone have experience with a similar problem, or examples of how
to build a custom installation that can selectively install ActiveX
components?
Jul 21 '05 #1
2 1420
Anyone at all?
Jul 21 '05 #2
The best solution is to use a Merge Module from the developer of the
components. That way, all the components have the same ComponentID to
Windows Installer, and they'll be ref-counted.

If that doesn't work, in your setup project you can do a Registry Search
for the path to the HKCR registration information. For your ActiveX
components, edit the Condition property so that it is something like
REGISTRYSEARCH1="" (it will only install if the search didn't find
anything, i.e. it isn't already installed).
---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: mb*******@mail.com (Mike)
Newsgroups: microsoft.public.dotnet.general
Subject: Re: Conditional installation of ActiveX components
Date: 17 Nov 2003 06:26:51 -0800
Organization: http://groups.google.com
Lines: 1
Message-ID: <f5*************************@posting.google.com>
References: <f5**************************@posting.google.com >
NNTP-Posting-Host: 160.79.228.107
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1069079212 28383 127.0.0.1 (17 Nov 2003 14:26:52 GMT)X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Mon, 17 Nov 2003 14:26:52 +0000 (UTC)
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnew s1.google.com!no
t-for-mailXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:115832
X-Tomcat-NG: microsoft.public.dotnet.general

Anyone at all?


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Berata | last post by:
Hello all, in VB6 we were able to create ActiveX-DLL's (In Process Components) and ActiveX-Exe's (Out of Process Components). We habe build up an application that exists of an main module...
2
by: Jimbo | last post by:
I am trying to install Sql Server on a Win 2000 Server...It keeps failing and I dont know why...I turned off my anti-virus for installation and am logged in as an admin..heres the output of the...
1
by: efriend | last post by:
Does the inability in .net to add activex components like in VB6 signal Microsoft's plans to deprecate com and activex?
0
by: Hernan Garber | last post by:
Hi, Attached, the installation log. Win 2k Server SP3 IE6SP1/SQL Server Installed Thanks Setup.exe: Setup.exe: ========== Logging started ==========
3
by: Mike | last post by:
I'm writing an application in VB.NET that uses various 3rd party ActiveX components. My problem is that if I register these ActiveX components (using COMSelfRegister) during the install and later...
4
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always...
2
by: pagates | last post by:
Hello All, I have created a C# project that sets "Register for COM Interop" to true, and sets the ProgId and Guid attributes for the class. I then use this control inside VB6. This all works...
8
by: Martijn Boven | last post by:
I created a activex control in c# (vs 2005) -------------------------------------------- public partial class ActiveTest : UserControl { public ActiveTest()
6
by: patrick j | last post by:
Hi I've been testing out the "Conditional Comment" for IE. This is because for my web-site I want to have two style sheets, one for IE 6 and one for other browsers. Thus I hope to have my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.