Solved

How to remove a component from VB6

Posted on 2004-08-18
7
259 Views
Last Modified: 2008-01-16
How does one remove a component from the component list in VB6? We don't want to use it again, ever.

I'm not very proficient at VB, so this is a newbie question.

A customer installed a demo component into their VB6 development environment while logged in as USERA.
The machine, a WinXP Pro box, had been part of a workgroup when this was installed.  The workstation joined a domain, which created a new profile for the user(USERB).  We have tried to migrate the profile from USERA to USERB.

When USERB starts up VB, they get prompted for the installation CD from the demo.  They can cancel through the questions/prompts, but its annoying.   When USERA starts up VB, they get no prompts for installation.  We're trying to uninstall the demo component all together, but don't have the demo CD, its not listed in the "Add/Remove Programs" list, and we don't find any "un-install" menu item.  

I surmise that the component's install didn't install the component with "All Users" security; instead it must have installed it only for the current user (which was USERA, at the time).    We can delete directories and the .OCX files, but I'd like to get it removed from their component list completely, regardless of user.

0
Comment
Question by:studios
  • 4
7 Comments
 
LVL 7

Expert Comment

by:Burbble
Comment Utility
I'm not positive on this, but you can try unregistering the component:

Start > Run :

regsvr32 /u FILENAME.OCX

I will look into this further and get back to you if I find anything.

-Burbble
0
 
LVL 7

Accepted Solution

by:
Burbble earned 250 total points
Comment Utility
Yep, that does it. If it's not located in the WINDOWS\SYSTEM directory, you will have to type the full path surrounded by quotes:

regsvr32 /u "C:\Program Files\Application\MyActiveXControl.OCX"

You can also set it so no "DLL Unregister Succeed" message box is shown like this:

regsvr32 /u /s "C:\Program Files\Application\MyActiveXControl.OCX"

(/s is for "silent")

-Burbble
0
 
LVL 2

Expert Comment

by:kouroshparsa
Comment Utility
Try "\windows\system32\MyActiveXControl.OCX"
0
 
LVL 7

Expert Comment

by:Burbble
Comment Utility
If it is located in the WINDOWS\SYSTEM directory (or equivilent), you can use:

regsvr32 /u MyActiveXControl.ocx

like I said before...

If you are coding this into your program (using Shell, for instance), then it is better to call it with the full path, just in case.

(Full path meaning the drive letter, path, and filename: like "C:\Windows\System\MyActiveXControl.OCX" or "C:\Program Files\Application\MyActiveXControl.OCX").

If the file is not located in a static position on every system, you will have to find the path programmatically... If this is what you need, please ask and I will be glad to assist :-)
Otherwise, the solution I provided is what you are looking for...

-Burbble
0
 
LVL 7

Expert Comment

by:Burbble
Comment Utility
Like I said,

>> Otherwise, the solution I provided is what you are looking for...

Based on the information provided, I am 99% sure that what I provided will solve the problem :)

-Burbble
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now