473,811 Members | 3,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1453
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.publi c.dotnet.genera l
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************ *************@p osting.google.c om>
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**********@go ogle.com
NNTP-Posting-Date: Mon, 17 Nov 2003 14:26:52 +0000 (UTC)
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!po stnews1.google. com!no
t-for-mailXref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:115832
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

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
5359
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 (Standard Exe) that calls and controls other modules (ActiveX-Exe). We decided for ActiveX-Exe because they run in different processes. That means if one module shuts down, the others are still alive. Second reasons
2
2999
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 log... 21:40:32 Begin Setup 21:40:32 8.00.194 21:40:32 Mode = Normal 21:40:32 ModeType = NORMAL
1
1627
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
3031
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
375
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 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. ...
4
7306
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 get the same error message: "An error occurred while creating one or more registry entries. Please see C:\WINDOWS\sqlstp.log for details. The problem could be caused by a low registry quota condition" I have tried to clean the registry and i...
2
4490
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 correctly on my development machine (oh no, one of those!), creating a DLL and a tlb on each compile, and setting the entries in the registry. It also appears to work correctly on a separate Build machine, where the output then gets packaged for...
8
6805
by: Martijn Boven | last post by:
I created a activex control in c# (vs 2005) -------------------------------------------- public partial class ActiveTest : UserControl { public ActiveTest()
6
2086
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 web-site as I want it for "other browsers" but still have it presentable in IE. I understand why the conditional comment works, despite the subject header for this posting. What I don't understand is why IE "ignores" the link to the CSS that precedes...
0
9604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10394
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10127
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7665
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4336
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.